From 0b31fcf4cb79a62b60893f3943422a548f2fd620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haris=20Gu=C5=A1i=C4=87?= Date: Mon, 11 Oct 2021 22:43:14 +0200 Subject: [PATCH] Change ColorGrabWidget overlay message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Haris Gušić --- src/widgets/panel/colorgrabwidget.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/widgets/panel/colorgrabwidget.cpp b/src/widgets/panel/colorgrabwidget.cpp index 6c1df218..59a56ef3 100644 --- a/src/widgets/panel/colorgrabwidget.cpp +++ b/src/widgets/panel/colorgrabwidget.cpp @@ -50,11 +50,11 @@ void ColorGrabWidget::startGrabbing() // This is undone in the destructor. qApp->setOverrideCursor(Qt::CrossCursor); qApp->installEventFilter(this); - OverlayMessage::push( - "Press Enter or Left Mouse Button to accept color
" - "Press and hold Left Mouse Button to precisely select color
" - "Press Space or Right Mouse Button to toggle magnifier
" - "Press ESC to cancel"); + OverlayMessage::pushKeyMap( + { { "Enter or Left Click", tr("Accept color") }, + { "Hold Left Click", tr("Precisely select color") }, + { "Space or Right Click", tr("Toggle magnifier") }, + { "Esc", tr("Cancel") } }); } QColor ColorGrabWidget::color()