From 37207b5a188ba7b49165eacb82abc1e19434dcf2 Mon Sep 17 00:00:00 2001 From: Arno Date: Wed, 29 Jul 2020 16:25:31 +0200 Subject: 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. --- searchdialog.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'searchdialog.h') 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; }; -- cgit v1.2.3-70-g09d2