diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-12-29 09:50:47 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-12-29 09:50:47 -0800 |
commit | ef653b41f5959bbbe0f405e765844a9b388ae805 (patch) | |
tree | d667c35b8efba58eaabc5baccc952ce0e34d5615 /qt-mobile/qmlprofile.cpp | |
parent | 9df3835035f016231d02e95968c02bd5f100ee1a (diff) | |
download | subsurface-ef653b41f5959bbbe0f405e765844a9b388ae805.tar.gz |
QML UI: obtain a reasonable margin from QML
This will be used later in the positioning of the profile.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qmlprofile.cpp')
-rw-r--r-- | qt-mobile/qmlprofile.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qt-mobile/qmlprofile.cpp b/qt-mobile/qmlprofile.cpp index 51fddb4ba..276da7495 100644 --- a/qt-mobile/qmlprofile.cpp +++ b/qt-mobile/qmlprofile.cpp @@ -4,7 +4,8 @@ #include <QTransform> QMLProfile::QMLProfile(QQuickItem *parent) : - QQuickPaintedItem(parent) + QQuickPaintedItem(parent), + m_margin(0) { m_profileWidget = new ProfileWidget2(0); m_profileWidget->setProfileState(); @@ -23,6 +24,11 @@ void QMLProfile::paint(QPainter *painter) m_profileWidget->render(painter); } +void QMLProfile::setMargin(int margin) +{ + m_margin = margin; +} + QString QMLProfile::diveId() const { return m_diveId; |