treeapp.h 493 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef TREEAPP_H
  2. #define TREEAPP_H
  3. #include <QMainWindow>
  4. #include <QFileSystemModel>
  5. #include "treemodel.h"
  6. QT_BEGIN_NAMESPACE
  7. namespace Ui { class TreeApp; }
  8. QT_END_NAMESPACE
  9. class TreeApp : public QMainWindow
  10. {
  11. Q_OBJECT
  12. public:
  13. TreeApp(QWidget *parent = nullptr);
  14. ~TreeApp();
  15. void readFile();
  16. private slots:
  17. void on_actionSelect_a_file_triggered();
  18. void doubleClicked(QModelIndex);
  19. private:
  20. Ui::TreeApp *ui;
  21. TreeModel *model;
  22. };
  23. #endif // TREEAPP_H