endResetModel();
emit aspectRatioChanged();
+ emit countChanged();
}
}
+
+int ImageResolutionModel::count() const {
+ return rowCount();
+}
+
+#if defined(QT5)
+QHash<int, QByteArray> ImageResolutionModel::roleNames() const {
+ return m_roles;
+}
+
+void ImageResolutionModel::setRoleNames(const QHash<int, QByteArray>& roles) {
+ m_roles = roles;
+}
+#endif