blob: a35715cccfa56ae4e76656907f3637c00012ef88 (
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
36
37
38
|
#ifndef QREMAMAIN_H
#define QREMAMAIN_H
#include <QMainWindow>
#include <QDebug>
#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);
void on_action_Add_triggered();
private:
Ui::QRemaMain *ui;
// Make two models instead of one
// to filter them separately
QFileSystemModel *dirModel;
QFileSystemModel *fileModel;
};
#endif // QREMAMAIN_H
|