1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Redefined isIntermediateValueHelper as class static.

This commit is contained in:
Kenz Dale 2012-08-18 16:53:41 +02:00
parent 9ebc32da3d
commit 76b0d3b1da
2 changed files with 2 additions and 2 deletions

View File

@ -492,7 +492,7 @@ QString QScienceSpinBox::stripped(const QString &t, int *pos) const
}
// reimplemented function, copied from qspinbox.cpp
static bool isIntermediateValueHelper(qint64 num, qint64 min, qint64 max, qint64 *match)
bool QScienceSpinBox::isIntermediateValueHelper(qint64 num, qint64 min, qint64 max, qint64 *match)
{
QSBDEBUG("%lld %lld %lld", num, min, max);

View File

@ -11,7 +11,6 @@
#include <QtCore/QDebug>
#include <QtCore/QString>
static bool isIntermediateValueHelper(qint64 num, qint64 minimum, qint64 maximum, qint64 *match = 0);
class QScienceSpinBox : public QDoubleSpinBox
{
@ -24,6 +23,7 @@ public:
QString textFromValue ( double value ) const;
double valueFromText ( const QString & text ) const;
static bool isIntermediateValueHelper(qint64 num, qint64 minimum, qint64 maximum, qint64 *match = 0);
private:
int dispDecimals;