summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-06-18 16:31:27 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-06-18 16:33:11 (GMT)
commitab5fcc8ad6447a4b3578eb84c1ec3a975ec62d4c (patch)
treeaa01ac335817540bb3473d03953bd41a42b5f127 /Swift/QtUI/QtChatWindow.cpp
parentf2e3bfbe2ed1b8f35aa958041ee766f9d8ddf31e (diff)
downloadswift-ab5fcc8ad6447a4b3578eb84c1ec3a975ec62d4c.zip
swift-ab5fcc8ad6447a4b3578eb84c1ec3a975ec62d4c.tar.bz2
Support closing and reopening chats in tabs.
Diffstat (limited to 'Swift/QtUI/QtChatWindow.cpp')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 9f1f445..6442f8e 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -111,6 +111,11 @@ void QtChatWindow::qAppFocusChanged(QWidget *old, QWidget *now) {
}
+void QtChatWindow::showEvent(QShowEvent* event) {
+ emit windowOpening();
+ QWidget::showEvent(event);
+}
+
void QtChatWindow::setUnreadMessageCount(int count) {
unreadCount_ = count;
updateTitleWithUnreadCount();