mirror of
https://github.com/jpd002/Play-.git
synced 2025-05-04 00:17:57 +03:00
31 lines
975 B
C++
31 lines
975 B
C++
#ifndef VFSMODEL_H
|
|
#define VFSMODEL_H
|
|
|
|
#include <QAbstractTableModel>
|
|
#include "VfsDevice.h"
|
|
|
|
class VFSModel : public QAbstractTableModel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
VFSModel(QObject *parent);
|
|
~VFSModel();
|
|
|
|
int rowCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
|
int columnCount(const QModelIndex &parent = QModelIndex()) const Q_DECL_OVERRIDE;
|
|
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const Q_DECL_OVERRIDE;
|
|
void addData(const QStringList data) const;
|
|
bool setHeaderData(int section, Qt::Orientation orientation, const QVariant &value, int role = Qt::EditRole) Q_DECL_OVERRIDE;
|
|
void DoubleClicked(const QModelIndex &index, QWidget *parent = 0);
|
|
void Save();
|
|
|
|
protected:
|
|
QVariant headerData(int section, Qt::Orientation orientation, int role) const Q_DECL_OVERRIDE;
|
|
|
|
private:
|
|
CDevice::DeviceList m_devices;
|
|
QVariantList m_h_header;
|
|
|
|
void SetupDevices();
|
|
};
|
|
#endif // VFSMODEL_H
|