diff options
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 2 | ||||
-rw-r--r-- | Swift/QtUI/QtMainWindow.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp index 3ac423f..d327e7c 100644 --- a/Swift/QtUI/QtChatTabs.cpp +++ b/Swift/QtUI/QtChatTabs.cpp @@ -120,7 +120,7 @@ void QtChatTabs::handleTabTitleUpdated(QWidget* widget) { switch (tabbable->getWidgetAlertState()) { case QtTabbable::WaitingActivity : flash = true; tabTextColor = QColor(255, 0, 0); break; case QtTabbable::ImpendingActivity : tabTextColor = QColor(0, 255, 0); break; - default : tabTextColor = QColor(-1,-1,-1);//invalid resets to default + default : tabTextColor = QColor(); } tabs_->tabBar()->setTabTextColor(index, tabTextColor); if (widget == tabs_->currentWidget()) { diff --git a/Swift/QtUI/QtMainWindow.cpp b/Swift/QtUI/QtMainWindow.cpp index b407f86..6f7783f 100644 --- a/Swift/QtUI/QtMainWindow.cpp +++ b/Swift/QtUI/QtMainWindow.cpp @@ -108,7 +108,7 @@ void QtMainWindow::setRosterModel(Roster* roster) { } void QtMainWindow::handleEventCountUpdated(int count) { - QColor eventTabColor = (count == 0) ? QColor(-1, -1, -1) : QColor(255, 0, 0); // invalid resets to default + QColor eventTabColor = (count == 0) ? QColor() : QColor(255, 0, 0); // invalid resets to default int eventIndex = 1; tabs_->tabBar()->setTabTextColor(eventIndex, eventTabColor); QString text = "Notices"; |