diff options
author | Arno <arno@disconnect.de> | 2018-03-30 20:41:31 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2018-03-30 20:41:31 +0200 |
commit | c0f459c0afdca4fc4c5327cda63796b3c84db961 (patch) | |
tree | df97da9f3e8ee046840b0022a545dc53b8d0a8f6 /fswidget.h | |
parent | d42c4314f7b30af0b1186fe947f2523c3d8f62b6 (diff) | |
download | SheMov-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |