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;