From 9f4d089f5d2868c79242c76b8f29c8834f304887 Mon Sep 17 00:00:00 2001 From: Megidd Git Date: Sat, 14 Jul 2018 15:06:43 +0430 Subject: Fix 'redo' tooltip on the tool bar The tool tip of the redo button is fixed by replacing the copy-&-pasted "undoText" identifier with "redoText". Change-Id: I34325ad700b9b88fb01111272664c368903a0ba7 Reviewed-by: Oswald Buddenhagen Reviewed-by: Miikka Heikkinen --- editorlib/qml/EditorToolbar.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editorlib/qml') diff --git a/editorlib/qml/EditorToolbar.qml b/editorlib/qml/EditorToolbar.qml index eccf5f4..1524d22 100644 --- a/editorlib/qml/EditorToolbar.qml +++ b/editorlib/qml/EditorToolbar.qml @@ -107,7 +107,7 @@ Item { ToolbarButton { enabledIconSource: "images/redo.png" disabledIconSource: "images/redo_disabled.png" - tooltip: (editorScene.undoHandler.undoText === "" || !buttonEnabled) + tooltip: (editorScene.undoHandler.redoText === "" || !buttonEnabled) ? qsTr ("Redo") + editorScene.emptyString : qsTr ("Redo '%1'").arg(editorScene.undoHandler.redoText) + editorScene.emptyString -- cgit v1.2.3