diff options
author | Alex Borisov <b0ric.alex@gmail.com> | 2012-03-25 22:16:30 +0300 |
---|---|---|
committer | Alex Borisov <b0ric.alex@gmail.com> | 2012-03-25 22:16:30 +0300 |
commit | ec80c67bcfec64177910f39d31c4b20974629096 (patch) | |
tree | 7132d5c394e0e62d3d17a40ce7587d270f3706b6 /client/Dialog.cpp | |
parent | fc68a17bda76f7ffe8493bb8f9593631b9d05ba1 (diff) |
Three color speed values
Diffstat (limited to 'client/Dialog.cpp')
-rw-r--r-- | client/Dialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/Dialog.cpp b/client/Dialog.cpp index 169d33e..3e96784 100644 --- a/client/Dialog.cpp +++ b/client/Dialog.cpp @@ -74,6 +74,12 @@ ProxyDialog::ProxyDialog(QWidget *parent): QDialog(parent, Qt::Tool | Qt::Framel QString::number(speed, 'f', 3) + QString("</b></font>"); } + else if (staticProxyLine[j].speed > cfg->StaticProxySpeedLowCrucial) + { + btnStr = QString("<font color=\"orange\"><b>") + + QString::number(speed, 'f', 3) + + QString("</b></font>"); + } else { btnStr = QString("<font color=\"red\"><b>") + @@ -126,7 +132,6 @@ bool ProxyDialog::event(QEvent* event) { if (event->type() == QEvent::ActivationChange) { - Logger::Debug("Activation change\n"); if(QApplication::activeWindow() != this) { this->close(); |