megamove
This commit is contained in:
parent
c2e201f813
commit
f51105bde0
114 changed files with 92 additions and 0 deletions
25
src/typeselectionitemmodel.h
Normal file
25
src/typeselectionitemmodel.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef TYPESELECTIONITEMMODEL_H
|
||||
#define TYPESELECTIONITEMMODEL_H
|
||||
|
||||
#include <QAbstractListModel>
|
||||
|
||||
class PgTypeContainer;
|
||||
|
||||
class TypeSelectionItemModel : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TypeSelectionItemModel(QObject *parent = 0);
|
||||
|
||||
void setTypeList(const PgTypeContainer* types);
|
||||
|
||||
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:
|
||||
const PgTypeContainer* m_types;
|
||||
};
|
||||
|
||||
#endif // TYPESELECTIONITEMMODEL_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue