forked from qt-creator/qt-creator
QmlDesigner: Fix layout and tooltip
* Fix layout for AnimatedImage * Fix tooltip for Animation section Change-Id: Ibdcc2e34317555396ad51fbf873dfcee1adbcf55 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -34,11 +34,11 @@ Column {
|
|||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
|
|
||||||
ImageSection {
|
ImageSection {
|
||||||
caption: qsTr("Animated Image")
|
caption: qsTr("Image")
|
||||||
}
|
}
|
||||||
|
|
||||||
Section {
|
Section {
|
||||||
caption: qsTr("Animation Settings")
|
caption: qsTr("Animated image")
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
@@ -62,40 +62,38 @@ Column {
|
|||||||
enabled: backendValues.speed.isAvailable
|
enabled: backendValues.speed.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
ExpandingSpacer {}
|
// TODO convert to % and add % label after the spin box
|
||||||
}
|
|
||||||
|
|
||||||
PropertyLabel {
|
|
||||||
text: qsTr("Paused")
|
|
||||||
tooltip: qsTr("Whether the animated image is paused.")
|
|
||||||
disabledState: !backendValues.paused.isAvailable
|
|
||||||
}
|
|
||||||
|
|
||||||
SecondColumnLayout {
|
|
||||||
CheckBox {
|
|
||||||
text: backendValues.paused.valueToString
|
|
||||||
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
|
||||||
+ StudioTheme.Values.actionIndicatorWidth
|
|
||||||
backendValue: backendValues.paused
|
|
||||||
enabled: backendValues.paused.isAvailable
|
|
||||||
}
|
|
||||||
|
|
||||||
ExpandingSpacer {}
|
ExpandingSpacer {}
|
||||||
}
|
}
|
||||||
|
|
||||||
PropertyLabel {
|
PropertyLabel {
|
||||||
text: qsTr("Playing")
|
text: qsTr("Playing")
|
||||||
tooltip: qsTr("Whether the animated image is playing.")
|
tooltip: qsTr("Whether the animation is playing and/or paused.")
|
||||||
disabledState: !backendValues.playing.isAvailable
|
disabledState: !backendValues.playing.isAvailable && !backendValues.paused.isAvailable
|
||||||
}
|
}
|
||||||
|
|
||||||
SecondColumnLayout {
|
SecondColumnLayout {
|
||||||
CheckBox {
|
CheckBox {
|
||||||
text: backendValues.playing.valueToString
|
text: StudioTheme.Constants.play
|
||||||
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
||||||
+ StudioTheme.Values.actionIndicatorWidth
|
+ StudioTheme.Values.actionIndicatorWidth
|
||||||
backendValue: backendValues.playing
|
backendValue: backendValues.playing
|
||||||
enabled: backendValues.playing.isAvailable
|
enabled: backendValue.isAvailable
|
||||||
|
fontFamily: StudioTheme.Constants.iconFont.family
|
||||||
|
fontPixelSize: StudioTheme.Values.myIconFontSize
|
||||||
|
}
|
||||||
|
|
||||||
|
Spacer { implicitWidth: StudioTheme.Values.twoControlColumnGap }
|
||||||
|
|
||||||
|
CheckBox {
|
||||||
|
text: StudioTheme.Constants.pause
|
||||||
|
implicitWidth: StudioTheme.Values.twoControlColumnWidth
|
||||||
|
+ StudioTheme.Values.actionIndicatorWidth
|
||||||
|
backendValue: backendValues.paused
|
||||||
|
enabled: backendValue.isAvailable
|
||||||
|
fontFamily: StudioTheme.Constants.iconFont.family
|
||||||
|
fontPixelSize: StudioTheme.Values.myIconFontSize
|
||||||
}
|
}
|
||||||
|
|
||||||
ExpandingSpacer {}
|
ExpandingSpacer {}
|
||||||
|
@@ -42,7 +42,7 @@ Section {
|
|||||||
SectionLayout {
|
SectionLayout {
|
||||||
PropertyLabel {
|
PropertyLabel {
|
||||||
text: qsTr("Running")
|
text: qsTr("Running")
|
||||||
tooltip: qsTr("Whether the animation is running and paused.")
|
tooltip: qsTr("Whether the animation is running and/or paused.")
|
||||||
}
|
}
|
||||||
|
|
||||||
SecondColumnLayout {
|
SecondColumnLayout {
|
||||||
|
Reference in New Issue
Block a user