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);
- QHash<int, QByteArray> roleNames() const;
+ int count() const;
signals:
void aspectRatioChanged();
+ void countChanged();
private:
QString m_aspectRatio;
QList<QtCamVideoResolution> m_resolutions;
+#if defined(QT5)
+ QHash<int, QByteArray> roleNames() const;
+ void setRoleNames(const QHash<int, QByteArray>& roles);
QHash<int, QByteArray> m_roles;
+#endif
};
#endif /* VIDEO_RESOLUTION_MODEL_H */