From b86c70ab2ce91c46355a71008334aa6743caa1e6 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 24 Dec 2017 14:34:53 +0100 Subject: Turn filter list options into context menu Let the menu introduced in commit 5e86442bab680b79fbd3cd490091ab9f14252e94 pop up on right-click instead of button-click. Signed-off-by: Berthold Stoeger --- desktop-widgets/simplewidgets.h | 1 + 1 file changed, 1 insertion(+) (limited to 'desktop-widgets/simplewidgets.h') diff --git a/desktop-widgets/simplewidgets.h b/desktop-widgets/simplewidgets.h index 294fe26cf..fdaa4587e 100644 --- a/desktop-widgets/simplewidgets.h +++ b/desktop-widgets/simplewidgets.h @@ -167,6 +167,7 @@ public: }; class FilterBase : public QWidget { + void addContextMenuEntry(const QString &s, void (FilterModelBase::*)()); protected: FilterBase(FilterModelBase *model, QWidget *parent = 0); FilterModelBase *model; -- cgit v1.2.3-70-g09d2