summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/Palettes/controls
diff options
context:
space:
mode:
authorMahmoud Badri <mahmoud.badri@qt.io>2018-11-14 10:20:20 +0200
committerMahmoud Badri <mahmoud.badri@qt.io>2018-11-16 10:44:52 +0000
commit66d81fab2be3a8a2b52adb351e2ed36fe5c50d24 (patch)
tree7c3526ac2ee393182934114adad5a6150a3b6066 /src/Authoring/Studio/Palettes/controls
parent1bf1dd8e69d3549b684bd0cb6f367009f2a54b8a (diff)
Improve the xyz and slider inspector components
- Align the xyz in one line, also color them (red, green, blue) - Make the slider value smaller and use only 1 decimal - Make the float value smaller and align it to the left Task-number: QT3DS-2679 Change-Id: I6f80c11acc3d96ddc8a6c834f3facbeb42cd1134 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/controls')
-rw-r--r--src/Authoring/Studio/Palettes/controls/FloatTextField.qml2
-rw-r--r--src/Authoring/Studio/Palettes/controls/StyledTooltip.qml5
2 files changed, 2 insertions, 5 deletions
diff --git a/src/Authoring/Studio/Palettes/controls/FloatTextField.qml b/src/Authoring/Studio/Palettes/controls/FloatTextField.qml
index 9d65f68e..49fa0081 100644
--- a/src/Authoring/Studio/Palettes/controls/FloatTextField.qml
+++ b/src/Authoring/Studio/Palettes/controls/FloatTextField.qml
@@ -41,7 +41,7 @@ TextField {
selectByMouse: true
text: "0.000"
- Layout.preferredWidth: _valueWidth / 2
+ Layout.preferredWidth: _valueWidth / 3
Layout.preferredHeight: _controlBaseHeight
topPadding: 0
diff --git a/src/Authoring/Studio/Palettes/controls/StyledTooltip.qml b/src/Authoring/Studio/Palettes/controls/StyledTooltip.qml
index 001d8835..34b310a4 100644
--- a/src/Authoring/Studio/Palettes/controls/StyledTooltip.qml
+++ b/src/Authoring/Studio/Palettes/controls/StyledTooltip.qml
@@ -41,10 +41,7 @@ ToolTip {
// set for MainFrm catches the tooltip events for QML, it doesn't prevent showing them because
// we were/are controlling the visibility in code.
onEnabledChanged: {
- if (enabled && _parentView.toolTipsEnabled())
- visible = true;
- else
- visible = false;
+ visible = enabled && _parentView.toolTipsEnabled();
}
background: Rectangle {