Skip to content

Instantly share code, notes, and snippets.

@pamaury
Created December 16, 2013 15:53
Show Gist options
  • Save pamaury/7989297 to your computer and use it in GitHub Desktop.
Save pamaury/7989297 to your computer and use it in GitHub Desktop.
#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