diff options
author | Stefan Fuchs <sfuchs@gmx.de> | 2018-01-01 21:49:19 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-01-02 09:12:31 -0800 |
commit | 34d1dd469c5637c848e5dcecfab0dd56c26a3f4a (patch) | |
tree | 76c7f85d566a5ef22b638b712357f5fa521c6142 /desktop-widgets/simplewidgets.cpp | |
parent | b7494bfb2e3e4b2736a2d549e24989f8831e44a0 (diff) | |
download | subsurface-34d1dd469c5637c848e5dcecfab0dd56c26a3f4a.tar.gz |
Enable translation of ctrl key name for tool tip in dive notes
This really enables the translation of the ctrl key name.
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'desktop-widgets/simplewidgets.cpp')
-rw-r--r-- | desktop-widgets/simplewidgets.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/simplewidgets.cpp b/desktop-widgets/simplewidgets.cpp index af37b5154..446a3a468 100644 --- a/desktop-widgets/simplewidgets.cpp +++ b/desktop-widgets/simplewidgets.cpp @@ -677,7 +677,7 @@ void TextHyperlinkEventFilter::handleUrlTooltip(const QString &urlStr, const QPo } else { // per Qt docs, QKeySequence::toString does localization "tr()" on strings like Ctrl. // Note: Qt knows that on Mac OSX, ctrl (and Control) are the command key. - const QString ctrlKeyName = QKeySequence(Qt::CTRL).toString(); + const QString ctrlKeyName = QKeySequence(Qt::CTRL).toString(QKeySequence::NativeText); // ctrlKeyName comes with a trailing '+', as in: 'Ctrl+' QToolTip::showText(pos, tr("%1click to visit %2").arg(ctrlKeyName).arg(urlStr)); } |