projects
/
harmattan
/
cameraplus
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add count property to ImageResolutionModel and VideoResolutionModel
[harmattan/cameraplus]
/
declarative
/
videoresolutionmodel.h
diff --git
a/declarative/videoresolutionmodel.h
b/declarative/videoresolutionmodel.h
index
9d25967
..
96d7596
100644
(file)
--- 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_OBJECT
Q_PROPERTY(QString aspectRatio READ aspectRatio WRITE setAspectRatio NOTIFY aspectRatioChanged);
+ Q_PROPERTY(int count READ count NOTIFY countChanged);
public:
public:
@@
-56,8
+57,11
@@
public:
QString aspectRatio() const;
void setAspectRatio(const QString& aspectRatio);
QString aspectRatio() const;
void setAspectRatio(const QString& aspectRatio);
+ int count() const;
+
signals:
void aspectRatioChanged();
signals:
void aspectRatioChanged();
+ void countChanged();
private:
QString m_aspectRatio;
private:
QString m_aspectRatio;