X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=declarative%2Fvideoresolutionmodel.h;h=96d7596104f56c02add1710cab35039a808a48cc;hp=77bd1bfb1b733e3c43cce8616b5cae8ef712faa4;hb=b307194aba841879bff0b5efdf0eeab49a6ac0cc;hpb=c95761c58432ae57f919647fe80fd2b26c509e77 diff --git a/declarative/videoresolutionmodel.h b/declarative/videoresolutionmodel.h index 77bd1bf..96d7596 100644 --- a/declarative/videoresolutionmodel.h +++ b/declarative/videoresolutionmodel.h @@ -32,6 +32,7 @@ class VideoResolutionModel : public QAbstractListModel { Q_OBJECT Q_PROPERTY(QString aspectRatio READ aspectRatio WRITE setAspectRatio NOTIFY aspectRatioChanged); + Q_PROPERTY(int count READ count NOTIFY countChanged); public: @@ -56,10 +57,11 @@ public: QString aspectRatio() const; void setAspectRatio(const QString& aspectRatio); - QHash roleNames() const; + int count() const; signals: void aspectRatioChanged(); + void countChanged(); private: QString m_aspectRatio; @@ -68,7 +70,11 @@ private: QList m_resolutions; +#if defined(QT5) + QHash roleNames() const; + void setRoleNames(const QHash& roles); QHash m_roles; +#endif }; #endif /* VIDEO_RESOLUTION_MODEL_H */