diff options
| author | Tobias Markmann <tm@ayena.de> | 2015-08-11 08:41:08 (GMT) |
|---|---|---|
| committer | Kevin Smith <kevin.smith@isode.com> | 2015-08-11 16:25:05 (GMT) |
| commit | cc91cf95c7b9a154e857005a02c40ad67346af03 (patch) | |
| tree | 8c1038e7110220495ebfeb48be20eee2e336490d | |
| parent | 9315a4acce26b3913eac6ea84e13a67e15281df1 (diff) | |
| download | swift-cc91cf95c7b9a154e857005a02c40ad67346af03.zip swift-cc91cf95c7b9a154e857005a02c40ad67346af03.tar.bz2 | |
Fix accelerator for "Chats" tab in the main window
Test-Information:
Verified behavior with Qt 5.5.0 on Elementary OS 0.2.
Change-Id: Id4dd1e5e35c1ec20d0a2dd39727ee0ba352b611a
| -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