projectpanel/projectexplorer: added select all/deselect all functionality
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user