diff options
Diffstat (limited to 'examples/qtquick/draganddrop/tiles')
-rw-r--r-- | examples/qtquick/draganddrop/tiles/DragTile.qml | 15 | ||||
-rw-r--r-- | examples/qtquick/draganddrop/tiles/DropTile.qml | 2 | ||||
-rw-r--r-- | examples/qtquick/draganddrop/tiles/tiles.qml | 20 |
3 files changed, 19 insertions, 18 deletions
diff --git a/examples/qtquick/draganddrop/tiles/DragTile.qml b/examples/qtquick/draganddrop/tiles/DragTile.qml index 2813fa8caf..1f4a8c2bea 100644 --- a/examples/qtquick/draganddrop/tiles/DragTile.qml +++ b/examples/qtquick/draganddrop/tiles/DragTile.qml @@ -44,12 +44,12 @@ Item { id: root property string colorKey - width: 100; height: 100 + width: 64; height: 64 MouseArea { id: mouseArea - width: 100; height: 100 + width: 64; height: 64 anchors.centerIn: parent drag.target: tile @@ -59,20 +59,21 @@ Item { Rectangle { id: tile - width: 100; height: 100 + width: 64; height: 64 + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter - anchors.horizontalCenter: parent.horizontalCenter; anchors.verticalCenter: parent.verticalCenter color: colorKey Drag.keys: [ colorKey ] Drag.active: mouseArea.drag.active - Drag.hotSpot.x: 50 - Drag.hotSpot.y: 50 + Drag.hotSpot.x: 32 + Drag.hotSpot.y: 32 Text { anchors.fill: parent color: "white" - font.pixelSize: 90 + font.pixelSize: 48 text: modelData + 1 horizontalAlignment:Text.AlignHCenter verticalAlignment: Text.AlignVCenter diff --git a/examples/qtquick/draganddrop/tiles/DropTile.qml b/examples/qtquick/draganddrop/tiles/DropTile.qml index e8566f04cc..98fedeb775 100644 --- a/examples/qtquick/draganddrop/tiles/DropTile.qml +++ b/examples/qtquick/draganddrop/tiles/DropTile.qml @@ -46,7 +46,7 @@ DropArea { property string colorKey property alias dropProxy: dragTarget - width: 100; height: 100 + width: 64; height: 64 keys: [ colorKey ] Rectangle { diff --git a/examples/qtquick/draganddrop/tiles/tiles.qml b/examples/qtquick/draganddrop/tiles/tiles.qml index 31c87f8244..0b5647bc2b 100644 --- a/examples/qtquick/draganddrop/tiles/tiles.qml +++ b/examples/qtquick/draganddrop/tiles/tiles.qml @@ -43,8 +43,8 @@ import QtQuick 2.0 Rectangle { id: root - width: 620 - height: 410 + width: 320 + height: 480 color: "black" @@ -53,8 +53,8 @@ Rectangle { anchors.left: redSource.right; anchors.top: parent.top; anchors.margins: 5 - width: 300 - height: 300 + width: 64*3 + height: 64*3 opacity: 0.5 columns: 3 @@ -67,8 +67,8 @@ Rectangle { Grid { anchors.right: blueSource.left; anchors.bottom: parent.bottom; anchors.margins: 5 - width: 300 - height: 300 + width: 64*3 + height: 64*3 opacity: 0.5 @@ -85,8 +85,8 @@ Rectangle { anchors.left: parent.left; anchors.top: parent.top; anchors.bottom: parent.bottom anchors.margins: 5 - width: 100 - spacing: -60 + width: 64 + spacing: -16 Repeater { model: 9 @@ -98,8 +98,8 @@ Rectangle { anchors.right: parent.right; anchors.top: parent.top; anchors.bottom: parent.bottom anchors.margins: 5 - width: 100 - spacing: -60 + width: 64 + spacing: -16 Repeater { model: 9 |