2022-05-13 13:12:05 +00:00
|
|
|
// Copyright (C) 2021 The Qt Company Ltd.
|
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2011-04-27 12:13:26 +00:00
|
|
|
|
2021-08-23 13:14:25 +00:00
|
|
|
import QtQuick
|
2011-04-27 12:13:26 +00:00
|
|
|
|
2011-09-20 07:16:36 +00:00
|
|
|
Rectangle {
|
2012-02-20 00:34:44 +00:00
|
|
|
id: page
|
2023-03-30 07:12:28 +00:00
|
|
|
|
2012-02-20 00:34:44 +00:00
|
|
|
width: 320
|
2011-04-27 12:13:26 +00:00
|
|
|
height: 480
|
2011-09-20 07:16:36 +00:00
|
|
|
|
2012-02-28 03:20:56 +00:00
|
|
|
BorderImageSelector {
|
|
|
|
id: selector
|
2023-03-30 07:12:28 +00:00
|
|
|
|
2012-02-28 03:20:56 +00:00
|
|
|
curIdx: 0
|
|
|
|
maxIdx: 3
|
|
|
|
gridWidth: 240
|
|
|
|
flickable: mainFlickable
|
|
|
|
width: parent.width
|
|
|
|
height: 64
|
|
|
|
}
|
|
|
|
|
2012-02-20 00:34:44 +00:00
|
|
|
Flickable {
|
2012-02-28 03:20:56 +00:00
|
|
|
id: mainFlickable
|
2023-03-30 07:12:28 +00:00
|
|
|
|
2012-02-28 03:20:56 +00:00
|
|
|
width: parent.width
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.top: selector.bottom
|
|
|
|
interactive: false //Animated through selector control
|
|
|
|
contentX: -120
|
|
|
|
Behavior on contentX { NumberAnimation {}}
|
2012-02-20 00:34:44 +00:00
|
|
|
contentWidth: 1030
|
2012-02-28 03:20:56 +00:00
|
|
|
contentHeight: 420
|
2012-02-20 00:34:44 +00:00
|
|
|
Grid {
|
2023-03-30 07:12:28 +00:00
|
|
|
anchors.centerIn: parent
|
|
|
|
spacing: 20
|
2012-02-20 00:34:44 +00:00
|
|
|
|
|
|
|
MyBorderImage {
|
2023-03-30 07:12:28 +00:00
|
|
|
minWidth: 120
|
|
|
|
maxWidth: 240
|
|
|
|
minHeight: 120
|
|
|
|
maxHeight: 200
|
|
|
|
source: Qt.resolvedUrl("pics/colors.png")
|
|
|
|
margin: 30
|
2012-02-20 00:34:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
MyBorderImage {
|
2023-03-30 07:12:28 +00:00
|
|
|
minWidth: 120
|
|
|
|
maxWidth: 240
|
|
|
|
minHeight: 120
|
|
|
|
maxHeight: 200
|
|
|
|
source: Qt.resolvedUrl("pics/colors.png")
|
|
|
|
margin: 30
|
|
|
|
horizontalMode: BorderImage.Repeat
|
|
|
|
verticalMode: BorderImage.Repeat
|
2012-02-20 00:34:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
MyBorderImage {
|
2023-03-30 07:12:28 +00:00
|
|
|
minWidth: 120
|
|
|
|
maxWidth: 240
|
|
|
|
minHeight: 120
|
|
|
|
maxHeight: 200
|
|
|
|
source: Qt.resolvedUrl("pics/colors.png")
|
|
|
|
margin: 30
|
|
|
|
horizontalMode: BorderImage.Stretch
|
|
|
|
verticalMode: BorderImage.Repeat
|
2011-04-27 12:13:26 +00:00
|
|
|
}
|
|
|
|
|
2012-02-20 00:34:44 +00:00
|
|
|
MyBorderImage {
|
2023-03-30 07:12:28 +00:00
|
|
|
minWidth: 120
|
|
|
|
maxWidth: 240
|
|
|
|
minHeight: 120
|
|
|
|
maxHeight: 200
|
|
|
|
source: Qt.resolvedUrl("pics/colors.png")
|
|
|
|
margin: 30
|
|
|
|
horizontalMode: BorderImage.Round
|
|
|
|
verticalMode: BorderImage.Round
|
2011-04-27 12:13:26 +00:00
|
|
|
}
|
2012-02-20 00:34:44 +00:00
|
|
|
|
|
|
|
MyBorderImage {
|
2023-03-30 07:12:28 +00:00
|
|
|
minWidth: 60
|
|
|
|
maxWidth: 200
|
|
|
|
minHeight: 40
|
|
|
|
maxHeight: 200
|
|
|
|
source: Qt.resolvedUrl("pics/bw.png")
|
|
|
|
margin: 10
|
2011-04-27 12:13:26 +00:00
|
|
|
}
|
2012-02-20 00:34:44 +00:00
|
|
|
|
|
|
|
MyBorderImage {
|
2023-03-30 07:12:28 +00:00
|
|
|
minWidth: 60
|
|
|
|
maxWidth: 200
|
|
|
|
minHeight: 40
|
|
|
|
maxHeight: 200
|
|
|
|
source: Qt.resolvedUrl("pics/bw.png")
|
|
|
|
margin: 10
|
|
|
|
horizontalMode: BorderImage.Repeat
|
|
|
|
verticalMode: BorderImage.Repeat
|
2011-04-27 12:13:26 +00:00
|
|
|
}
|
2012-02-20 00:34:44 +00:00
|
|
|
|
|
|
|
MyBorderImage {
|
2023-03-30 07:12:28 +00:00
|
|
|
minWidth: 60
|
|
|
|
maxWidth: 200
|
|
|
|
minHeight: 40
|
|
|
|
maxHeight: 200
|
|
|
|
source: Qt.resolvedUrl("pics/bw.png")
|
|
|
|
margin: 10
|
|
|
|
horizontalMode: BorderImage.Stretch
|
|
|
|
verticalMode: BorderImage.Repeat
|
2011-04-27 12:13:26 +00:00
|
|
|
}
|
2011-09-20 07:16:36 +00:00
|
|
|
|
2012-02-20 00:34:44 +00:00
|
|
|
MyBorderImage {
|
2023-03-30 07:12:28 +00:00
|
|
|
minWidth: 60
|
|
|
|
maxWidth: 200
|
|
|
|
minHeight: 40
|
|
|
|
maxHeight: 200
|
|
|
|
source: Qt.resolvedUrl("pics/bw.png")
|
|
|
|
margin: 10
|
|
|
|
horizontalMode: BorderImage.Round
|
|
|
|
verticalMode: BorderImage.Round
|
2011-04-27 12:13:26 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|