summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/CocoaApplicationActivateHelper.h')
-rw-r--r--Swift/QtUI/CocoaApplicationActivateHelper.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Swift/QtUI/CocoaApplicationActivateHelper.h b/Swift/QtUI/CocoaApplicationActivateHelper.h
new file mode 100644
index 0000000..c831183
--- /dev/null
+++ b/Swift/QtUI/CocoaApplicationActivateHelper.h
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2012 Remko Tronçon
+ * Licensed under the GNU General Public License v3.
+ * See Documentation/Licenses/GPLv3.txt for more information.
+ */
+
+#pragma once
+
+#include <QObject>
+
+namespace Swift {
+ /**
+ * This class is here as a workaround for a bug in Qt.
+ * See Case #501.
+ */
+ class CocoaApplicationActivateHelper : public QObject {
+ public:
+ CocoaApplicationActivateHelper();
+ ~CocoaApplicationActivateHelper();
+
+ private:
+ bool eventFilter(QObject* o, QEvent* e);
+
+ private:
+ class Private;
+ Private* p;
+ };
+}