issue #0002739: Mac users must Command click instead of Ctrl click multiple elements.
This commit is contained in:
parent
675bcc2510
commit
c2f2a25054
|
@ -27,6 +27,7 @@
|
||||||
# include <QContextMenuEvent>
|
# include <QContextMenuEvent>
|
||||||
# include <QMenu>
|
# include <QMenu>
|
||||||
# include <QRegExp>
|
# include <QRegExp>
|
||||||
|
# include <QShortcut>
|
||||||
# include <QString>
|
# include <QString>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -249,7 +250,10 @@ TaskSketcherElements::TaskSketcherElements(ViewProviderSketch *sketchView)
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
QString cmdKey = QString::fromUtf8("\xe2\x8c\x98"); // U+2318
|
QString cmdKey = QString::fromUtf8("\xe2\x8c\x98"); // U+2318
|
||||||
#else
|
#else
|
||||||
QString cmdKey = qApp->translate("QShortcut", "Ctrl");
|
// translate the text (it's offered by Qt's translation files)
|
||||||
|
// but avoid being picked up by lupdate
|
||||||
|
const char* ctrlKey = "Ctrl";
|
||||||
|
QString cmdKey = QShortcut::tr(ctrlKey);
|
||||||
#endif
|
#endif
|
||||||
QString zKey = QString::fromLatin1("Z");
|
QString zKey = QString::fromLatin1("Z");
|
||||||
ui->Explanation->setText(tr("<html><head/><body><p>"%1": multiple selection</p>"
|
ui->Explanation->setText(tr("<html><head/><body><p>"%1": multiple selection</p>"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user