first
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#ifndef T_LISTVIEWMODEL_H
|
||||
#define T_LISTVIEWMODEL_H
|
||||
|
||||
#include <QAbstractListModel>
|
||||
|
||||
class T_ListViewModel : public QAbstractListModel
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
explicit T_ListViewModel(QObject* parent = nullptr);
|
||||
~T_ListViewModel();
|
||||
|
||||
protected:
|
||||
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
|
||||
QVariant data(const QModelIndex& index, int role) const override;
|
||||
|
||||
private:
|
||||
QStringList _dataList;
|
||||
};
|
||||
|
||||
#endif // T_LISTVIEWMODEL_H
|
||||
Reference in New Issue
Block a user