diff options
Diffstat (limited to 'Swift/QtUI/QtMainWindow.cpp')
| -rw-r--r-- | Swift/QtUI/QtMainWindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtMainWindow.cpp b/Swift/QtUI/QtMainWindow.cpp index 01bba9b..e2092f6 100644 --- a/Swift/QtUI/QtMainWindow.cpp +++ b/Swift/QtUI/QtMainWindow.cpp | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (c) 2010-2014 Isode Limited. | 2 | * Copyright (c) 2010-2015 Isode Limited. |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * See the COPYING file for more information. | 4 | * See the COPYING file for more information. |
| 5 | */ | 5 | */ |
| 6 | 6 | ||
| 7 | #include <Swift/QtUI/QtMainWindow.h> | 7 | #include <Swift/QtUI/QtMainWindow.h> |
| @@ -262,11 +262,11 @@ void QtMainWindow::handleEventCountUpdated(int count) { | |||
| 262 | 262 | ||
| 263 | void QtMainWindow::handleChatCountUpdated(int count) { | 263 | void QtMainWindow::handleChatCountUpdated(int count) { |
| 264 | QColor chatTabColor = (count == 0) ? QColor() : QColor(255, 0, 0); // invalid resets to default | 264 | QColor chatTabColor = (count == 0) ? QColor() : QColor(255, 0, 0); // invalid resets to default |
| 265 | int chatIndex = 1; | 265 | int chatIndex = 1; |
| 266 | tabs_->tabBar()->setTabTextColor(chatIndex, chatTabColor); | 266 | tabs_->tabBar()->setTabTextColor(chatIndex, chatTabColor); |
| 267 | QString text = tr("&Chats"); | 267 | QString text = tr("C&hats"); |
| 268 | if (count > 0) { | 268 | if (count > 0) { |
| 269 | text += QString(" (%1)").arg(count); | 269 | text += QString(" (%1)").arg(count); |
| 270 | } | 270 | } |
| 271 | tabs_->setTabText(chatIndex, text); | 271 | tabs_->setTabText(chatIndex, text); |
| 272 | } | 272 | } |
Swift