summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtUtilities.h')
-rw-r--r--Swift/QtUI/QtUtilities.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Swift/QtUI/QtUtilities.h b/Swift/QtUI/QtUtilities.h
index 40c16bc..6f82dfd 100644
--- a/Swift/QtUI/QtUtilities.h
+++ b/Swift/QtUI/QtUtilities.h
@@ -9,7 +9,14 @@
class QWidget;
class QString;
+#include <QKeyEvent>
+
namespace QtUtilities {
void setX11Resource(QWidget* widget, const QString& c);
QString htmlEscape(const QString& s);
+ #ifdef SWIFTEN_PLATFORM_MACOSX
+ const Qt::KeyboardModifier ctrlHardwareKeyModifier = Qt::MetaModifier;
+ #else
+ const Qt::KeyboardModifier ctrlHardwareKeyModifier = Qt::ControlModifier;
+ #endif
}