diff options
| author | Kevin Smith <git@kismith.co.uk> | 2011-10-30 18:32:08 (GMT) |
|---|---|---|
| committer | Kevin Smith <git@kismith.co.uk> | 2011-10-30 18:32:08 (GMT) |
| commit | a710cb325c7827679c35c61ab41b821a5bc77673 (patch) | |
| tree | e1a80016637c110d7e58b1df4f7c5942ed734ded | |
| parent | 443b7759b8c59108b13ac55d20fdfe9d12ca4e79 (diff) | |
| download | swift-contrib-a710cb325c7827679c35c61ab41b821a5bc77673.zip swift-contrib-a710cb325c7827679c35c61ab41b821a5bc77673.tar.bz2 | |
Flash the taskbar indefinitely on Windows
| -rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp index 249080b..9921754 100644 --- a/Swift/QtUI/QtChatTabs.cpp +++ b/Swift/QtUI/QtChatTabs.cpp @@ -224,54 +224,54 @@ void QtChatTabs::handleTabTitleUpdated(QWidget* widget) { } ++i; } if (accelPos >= 0) { tabText = tabText.mid(0, accelPos) + "&" + tabText.mid(accelPos); } // this could be improved on some european keyboards, such as // the German one (where alt-Sz-Ligature is available) and basically // doesn't work on Arabic/Indic keyboards (where Latin letters // aren't available), but I don't care to deal with those. tabs_->setTabText(index, tabbable->getCount() > 0 ? QString("(%1) %2").arg(tabbable->getCount()).arg(tabText) : tabText); QColor tabTextColor; switch (tabbable->getWidgetAlertState()) { case QtTabbable::WaitingActivity : tabTextColor = QColor(217, 20, 43); break; case QtTabbable::ImpendingActivity : tabTextColor = QColor(27, 171, 32); break; default : tabTextColor = QColor(); } tabs_->tabBar()->setTabTextColor(index, tabTextColor); std::vector<std::pair<std::string, int> > unreads; for (int i = 0; i < tabs_->count(); i++) { QtTabbable* tab = qobject_cast<QtTabbable*>(tabs_->widget(i)); if (tab) { unreads.push_back(std::pair<std::string, int>(Q2PSTRING(tab->windowTitle()), tab->getCount())); } } std::string current(Q2PSTRING(qobject_cast<QtTabbable*>(tabs_->currentWidget())->windowTitle())); ChatMessageSummarizer summary; setWindowTitle(summary.getSummary(current, unreads).c_str()); } void QtChatTabs::flash() { #ifndef SWIFTEN_PLATFORM_MACOSX - QApplication::alert(this, 3000); + QApplication::alert(this, 0); #endif } void QtChatTabs::resizeEvent(QResizeEvent*) { emit geometryChanged(); } void QtChatTabs::moveEvent(QMoveEvent*) { emit geometryChanged(); } void QtChatTabs::checkForFirstShow() { if (!isVisible()) { showMinimized(); } } } |
Swift