Commit fe7e5612 authored by Nicolas Fella's avatar Nicolas Fella Committed by Jonah Brüchert

Remove unused property

parent f2be403e
Pipeline #7676 canceled with stage
......@@ -23,9 +23,6 @@
TimeZonesModel::TimeZonesModel(QObject *parent)
: QStandardItemModel(parent)
{
connect(this, &QAbstractItemModel::modelReset, this, &TimeZonesModel::countChanged);
connect(this, &QAbstractItemModel::rowsInserted, this, &TimeZonesModel::countChanged);
connect(this, &QAbstractItemModel::rowsRemoved, this, &TimeZonesModel::countChanged);
}
QHash<int, QByteArray> TimeZonesModel::roleNames() const {
......
......@@ -25,17 +25,12 @@
class TimeZonesModel: public QStandardItemModel
{
Q_OBJECT
Q_PROPERTY(int count READ count NOTIFY countChanged)
public:
TimeZonesModel(QObject *parent=nullptr);
Q_INVOKABLE QVariantHash get(int i) const;
QHash<int, QByteArray> roleNames() const override;
int count() const {return rowCount();}
Q_SIGNALS:
void countChanged();
};
#endif
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