Forgot to add untracked files.
This commit is contained in:
parent
73528ca965
commit
a2f39692a2
5 changed files with 181 additions and 0 deletions
26
core/BackupFormatModel.h
Normal file
26
core/BackupFormatModel.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue