forked from qt-creator/qt-creator
QmlDesigner: Adjust gradient dialog
Change-Id: I21eea31024c6fc959dd27654711607f3ff8a4d49 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -255,12 +255,12 @@ Column {
|
|||||||
anchors.leftMargin: 12
|
anchors.leftMargin: 12
|
||||||
anchors.rightMargin: 6
|
anchors.rightMargin: 6
|
||||||
|
|
||||||
anchors.topMargin: 24
|
anchors.topMargin: 28
|
||||||
anchors.bottomMargin: 6
|
anchors.bottomMargin: 6
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "X1"
|
text: "X1"
|
||||||
width: 16
|
width: 18
|
||||||
tooltip: qsTr("Defines the start point for color interpolation.")
|
tooltip: qsTr("Defines the start point for color interpolation.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -270,7 +270,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "X2"
|
text: "X2"
|
||||||
width: 16
|
width: 18
|
||||||
tooltip: qsTr("Defines the end point for color interpolation.")
|
tooltip: qsTr("Defines the end point for color interpolation.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -280,7 +280,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "y1"
|
text: "y1"
|
||||||
width: 16
|
width: 18
|
||||||
tooltip: qsTr("Defines the start point for color interpolation.")
|
tooltip: qsTr("Defines the start point for color interpolation.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -290,7 +290,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "Y2"
|
text: "Y2"
|
||||||
width: 16
|
width: 18
|
||||||
tooltip: qsTr("Defines the end point for color interpolation.")
|
tooltip: qsTr("Defines the end point for color interpolation.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -321,7 +321,6 @@ Column {
|
|||||||
GradientDialogPopup {
|
GradientDialogPopup {
|
||||||
id: gradientDialogPopupRadial
|
id: gradientDialogPopupRadial
|
||||||
dialogHeight: 140
|
dialogHeight: 140
|
||||||
dialogWidth: 340
|
|
||||||
content: GridLayout {
|
content: GridLayout {
|
||||||
rowSpacing: 4
|
rowSpacing: 4
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
@@ -333,12 +332,12 @@ Column {
|
|||||||
anchors.leftMargin: 12
|
anchors.leftMargin: 12
|
||||||
anchors.rightMargin: 6
|
anchors.rightMargin: 6
|
||||||
|
|
||||||
anchors.topMargin: 24
|
anchors.topMargin: 28
|
||||||
anchors.bottomMargin: 6
|
anchors.bottomMargin: 6
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "CenterX"
|
text: "CenterX"
|
||||||
width: 54
|
width: 64
|
||||||
tooltip: qsTr("Defines the center point.")
|
tooltip: qsTr("Defines the center point.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -348,7 +347,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "CenterY"
|
text: "CenterY"
|
||||||
width: 54
|
width: 64
|
||||||
tooltip: qsTr("Defines the center point.")
|
tooltip: qsTr("Defines the center point.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -358,7 +357,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "FocalX"
|
text: "FocalX"
|
||||||
width: 54
|
width: 64
|
||||||
tooltip: qsTr("Defines the focal point.")
|
tooltip: qsTr("Defines the focal point.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -368,7 +367,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "FocalY"
|
text: "FocalY"
|
||||||
width: 54
|
width: 64
|
||||||
tooltip: qsTr("Defines the focal point.")
|
tooltip: qsTr("Defines the focal point.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -378,7 +377,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "Center Radius"
|
text: "Center Radius"
|
||||||
width: 54
|
width: 64
|
||||||
tooltip: qsTr("Defines the center point.")
|
tooltip: qsTr("Defines the center point.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -388,7 +387,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "Focal Radius"
|
text: "Focal Radius"
|
||||||
width: 54
|
width: 64
|
||||||
tooltip: qsTr("Defines the focal radius. Set to 0 for simple radial gradients.")
|
tooltip: qsTr("Defines the focal radius. Set to 0 for simple radial gradients.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -431,12 +430,12 @@ Column {
|
|||||||
anchors.leftMargin: 12
|
anchors.leftMargin: 12
|
||||||
anchors.rightMargin: 6
|
anchors.rightMargin: 6
|
||||||
|
|
||||||
anchors.topMargin: 24
|
anchors.topMargin: 28
|
||||||
anchors.bottomMargin: 6
|
anchors.bottomMargin: 6
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "CenterX"
|
text: "CenterX"
|
||||||
width: 32
|
width: 64
|
||||||
tooltip: qsTr("Defines the center point.")
|
tooltip: qsTr("Defines the center point.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -446,7 +445,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "CenterY"
|
text: "CenterY"
|
||||||
width: 32
|
width: 64
|
||||||
tooltip: qsTr("Defines the center point.")
|
tooltip: qsTr("Defines the center point.")
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -456,7 +455,7 @@ Column {
|
|||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: "Angle"
|
text: "Angle"
|
||||||
width: 32
|
width: 64
|
||||||
tooltip: qsTr("Defines the start angle for the conical gradient. The value is in degrees (0-360).")
|
tooltip: qsTr("Defines the start angle for the conical gradient. The value is in degrees (0-360).")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -44,7 +44,7 @@ Loader {
|
|||||||
property Component content
|
property Component content
|
||||||
|
|
||||||
property int dialogHeight: 240
|
property int dialogHeight: 240
|
||||||
property int dialogWidth: 280
|
property int dialogWidth: 440
|
||||||
|
|
||||||
sourceComponent: Component {
|
sourceComponent: Component {
|
||||||
FocusScope {
|
FocusScope {
|
||||||
|
@@ -31,6 +31,8 @@ import QtQuick.Controls.Styles 1.1
|
|||||||
|
|
||||||
DoubleSpinBox {
|
DoubleSpinBox {
|
||||||
id: spinBox
|
id: spinBox
|
||||||
|
width: 82
|
||||||
|
Layout.minimumWidth: 82
|
||||||
|
|
||||||
property string propertyName
|
property string propertyName
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user