diff options
Diffstat (limited to 'Swift/QtUI/QtChatTabs.cpp')
-rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp index 48c882f..c14f9ad 100644 --- a/Swift/QtUI/QtChatTabs.cpp +++ b/Swift/QtUI/QtChatTabs.cpp @@ -52,6 +52,10 @@ void QtChatTabs::closeEvent(QCloseEvent* event) { event->accept(); } +QtTabbable* QtChatTabs::getCurrentTab() { + return qobject_cast<QtTabbable*>(tabs_->currentWidget()); +} + void QtChatTabs::addTab(QtTabbable* tab) { QSizePolicy policy = sizePolicy(); /* Chat windows like to grow - don't let them */ |