summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-07-04 21:13:56 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-07-04 21:13:56 (GMT)
commita5853e88be12bce08b84f76452e5d2576cf9d10b (patch)
treedd3ff7e5a33b0f6b7526b4c398c4d94c3fb19144 /Swift/QtUI/QtTabbable.cpp
parent83ca0f4806ed30fb974420db4171201c451fb583 (diff)
downloadswift-a5853e88be12bce08b84f76452e5d2576cf9d10b.zip
swift-a5853e88be12bce08b84f76452e5d2576cf9d10b.tar.bz2
Notify chat tabs even if the parent tabset has focus. issue#150.
Diffstat (limited to 'Swift/QtUI/QtTabbable.cpp')
-rw-r--r--Swift/QtUI/QtTabbable.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Swift/QtUI/QtTabbable.cpp b/Swift/QtUI/QtTabbable.cpp
new file mode 100644
index 0000000..8473529
--- /dev/null
+++ b/Swift/QtUI/QtTabbable.cpp
@@ -0,0 +1,12 @@
+#include "QtTabbable.h"
+
+#include <QApplication>
+
+namespace Swift {
+
+bool QtTabbable::isWidgetSelected() {
+ /*isActiveWindow() shouldn't be necessary, but I don't trust it as far as I can throw it*/
+ return isActiveWindow() && isAncestorOf(QApplication::focusWidget());
+}
+
+}