connected project toolbar to project explorer

This commit is contained in:
itsmattkc
2019-06-25 10:30:47 -07:00
parent dcf779e83f
commit 552d610fa0
6 changed files with 76 additions and 18 deletions
+9
View File
@@ -42,6 +42,15 @@ ProjectPanel::ProjectPanel(QWidget *parent) :
explorer_ = new ProjectExplorer(this);
layout->addWidget(explorer_);
// Set toolbar's view to the explorer's view
toolbar->SetView(explorer_->view_type());
// Connect toolbar's view change signal to the explorer's view change slot
connect(toolbar,
SIGNAL(ViewChanged(olive::ProjectViewType)),
explorer_,
SLOT(set_view_type(olive::ProjectViewType)));
// Set strings
Retranslate();
}