summaryrefslogtreecommitdiffstats
path: root/editorlib/qml/EditorToolbar.qml
diff options
context:
space:
mode:
Diffstat (limited to 'editorlib/qml/EditorToolbar.qml')
-rw-r--r--editorlib/qml/EditorToolbar.qml12
1 files changed, 12 insertions, 0 deletions
diff --git a/editorlib/qml/EditorToolbar.qml b/editorlib/qml/EditorToolbar.qml
index 8f708fc..291b3f6 100644
--- a/editorlib/qml/EditorToolbar.qml
+++ b/editorlib/qml/EditorToolbar.qml
@@ -32,6 +32,9 @@ import QtQuick.Layouts 1.2
import QtQuick.Controls 2.0 as QQC2
Item {
+ property alias coordDisplayText: coordinateDisplayLabel.text
+ property string coordDisplayTemplate: qsTr("x:%1 y:%2 z:%3") + editorScene.emptyString
+
height: newButton.height
ToolBar {
id: mainToolBar
@@ -210,6 +213,15 @@ Item {
tooltip: qsTr("Settings") + editorScene.emptyString
onEnabledButtonClicked: settingsDialog.show()
}
+
+ ToolbarSeparator {}
+
+ // Coordinate display label size is variable, so it should be the last item
+ StyledLabel {
+ id: coordinateDisplayLabel
+ rightPadding: 8
+ leftPadding: 8
+ }
}
}