pgLab/core/BackupFormatModel.h

27 lines
692 B
C
Raw Normal View History

2017-03-05 21:25:37 +01:00
#ifndef BACKUPFORMATMODEL_H
#define BACKUPFORMATMODEL_H
#include <QAbstractListModel>
class BackupFormatModel : public QAbstractListModel
{
Q_OBJECT
public:
enum class Column { Short=1, Long=0, Description=2 };
explicit BackupFormatModel(QObject *parent);
// Header:
// QVariant headerData(int section, Qt::Orientation orientation, int role = Qt::DisplayRole) const override;
// Basic functionality:
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
private:
};
#endif // BACKUPFORMATMODEL_H