X-Git-Url: http://git.maemo.org/git/?a=blobdiff_plain;ds=sidebyside;f=Client%2Froutedialog.cpp;h=0fc2dcf42eca2508b45a65854aa3a9225a5ddff5;hb=f31a65d2249d6ddf024f9427e2036e2565ed747b;hp=fb96e81fc8f3b3d073f1b05031697e1574266b52;hpb=b4cd10bd441947453d238e1c37e8268bff6929e1;p=speedfreak diff --git a/Client/routedialog.cpp b/Client/routedialog.cpp index fb96e81..0fc2dcf 100644 --- a/Client/routedialog.cpp +++ b/Client/routedialog.cpp @@ -1,7 +1,8 @@ /* * RouteDialog class * - * @author Olavi Pulkkinen + * @author Olavi Pulkkinen + * @author Toni Jussila * @copyright (c) 2010 Speed Freak team * @license http://opensource.org/licenses/gpl-license.php GNU Public License */ @@ -171,6 +172,12 @@ RouteDialog::RouteDialog(QWidget *parent) : this->setWindowTitle("Route"); left = 5; top = 5; right = 495; bottom = 295; // Limits in screen coordinates + //Button settings + ui->sendPushButton->setAutoFillBackground(true); + ui->sendPushButton->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)"); + ui->newPushButton->setAutoFillBackground(true); + ui->newPushButton->setStyleSheet("background-color: rgb(0, 0, 0); color: rgb(255, 255, 255)"); + // Send rout to server button disable/enable. ui->sendPushButton->setEnabled(false); if (loginSaved()) @@ -356,7 +363,8 @@ void RouteDialog::paintEvent(QPaintEvent *) painter.drawEllipse( x1Screen-5, y1Screen-5, 10, 10); QString jono; - jono = QString("%1 km/h").arg(maxv); + //jono = QString("%1 km/h").arg(maxv); + jono.sprintf("%.1f km/h", maxv); ui->speedValueLabel->setText(jono); } }