From 0b4639bd7267cc0c2641b0b75a3b72e9ae765e5f Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 30 Mar 2018 22:25:08 +0200 Subject: Actually make FSWidget show some data Not pretty, but we're getting there. --- fswidget.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fswidget.h') diff --git a/fswidget.h b/fswidget.h index bc405e9..e711b09 100644 --- a/fswidget.h +++ b/fswidget.h @@ -5,6 +5,8 @@ class QComboBox; class QTreeView; +class QStandardItemModel; +class QSortFilterProxyModel; class FSWidget : public QWidget { Q_OBJECT @@ -19,12 +21,15 @@ class FSWidget : public QWidget { private slots: void insertItem(QComboBox *cb, const QString &text); void removeItem(QComboBox *cb); + void gatherData(const QString &curDir); private: void setupWidget(); QComboBox *mDirCB; QComboBox *mFilterCB; QTreeView *mFileView; + QStandardItemModel *mModel; + QSortFilterProxyModel *mProxy; }; #endif // FSWIDGET_H -- cgit v1.2.3-70-g09d2