diff options
author | Arno <arno@disconnect.de> | 2020-07-29 16:25:31 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2020-07-29 16:26:49 +0200 |
commit | 37207b5a188ba7b49165eacb82abc1e19434dcf2 (patch) | |
tree | aaaf63ebc4e8403e7acb41f1ed4be47cb6aa00c8 /searchdialog.h | |
parent | ae18a15210ce28b0aee9f0a894b29a8b74103817 (diff) | |
download | SheMov-37207b5a188ba7b49165eacb82abc1e19434dcf2.tar.gz SheMov-37207b5a188ba7b49165eacb82abc1e19434dcf2.tar.bz2 SheMov-37207b5a188ba7b49165eacb82abc1e19434dcf2.zip |
Implement delete actor from search dialog
The context menu item is only enabled if the actor has no children, ie.
no genres associated.
Since naming is hard, also rename some slots to more descriptive names.
Diffstat (limited to 'searchdialog.h')
-rw-r--r-- | searchdialog.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/searchdialog.h b/searchdialog.h index 1cd9fdd..d469c28 100644 --- a/searchdialog.h +++ b/searchdialog.h @@ -57,14 +57,16 @@ class ActorsAndMore : public QWidget { public slots: void doSearch(); - void getData(const QModelIndex &cur, const QModelIndex &prev); - void doData(const QModelIndex &cur, const QModelIndex &prev); + void fetchData(const QModelIndex &cur, const QModelIndex &prev); + void doDataActions(const QModelIndex &cur, const QModelIndex &prev); + void doResultActions(const QModelIndex &cur, const QModelIndex &prev); void dataDoubleClicked(const QModelIndex &index); void collapseAllResult() { mResultView->collapseAll(); } void expandAllResult() { mResultView->expandAll(); } void collapseAllData() { mDataView->collapseAll(); } void expandAllData() { mDataView->expandAll(); } void deleteSeries(); + void deleteActor(); void refreshActors(); private: @@ -79,6 +81,7 @@ class ActorsAndMore : public QWidget { QStandardItemModel *mDataModel; SmView *mResultView; SmView *mDataView; + QAction *mDeleteActorA; QAction *mDeleteSeriesA; }; |