LVGLBuilder/LVGLWidgetModel.h
CURTLab 620943074b Recent code upload
Commited recent code that was created without git repository or change log.
2019-11-26 15:26:31 +01:00

28 lines
637 B
C++

#ifndef LVGLWIDGETMODEL_H
#define LVGLWIDGETMODEL_H
#include <QAbstractListModel>
class LVGLWidget;
class LVGLWidgetModel : public QAbstractListModel
{
Q_OBJECT
public:
explicit LVGLWidgetModel(QObject *parent = nullptr);
// Basic functionality:
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
Qt::ItemFlags flags(const QModelIndex &index) const override;
virtual QStringList mimeTypes() const override;
virtual QMimeData *mimeData(const QModelIndexList &indexes) const override;
};
#endif // LVGLWIDGETMODEL_H