summaryrefslogtreecommitdiffstats
path: root/fswidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-03-31 10:51:56 +0200
committerArno <arno@disconnect.de>2018-03-31 10:51:56 +0200
commit8691fe4f1cae523bc2fdd64d3e90326f92fcb9d6 (patch)
treec03cbb39e47601032b8467e44431370b848ac5bd /fswidget.h
parent3fac72595be7f86a65933cdf9928857353040c2b (diff)
downloadSheMov-8691fe4f1cae523bc2fdd64d3e90326f92fcb9d6.tar.gz
SheMov-8691fe4f1cae523bc2fdd64d3e90326f92fcb9d6.tar.bz2
SheMov-8691fe4f1cae523bc2fdd64d3e90326f92fcb9d6.zip
Add context menu to FSWidget
Also create a helper function to create separator actions.
Diffstat (limited to 'fswidget.h')
-rw-r--r--fswidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/fswidget.h b/fswidget.h
index 7a6104d..0beb44e 100644
--- a/fswidget.h
+++ b/fswidget.h
@@ -8,6 +8,7 @@ class QComboBox;
class QTreeView;
class QStandardItemModel;
class QSortFilterProxyModel;
+class QContextMenuEvent;
class FSWidget : public QWidget {
Q_OBJECT
@@ -15,6 +16,9 @@ class FSWidget : public QWidget {
explicit FSWidget(QWidget *parent = nullptr);
~FSWidget();
+ protected:
+ virtual void contextMenuEvent(QContextMenuEvent *e);
+
public slots:
void readSettings();
void writeSettings();