Add missing #include for Mac
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 2 Jun 2010 15:54:30 +0000 (17:54 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 2 Jun 2010 15:59:05 +0000 (17:59 +0200)
If depending on Carbon/Carbon.h proves to be a problem, we could also hardcode the unicode
sequences for Mac's special keys. So if Carbon.h isn't present on any Mac used to build
Quassel on, please poke me.

src/qtui/settingspages/keysequencewidget.cpp

index 169a8f0..745c341 100644 (file)
 #include <QMessageBox>
 #include <QToolButton>
 
+// This defines the unicode symbols for special keys (kCommandUnicode and friends)
+#ifdef Q_WS_MAC
+#  include <Carbon/Carbon.h>
+#endif
+
 #include "action.h"
 #include "actioncollection.h"
 #include "iconloader.h"