Files
qt-creator/tests/auto/qml/qmldesigner/data/merging/SliderStyle.qml
Michael Brüning de8eb93637 Add stylesheet merger
Adds classes to merge a template qml file and a qml stylesheet that have
been exported from other design tools into a resulting qml file that can
be used for further processing in Qt Design Studio.

Current issues:

* Sometimes it makes sense to define width and height
  if an anchor is present, but most of the time not.

* Actually if the hierachy was defined (e.g. Text item not child of
  background) most likely the anchors should be ignored.
  But this would be just a "dirty" heuristic. I suggest to let the
  template decide. If the template has anchors those have "precedence".
  It is always possible to define templates without anchors.

Task-number: QDS-2071
Change-Id: I9159514a8e884b7ffc31897aef4551b5efbbcb87
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
2020-05-27 18:26:12 +00:00

66 lines
1015 B
QML

import QtQuick 2.12
Item {
id: artboard
width: 640
height: 480
Rectangle {
id: sliderGroove
x: 78
y: 127
width: 200
height: 6
color: "#bdbebf"
}
Rectangle {
id: sliderGrooveLeft
x: 78
y: 165
width: 200
height: 6
color: "#21be2b"
radius: 2
}
Rectangle {
id: handleNormal
x: 130
y: 74
width: 32
height: 32
radius: 13
color: "#f6f6f6"
border.color: "#bdbebf"
}
Rectangle {
id: handlePressed
x: 78
y: 74
width: 32
height: 32
radius: 13
color: "#221bdb"
border.color: "#bdbebf"
}
Text {
id: element
x: 8
y: 320
color: "#eaeaea"
text: qsTrId("Some stuff for reference that is thrown away")
font.pixelSize: 32
}
}
/*##^##
Designer {
D{i:0;formeditorColor:"#000000"}
}
##^##*/