mirror of
https://gitlab.com/pholy/OSCAR-code.git
synced 2025-04-07 03:30:44 +00:00
XTicker stuff
This commit is contained in:
parent
e6f31b69d0
commit
076cf5f97d
@ -61,14 +61,14 @@ void gXAxis::Plot(gGraphWindow & w,float scrx,float scry)
|
|||||||
int divmax,dividx;
|
int divmax,dividx;
|
||||||
int fitmode;
|
int fitmode;
|
||||||
if (xx>86400000L) { // Day
|
if (xx>86400000L) { // Day
|
||||||
fd="000 00:00";
|
fd="00:00";
|
||||||
dividx=0;
|
dividx=0;
|
||||||
divmax=1;
|
divmax=10;
|
||||||
fitmode=0;
|
fitmode=0;
|
||||||
} else if (xx>600000) { // Minutes
|
} else if (xx>600000) { // Minutes
|
||||||
fd="00:00";
|
fd="00:00";
|
||||||
dividx=1;
|
dividx=1;
|
||||||
divmax=10;
|
divmax=15;
|
||||||
fitmode=1;
|
fitmode=1;
|
||||||
} else if (xx>5000) { // Seconds
|
} else if (xx>5000) { // Seconds
|
||||||
fd="00:00:00";
|
fd="00:00:00";
|
||||||
|
@ -82,7 +82,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
pref["AppName"]="SleepyHead";
|
pref["AppName"]="SleepyHead";
|
||||||
QString Version=QString("%1.%2.%3").arg(major_version).arg(minor_version).arg(revision_number);
|
QString Version=QString("%1.%2.%3").arg(major_version).arg(minor_version).arg(revision_number);
|
||||||
if (pref.Exists("VersionString") && pref["VersionString"]!=Version) {
|
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;
|
pref["VersionString"]=Version;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user