XTicker stuff

This commit is contained in:
Mark Watkins 2011-08-07 13:12:58 +10:00
parent e6f31b69d0
commit 076cf5f97d
2 changed files with 4 additions and 4 deletions

View File

@ -61,14 +61,14 @@ void gXAxis::Plot(gGraphWindow & w,float scrx,float scry)
int divmax,dividx;
int fitmode;
if (xx>86400000L) { // Day
fd="000 00:00";
fd="00:00";
dividx=0;
divmax=1;
divmax=10;
fitmode=0;
} else if (xx>600000) { // Minutes
fd="00:00";
dividx=1;
divmax=10;
divmax=15;
fitmode=1;
} else if (xx>5000) { // Seconds
fd="00:00:00";

View File

@ -82,7 +82,7 @@ MainWindow::MainWindow(QWidget *parent) :
pref["AppName"]="SleepyHead";
QString Version=QString("%1.%2.%3").arg(major_version).arg(minor_version).arg(revision_number);
if (pref.Exists("VersionString") && pref["VersionString"]!=Version) {
QMessageBox::warning(this,"Potential Crash Warning","This is a new version of SleepyHead. If you experience a crash right after clicking Ok, you will need to manually delete your SleepApp folder (which is currently located in your Documents folder), and things should then work normally.",QMessageBox::Ok);
QMessageBox::warning(this,"Potential Crash Warning","This is a new version of SleepyHead. If you experience a crash right after clicking Ok, you will need to manually delete the SleepApp folder (it's located in your Documents folder), and things should then work normally.",QMessageBox::Ok);
}
pref["VersionString"]=Version;