diff options
Diffstat (limited to 'multilayer-dashboard/RowThree.qml')
| -rw-r--r-- | multilayer-dashboard/RowThree.qml | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/multilayer-dashboard/RowThree.qml b/multilayer-dashboard/RowThree.qml index 0b60dcf..6af378d 100644 --- a/multilayer-dashboard/RowThree.qml +++ b/multilayer-dashboard/RowThree.qml @@ -42,14 +42,19 @@ import Qt 4.7 import Qt.labs.gestures 1.0 Rectangle { - width: 200 id: myRow + width: 200 + height: 340 + property variant reparentWidget: myRow property variant topLevel: myRow - Rectangle { + Column { id: tapWidgetContainer + width: parent.width + height: parent.height + spacing: 2 TapWidget { x: 10 @@ -59,37 +64,27 @@ Rectangle { } TapWidget { x:10 - anchors.top : firstWidget.bottom - anchors.topMargin : 2.0 id: secondWidget color: "blue" reparentWidget: myRow.reparentWidget } TapWidget { x:10 - anchors.top : secondWidget.bottom - anchors.topMargin : 2.0 id: thirdWidget reparentWidget: myRow.reparentWidget } TapWidget { x:10 - anchors.top : thirdWidget.bottom - anchors.topMargin : 2.0 id: fourthWidget reparentWidget: myRow.reparentWidget } TapWidget { x:10 - anchors.top : fourthWidget.bottom - anchors.topMargin : 2.0 id: fifthWidget reparentWidget: myRow.reparentWidget } TapWidget { x:10 - anchors.top : fifthWidget.bottom - anchors.topMargin : 2.0 id: sixthWidget reparentWidget: myRow.reparentWidget } @@ -100,7 +95,7 @@ Rectangle { property int minY : (tapWidgetContainer.childrenRect.height > topLevel.height) ? -(tapWidgetContainer.childrenRect.height - topLevel.height) : 0 - } // end Rectangle + } GestureArea { id: rowGestureArea @@ -119,6 +114,5 @@ Rectangle { } } } - } // end GestureArea - + } } |
