選択できるのは25トピックまでです。
トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
|
|
|
#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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|