From 544b39b04eca5a9b51d78b5dd7fe619adcf54bb4 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 25 Nov 2011 21:28:28 +0100 Subject: [PATCH] layout fixes --- .../platformcomponents/touch/Dialog.qml | 1 + .../platformcomponents/touch/SectionScroller.qml | 14 +++----------- declarativeimports/plasmacomponents/qml/Dialog.qml | 1 + 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/declarativeimports/plasmacomponents/platformcomponents/touch/Dialog.qml b/declarativeimports/plasmacomponents/platformcomponents/touch/Dialog.qml index 65a0f443f..48344979f 100644 --- a/declarativeimports/plasmacomponents/platformcomponents/touch/Dialog.qml +++ b/declarativeimports/plasmacomponents/platformcomponents/touch/Dialog.qml @@ -140,6 +140,7 @@ Item { left: parent.left right: parent.right bottom: buttonItem.top + bottomMargin: 8 } } diff --git a/declarativeimports/plasmacomponents/platformcomponents/touch/SectionScroller.qml b/declarativeimports/plasmacomponents/platformcomponents/touch/SectionScroller.qml index d9740e6a4..6969fde33 100644 --- a/declarativeimports/plasmacomponents/platformcomponents/touch/SectionScroller.qml +++ b/declarativeimports/plasmacomponents/platformcomponents/touch/SectionScroller.qml @@ -158,7 +158,7 @@ Item { height: sectionLabel.paintedHeight + margins.top + margins.bottom Label { id: sectionLabel - font.pointSize: theme.defaultFont.pointSize*3 + font.pointSize: theme.defaultFont.pointSize * 1.5 x: parent.margins.left y: parent.margins.top } @@ -174,14 +174,7 @@ Item { } } } - /*Repeater { - id: sectionsRepeater - delegate: Label { - anchors.horizontalCenter: parent.horizontalCenter - text: Sections._sections[modelData] - y: Sections._sectionData[modelData].index*(listView.height/listView.model.count) - } - }*/ + MouseArea { id: dragArea anchors.fill: parent @@ -195,6 +188,7 @@ Item { onPressed: { mouse.accepted = true handle.y = mouse.y + fadeTimer.running = false } onReleased: fadeTimer.restart() @@ -226,8 +220,6 @@ Item { if (listView.model.itemsRemoved) listView.model.itemsRemoved.connect(dirtyObserver); - - sectionsRepeater.model = Sections._sections.length } } } diff --git a/declarativeimports/plasmacomponents/qml/Dialog.qml b/declarativeimports/plasmacomponents/qml/Dialog.qml index c20004335..5e2260aef 100644 --- a/declarativeimports/plasmacomponents/qml/Dialog.qml +++ b/declarativeimports/plasmacomponents/qml/Dialog.qml @@ -142,6 +142,7 @@ Item { left: parent.left right: parent.right bottom: buttonItem.top + bottomMargin: 8 } }