diff options
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; |