From c85da0a6e0448b07c51ae07e41a6714429510b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 24 May 2010 10:23:51 +0200 Subject: Fix console warning on tab focus. Resolves: #357 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"; -- cgit v0.10.2-6-g49f6