summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@qt.io>2018-05-30 12:36:51 +0300
committerMiikka Heikkinen <miikka.heikkinen@qt.io>2018-05-30 10:32:44 +0000
commitc3f191efb4676140cc07796ee8a6fe00bfb145bf (patch)
tree641f4428300d10bee87a23e3699329a969519d0c
parent013735c73b0f6b2f32d4c39425884fa86dc2ded5 (diff)
Fix inspector button positions when moving editor between screens
We can't rely Image element's sourceSize, as it can change when pixelratio changes and @2x images are used. Now we hardcode space taken by the image. Change-Id: I62faeca8dd3ae22dc42af2ada593ba4dee7194d8 Reviewed-by: Janne Kangas <janne.kangas@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r--src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
index 4806bc25..dd5a8d25 100644
--- a/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
+++ b/src/Authoring/Studio/Palettes/Inspector/InspectorControlView.qml
@@ -168,7 +168,7 @@ Rectangle {
Item {
Layout.alignment: Qt.AlignTop
- width: animatedPropertyButton.sourceSize.width
+ width: 16
height: _controlBaseHeight
visible: model.modelData.animatable
@@ -242,7 +242,7 @@ Rectangle {
}
Item {
Layout.alignment: Qt.AlignTop
- width: controlledPropertyButton.sourceSize.width
+ width: 16
height: _controlBaseHeight
visible: model.modelData.controllable