projectpanel/projectexplorer: added select all/deselect all functionality

This commit is contained in:
itsmattkc
2020-02-23 11:33:49 +11:00
parent f1f80c0a39
commit 6facdc1f1b
4 changed files with 28 additions and 1 deletions
+10
View File
@@ -103,6 +103,16 @@ ProjectViewModel *ProjectPanel::model()
return explorer_->model();
}
void ProjectPanel::SelectAll()
{
explorer_->SelectAll();
}
void ProjectPanel::DeselectAll()
{
explorer_->DeselectAll();
}
void ProjectPanel::Edit(Item* item)
{
explorer_->Edit(item);
+3
View File
@@ -43,6 +43,9 @@ public:
ProjectViewModel* model();
virtual void SelectAll() override;
virtual void DeselectAll() override;
public slots:
void Edit(Item *item);
@@ -349,3 +349,13 @@ ProjectViewModel *ProjectExplorer::model()
{
return &model_;
}
void ProjectExplorer::SelectAll()
{
CurrentView()->selectAll();
}
void ProjectExplorer::DeselectAll()
{
CurrentView()->selectionModel()->clearSelection();
}
+5 -1
View File
@@ -1,4 +1,4 @@
/***
/***
Olive - Non-Linear Video Editor
Copyright (C) 2019 Olive Team
@@ -73,6 +73,10 @@ public:
*/
ProjectViewModel* model();
void SelectAll();
void DeselectAll();
public slots:
void set_view_type(ProjectToolbar::ViewType type);