You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pane.h 448B

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include <QWidget>
  3. #include <QModelIndex>
  4. class QListView;
  5. class QFileSystemModel;
  6. namespace hex {
  7. class Pane : public QWidget {
  8. Q_OBJECT
  9. public:
  10. explicit Pane(QWidget *parent = 0);
  11. QString getPath();
  12. public slots:
  13. bool setPath(const QString& path);
  14. void changeIndex(const QModelIndex& index);
  15. void moveUp();
  16. signals:
  17. void pathChanged(const QString& newPath);
  18. private:
  19. QListView* mView;
  20. QFileSystemModel* mModel;
  21. };
  22. }