diff options
author | Robert Jonsson <spamatica@gmail.com> | 2011-03-07 19:01:11 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2011-03-07 19:01:11 +0000 |
commit | e40fc849149dd97c248866a4a1d026dda5e57b62 (patch) | |
tree | b12b358f3b3a0608001d30403358f8443118ec5f /muse2/muse | |
parent | 1bd4f2e8d9745cabb667b043171cad22c8577768 (diff) |
clean3
Diffstat (limited to 'muse2/muse')
-rw-r--r-- | muse2/muse/widgets/bigtime.cpp | 6 | ||||
-rw-r--r-- | muse2/muse/widgets/intlabel.h | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/muse2/muse/widgets/bigtime.cpp b/muse2/muse/widgets/bigtime.cpp index 479f4103..b47773c8 100644 --- a/muse2/muse/widgets/bigtime.cpp +++ b/muse2/muse/widgets/bigtime.cpp @@ -1,5 +1,5 @@ #include <stdio.h> -#include <values.h> +#include <limits.h> #include <QCheckBox> #include <QLabel> @@ -65,7 +65,7 @@ BigTime::BigTime(QWidget* parent) //oldbar = oldbeat = oldtick = oldhour = oldmin = oldsec = oldframe = -1; oldbar = oldbeat = oldtick = oldmin = oldsec = oldframe = oldsubframe = -1; oldAbsTick = oldAbsFrame = -1; - setString(MAXINT); + setString(INT_MAX); dwin->setStyleSheet("font-size:10px; font-family:'Courier'; "); // Tim p4.0.8 @@ -185,7 +185,7 @@ void BigTime::closeEvent(QCloseEvent *ev) bool BigTime::setString(unsigned v) { - if (v == MAXINT) { + if (v == INT_MAX) { barLabel->setText(QString("----")); beatLabel->setText(QString("--")); tickLabel->setText(QString("---")); diff --git a/muse2/muse/widgets/intlabel.h b/muse2/muse/widgets/intlabel.h index df452891..cb5c3ecc 100644 --- a/muse2/muse/widgets/intlabel.h +++ b/muse2/muse/widgets/intlabel.h @@ -8,7 +8,7 @@ #ifndef __INTLABEL_H__ #define __INTLABEL_H__ -#include <values.h> +#include <limits.h> #include "nentry.h" class QString; @@ -35,7 +35,7 @@ class IntLabel : public Nentry { void valueChanged(int); public: - IntLabel(int, int, int, QWidget*, int _off = MAXINT, + IntLabel(int, int, int, QWidget*, int _off = INT_MAX, const QString& = QString(""), int lpos = 0); void setOff(int v); void setSuffix(const QString& s) { suffix = s; } |