diff options
Diffstat (limited to 'qt-mobile/qmlprofile.h')
-rw-r--r-- | qt-mobile/qmlprofile.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-mobile/qmlprofile.h b/qt-mobile/qmlprofile.h index 8a1c63fe6..35332ce8d 100644 --- a/qt-mobile/qmlprofile.h +++ b/qt-mobile/qmlprofile.h @@ -9,6 +9,8 @@ class QMLProfile : public QQuickPaintedItem { Q_OBJECT Q_PROPERTY(QString diveId READ diveId WRITE setDiveId NOTIFY diveIdChanged) + Q_PROPERTY(qreal devicePixelRatio READ devicePixelRatio WRITE setDevicePixelRatio NOTIFY devicePixelRatioChanged) + public: explicit QMLProfile(QQuickItem *parent = 0); virtual ~QMLProfile(); @@ -17,15 +19,20 @@ public: QString diveId() const; void setDiveId(const QString &diveId); + qreal devicePixelRatio() const; + void setDevicePixelRatio(qreal dpr); + public slots: void setMargin(int margin); private: QString m_diveId; + qreal m_devicePixelRatio; int m_margin; ProfileWidget2 *m_profileWidget; signals: void rightAlignedChanged(); void diveIdChanged(); + void devicePixelRatioChanged(); }; #endif // QMLPROFILE_H |