blob: c20c0a7f55e112d0e47cb41ff89bb4859cc7433d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef QREMAMAIN_H
#define QREMAMAIN_H
#include <QMainWindow>
#include <QFileSystemModel>
#include <QDesktopServices>
#include <QUrl>
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
|