documentation and folded item delegates from old code back in

This commit is contained in:
itsmattkc
2019-07-02 03:01:46 -07:00
parent 1d05d6571a
commit 85b5bbd5d6
22 changed files with 293 additions and 3 deletions
+12 -2
View File
@@ -46,8 +46,18 @@ void ProjectExplorer::set_view_type(olive::ProjectViewType type)
{
view_type_ = type;
// Enum values correspond to the index of the widget in this stacked widget
setCurrentIndex(view_type_);
// Set widget based on view type
switch (view_type_) {
case olive::TreeView:
setCurrentWidget(tree_view_);
break;
case olive::ListView:
setCurrentWidget(list_view_);
break;
case olive::IconView:
setCurrentWidget(icon_view_);
break;
}
}
void ProjectExplorer::AddView(QAbstractItemView *view)