summaryrefslogtreecommitdiffstats
path: root/fswidget.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2018-03-30 20:41:31 +0200
committerArno <arno@disconnect.de>2018-03-30 20:41:31 +0200
commitc0f459c0afdca4fc4c5327cda63796b3c84db961 (patch)
treedf97da9f3e8ee046840b0022a545dc53b8d0a8f6 /fswidget.h
parentd42c4314f7b30af0b1186fe947f2523c3d8f62b6 (diff)
downloadSheMov-c0f459c0afdca4fc4c5327cda63796b3c84db961.tar.gz
SheMov-c0f459c0afdca4fc4c5327cda63796b3c84db961.tar.bz2
SheMov-c0f459c0afdca4fc4c5327cda63796b3c84db961.zip
Implement adding filters
Also safe and restore them. What I found out: setting the insert policy on QComboBoxes is totally useless when you insert items programmatically. So I implemented inserting items sorted on my own and generalized it for the dir and filter combobox, thanks to lambdas...
Diffstat (limited to 'fswidget.h')
-rw-r--r--fswidget.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fswidget.h b/fswidget.h
index 024a965..bc405e9 100644
--- a/fswidget.h
+++ b/fswidget.h
@@ -17,8 +17,8 @@ class FSWidget : public QWidget {
void writeSettings();
private slots:
- void addDir();
- void removeDir();
+ void insertItem(QComboBox *cb, const QString &text);
+ void removeItem(QComboBox *cb);
private:
void setupWidget();