summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-06-16 21:27:44 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-06-16 21:27:44 (GMT)
commitf1c690a5352ee77282bbbd145a3fe0137aceb160 (patch)
treeee54e5a269295f3010f906097efbf0e3a9ce8dd3 /Swift/QtUI/QtChatWindow.cpp
parenta2e0cf9108081663607706f661f411a5fcf86e1d (diff)
parent73fa400641352d2f397b2e4a8589bf6ce80c7beb (diff)
downloadswift-contrib-f1c690a5352ee77282bbbd145a3fe0137aceb160.zip
swift-contrib-f1c690a5352ee77282bbbd145a3fe0137aceb160.tar.bz2
Merge branch 'tabs'
Diffstat (limited to 'Swift/QtUI/QtChatWindow.cpp')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 1db8dae..9f1f445 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -17,7 +17,7 @@
#include <QTime>
namespace Swift {
-QtChatWindow::QtChatWindow(const QString &contact, QtTreeWidgetFactory *treeWidgetFactory) : QWidget(), contact_(contact), previousMessageWasSelf_(false), previousMessageWasSystem_(false) {
+QtChatWindow::QtChatWindow(const QString &contact, QtTreeWidgetFactory *treeWidgetFactory) : QtTabbable(), contact_(contact), previousMessageWasSelf_(false), previousMessageWasSystem_(false) {
unreadCount_ = 0;
updateTitleWithUnreadCount();
@@ -95,6 +95,7 @@ SecurityLabel QtChatWindow::getSelectedSecurityLabel() {
void QtChatWindow::closeEvent(QCloseEvent* event) {
onClosed();
+ emit windowClosing();
event->accept();
}
@@ -117,6 +118,7 @@ void QtChatWindow::setUnreadMessageCount(int count) {
void QtChatWindow::updateTitleWithUnreadCount() {
setWindowTitle(unreadCount_ > 0 ? QString("(%1) %2)").arg(unreadCount_).arg(contact_) : contact_);
+ emit titleUpdated();
}
void QtChatWindow::addMessage(const String &message, const String &senderName, bool senderIsSelf, const boost::optional<SecurityLabel>& label) {