X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=declarative%2Fimageresolutionmodel.h;h=4db3c94cc790d5852a9f9185ea90fc477047e5ad;hp=dfadfca8b21cd52f269cbcf5c23e89a908021f26;hb=8b446fd852f3427efd37c5104207dafea1089934;hpb=3423bd2565dc32f1a8910a99e1d26a6e977a3f63;ds=sidebyside diff --git a/declarative/imageresolutionmodel.h b/declarative/imageresolutionmodel.h index dfadfca..4db3c94 100644 --- a/declarative/imageresolutionmodel.h +++ b/declarative/imageresolutionmodel.h @@ -32,6 +32,7 @@ class ImageResolutionModel : public QAbstractListModel { Q_OBJECT Q_PROPERTY(QString aspectRatio READ aspectRatio WRITE setAspectRatio NOTIFY aspectRatioChanged); + Q_PROPERTY(int count READ count NOTIFY countChanged); public: @@ -56,8 +57,11 @@ public: QString aspectRatio() const; void setAspectRatio(const QString& aspectRatio); + int count() const; + signals: void aspectRatioChanged(); + void countChanged(); private: QString m_aspectRatio; @@ -65,6 +69,12 @@ private: QtCamImageSettings *m_settings; QList m_resolutions; + +#if defined(QT5) + QHash roleNames() const; + void setRoleNames(const QHash& roles); + QHash m_roles; +#endif }; #endif /* IMAGE_RESOLUTION_MODEL_H */