diff options
-rw-r--r-- | Swift/QtUI/QtTabbable.cpp | 4 | ||||
-rw-r--r-- | Swift/QtUI/QtTabbable.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/QtTabbable.cpp b/Swift/QtUI/QtTabbable.cpp index 8473529..dafdd3f 100644 --- a/Swift/QtUI/QtTabbable.cpp +++ b/Swift/QtUI/QtTabbable.cpp @@ -4,6 +4,10 @@ namespace Swift { +QtTabbable::~QtTabbable() { + emit windowClosing(); +} + 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()); diff --git a/Swift/QtUI/QtTabbable.h b/Swift/QtUI/QtTabbable.h index c28e301..be528ce 100644 --- a/Swift/QtUI/QtTabbable.h +++ b/Swift/QtUI/QtTabbable.h @@ -7,6 +7,7 @@ namespace Swift { class QtTabbable : public QWidget { Q_OBJECT public: + ~QtTabbable(); bool isWidgetSelected(); virtual bool isWidgetAlerting() {return false;}; protected: |