summaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetails.qml
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-11-29 17:27:20 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-11-29 17:27:20 +0100
commit2668da3f60d0dc28d1777c1d6cf67e1ee8f88447 (patch)
treec0a53e398f7100f39a12bd10e2a64202ea76695f /qt-mobile/qml/DiveDetails.qml
parent4d94441b6db8040b4c0dc6c302d3389a1bafffee (diff)
downloadsubsurface-2668da3f60d0dc28d1777c1d6cf67e1ee8f88447.tar.gz
use mobilecomponents for our pages
This is a dumb port of a number of properties to use the new theme and units API. - import the plugin - change accessors from units and theme to MobileComponents.Unit and MobileComponents.Theme Signed-off-by: Sebastian Kügler <sebas@kde.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r--qt-mobile/qml/DiveDetails.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index 32fa73042..5b597a0df 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -1,10 +1,9 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls.Styles 1.2
-import QtQuick.Window 2.2
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.1
-import QtQuick.Window 2.2
+import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
import org.subsurfacedivelog.mobile 1.0
Item {
@@ -45,7 +44,7 @@ Item {
Label {
Layout.columnSpan: 2
- font.pointSize: units.titlePointSize
+ font.pointSize: MobileComponents.Units.titlePointSize
text: "Dive " + number + " (" + date + ")"
}
@@ -55,7 +54,7 @@ Item {
Layout.preferredHeight: qmlProfile.visible ? qmlProfile.height : profileHideButton.height
QMLProfile {
id: qmlProfile
- height: units.gridUnit * 25
+ height: MobileComponents.Units.gridUnit * 25
anchors {
top: parent.top
left: parent.left