Conflicts:
declarative/imageresolutionmodel.cpp
declarative/videoresolutionmodel.cpp
endResetModel();
emit aspectRatioChanged();
+ emit countChanged();
}
}
+int ImageResolutionModel::count() const {
+ return rowCount();
+}
+
#if defined(QT5)
QHash<int, QByteArray> ImageResolutionModel::roleNames() const {
return m_roles;
Q_OBJECT
Q_PROPERTY(QString aspectRatio READ aspectRatio WRITE setAspectRatio NOTIFY aspectRatioChanged);
+ Q_PROPERTY(int count READ count NOTIFY countChanged);
public:
QString aspectRatio() const;
void setAspectRatio(const QString& aspectRatio);
+ int count() const;
+
signals:
void aspectRatioChanged();
+ void countChanged();
private:
QString m_aspectRatio;
m_aspectRatio = aspectRatio;
- emit aspectRatioChanged();
-
beginResetModel();
m_resolutions = m_settings->resolutions(m_aspectRatio);
endResetModel();
+
+ emit aspectRatioChanged();
+ emit countChanged();
}
}
+int VideoResolutionModel::count() const {
+ return rowCount();
+}
+
#if defined(QT5)
QHash<int, QByteArray> VideoResolutionModel::roleNames() const {
return m_roles;
Q_OBJECT
Q_PROPERTY(QString aspectRatio READ aspectRatio WRITE setAspectRatio NOTIFY aspectRatioChanged);
+ Q_PROPERTY(int count READ count NOTIFY countChanged);
public:
QString aspectRatio() const;
void setAspectRatio(const QString& aspectRatio);
+ int count() const;
+
signals:
void aspectRatioChanged();
+ void countChanged();
private:
QString m_aspectRatio;