#ifndef QREMAMAIN_H #define QREMAMAIN_H #include #include #include #include namespace Ui { class QRemaMain; } class QRemaMain : public QMainWindow { Q_OBJECT public: explicit QRemaMain(QWidget *parent = nullptr); ~QRemaMain(); private slots: void on_treeView_clicked(const QModelIndex &index); void on_listView_doubleClicked(const QModelIndex &index); private: Ui::QRemaMain *ui; // Make two models instead of one // to filter them separately QFileSystemModel *dirModel; QFileSystemModel *fileModel; }; #endif // QREMAMAIN_H