From c0f459c0afdca4fc4c5327cda63796b3c84db961 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 30 Mar 2018 20:41:31 +0200 Subject: 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... --- fswidget.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fswidget.h') 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(); -- cgit v1.2.3-70-g09d2