summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-12-19 19:52:05 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-12-19 19:52:05 (GMT)
commitca44245623972e6d52fe72acca09a96772d7e26a (patch)
tree6639114733f2769269080efadb24080216745fd6 /Swift/QtUI/QtChatWindow.cpp
parentbdb8ace202917809c5492aa37921e0ffd0354730 (diff)
downloadswift-ca44245623972e6d52fe72acca09a96772d7e26a.zip
swift-ca44245623972e6d52fe72acca09a96772d7e26a.tar.bz2
Colour tabs with waiting messages.
Resolves: #278
Diffstat (limited to 'Swift/QtUI/QtChatWindow.cpp')
-rw-r--r--Swift/QtUI/QtChatWindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatWindow.cpp b/Swift/QtUI/QtChatWindow.cpp
index bebebe8..831dbfd 100644
--- a/Swift/QtUI/QtChatWindow.cpp
+++ b/Swift/QtUI/QtChatWindow.cpp
@@ -134,6 +134,10 @@ void QtChatWindow::setUnreadMessageCount(int count) {
updateTitleWithUnreadCount();
}
+bool QtChatWindow::isWidgetAlerting() {
+ return unreadCount_ > 0;
+}
+
void QtChatWindow::setName(const String& name) {
contact_ = P2QSTRING(name);
updateTitleWithUnreadCount();