Created
December 16, 2013 15:53
-
-
Save pamaury/7989297 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MAINWINDOW_H | |
#define MAINWINDOW_H | |
#include <QMainWindow> | |
#include <QTreeView> | |
#include <QPushButton> | |
#include <QLineEdit> | |
#include <QCheckBox> | |
#include "myview.h" | |
class MainWindow : public QMainWindow | |
{ | |
Q_OBJECT | |
public: | |
MainWindow(); | |
private: | |
void closeEvent(QCloseEvent *event); | |
void setRoot(const QString& path); | |
void setShowHidden(bool show); | |
private slots: | |
void onChangeRoot(); | |
void onShowHidden(int); | |
private: | |
QTreeView *m_tree; | |
QLineEdit *m_root_line; | |
QPushButton *m_root_edit; | |
QPushButton *m_copy_button; | |
QCheckBox *m_show_hidden; | |
MyFileSystemView *m_model; | |
}; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment