X-Git-Url: http://cgit.sxemacs.org/?p=harmattan%2Fcameraplus;a=blobdiff_plain;f=declarative%2Fimageresolutionmodel.h;h=4db3c94cc790d5852a9f9185ea90fc477047e5ad;hp=dcc7b8b0d40defd6b64078120d917363708fac14;hb=8b446fd852f3427efd37c5104207dafea1089934;hpb=f9343d91286d83a721186a78eb0296702ca4bc12;ds=sidebyside diff --git a/declarative/imageresolutionmodel.h b/declarative/imageresolutionmodel.h index dcc7b8b..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;