25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
495 B
31 lines
495 B
#pragma once |
|
|
|
#include <QWidget> |
|
#include <QModelIndex> |
|
|
|
class QListView; |
|
class QFileSystemModel; |
|
|
|
namespace hex { |
|
|
|
class Pane : public QWidget { |
|
Q_OBJECT |
|
public: |
|
explicit Pane(QWidget *parent = 0); |
|
QString getPath(); |
|
|
|
public slots: |
|
bool setPath(const QString& path); |
|
void changeIndex(const QModelIndex& index); |
|
void moveUp(); |
|
|
|
signals: |
|
void pathChanged(const QString& newPath); |
|
void folderChanged(const QString& newFolder); |
|
|
|
private: |
|
QListView* mView; |
|
QFileSystemModel* mModel; |
|
}; |
|
|
|
}
|
|
|