From 4f6eeaa5fb834673b3e788db581c7517e5ba42f3 Mon Sep 17 00:00:00 2001 From: Mark Watkins Date: Tue, 19 Jul 2011 15:22:47 +1000 Subject: [PATCH] Proof I can count :) Fix to the last bit --- Graphs/graphwindow.cpp | 6 +++--- mainwindow.cpp | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Graphs/graphwindow.cpp b/Graphs/graphwindow.cpp index ccc887fd..6b118d32 100644 --- a/Graphs/graphwindow.cpp +++ b/Graphs/graphwindow.cpp @@ -258,15 +258,15 @@ void gGraphWindow::updateSelectionTime() int hours,minutes,seconds; hours=int(f*24.0); - minutes=int(f*60.0) % 60; - seconds=int(f*3600.0) % 60; + minutes=int(f*24*60.0) % 60; + seconds=int(f*24*3600.0) % 60; QString s; if (f>1) { s.sprintf("%.1f days",f); } else if (f>(1.0/(24.0*12.0))) { s.sprintf("%02i:%02i:%02i",hours,minutes,seconds); } else { - int milli=int(f*3600000.0) % 1000; + int milli=int(f*24*3600000.0) % 1000; s.sprintf("%02i:%02i:%02i:%04i",hours,minutes,seconds,milli); } qstatus2->setText(s); diff --git a/mainwindow.cpp b/mainwindow.cpp index 7992d839..316c5228 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -70,7 +70,6 @@ MainWindow::MainWindow(QWidget *parent) : daily=NULL; overview=NULL; Profiles::Scan(); - qstatusbar->showMessage("Foo Foo Foo",10); //loader_progress->Show(); @@ -125,6 +124,7 @@ void MainWindow::Startup() qstatus->setText(tr("Loading Data")); qprogress->show(); + qstatusbar->showMessage("Your computer loads faster than JediMark's",1900); profile=Profiles::Get(pref["Profile"].toString()); profile->LoadMachineData(); @@ -140,6 +140,7 @@ void MainWindow::Startup() qprogress->hide(); qstatus->setText(tr("Ready")); + } void MainWindow::on_action_Import_Data_triggered()