12345678910111213141516171819202122232425262728293031 |
- #ifndef TREEAPP_H
- #define TREEAPP_H
- #include <QMainWindow>
- #include <QFileSystemModel>
- #include "treemodel.h"
- QT_BEGIN_NAMESPACE
- namespace Ui { class TreeApp; }
- QT_END_NAMESPACE
- class TreeApp : public QMainWindow
- {
- Q_OBJECT
- public:
- TreeApp(QWidget *parent = nullptr);
- ~TreeApp();
- void readFile();
- private slots:
- void on_actionSelect_a_file_triggered();
- void doubleClicked(QModelIndex);
- private:
- Ui::TreeApp *ui;
- TreeModel *model;
- };
- #endif // TREEAPP_H
|