Commit 727ecc79 authored by Volker Krause's avatar Volker Krause
Browse files

Make role enums accessbile by QML

parent be2962a0
Pipeline #47350 passed with stage
in 19 seconds
......@@ -37,6 +37,7 @@ public:
enum Roles {
LocationRole = Qt::UserRole
};
Q_ENUM(Roles)
int rowCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
......
......@@ -57,6 +57,7 @@ public:
enum Roles {
DepartureRole = Qt::UserRole
};
Q_ENUM(Roles)
int rowCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
......
......@@ -46,6 +46,7 @@ public:
enum Roles {
VehicleSectionRole = Qt::UserRole
};
Q_ENUM(Roles)
int rowCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment