summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-06-15 21:05:33 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-06-15 21:05:33 (GMT)
commit5f1d284169c89c30f061603a9f45ab753f4b8967 (patch)
tree8e50c8eb3ac5c9e5178983f0bbd7dc69e42311af /Swift/QtUI/QtChatWindow.cpp
parent2e014f200768c91a1504002af1be5c0ac5eb0f42 (diff)
downloadswift-5f1d284169c89c30f061603a9f45ab753f4b8967.zip
swift-5f1d284169c89c30f061603a9f45ab753f4b8967.tar.bz2
Update tab titles for unread count.
Diffstat (limited to 'Swift/QtUI/QtChatWindow.cpp')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index 1db8dae..880678a 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();
@@ -117,6 +117,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) {