Changeset 34d1dd4 in subsurface


Ignore:
Timestamp:
Jan 2, 2018, 9:12:31 AM (3 weeks ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
7a48149
Parents:
b7494bf
git-author:
Stefan Fuchs <sfuchs@…> (01/01/18 12:49:19)
git-committer:
Dirk Hohndel <dirk@…> (01/02/18 09:12:31)
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/simplewidgets.cpp

    rf057dd4 r34d1dd4  
    678678                // per Qt docs, QKeySequence::toString does localization "tr()" on strings like Ctrl.
    679679                // Note: Qt knows that on Mac OSX, ctrl (and Control) are the command key.
    680                 const QString ctrlKeyName = QKeySequence(Qt::CTRL).toString();
     680                const QString ctrlKeyName = QKeySequence(Qt::CTRL).toString(QKeySequence::NativeText);
    681681                // ctrlKeyName comes with a trailing '+', as in: 'Ctrl+'
    682682                QToolTip::showText(pos, tr("%1click to visit %2").arg(ctrlKeyName).arg(urlStr));
Note: See TracChangeset for help on using the changeset viewer.