mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
oops! .. missing spelling of "#ifdef"
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2873 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
3883a561e4
commit
5f22a885ad
@ -48,7 +48,7 @@
|
|||||||
#define QINT32MAX std::numeric_limits<qint32>::max()
|
#define QINT32MAX std::numeric_limits<qint32>::max()
|
||||||
#define QUINT32MAX std::numeric_limits<qint32>::max()
|
#define QUINT32MAX std::numeric_limits<qint32>::max()
|
||||||
|
|
||||||
#define USE_SCIENTIFIC_NOTATION
|
//#define USE_SCIENTIFIC_NOTATION
|
||||||
|
|
||||||
class FieldTreeItem : public TreeItem
|
class FieldTreeItem : public TreeItem
|
||||||
{
|
{
|
||||||
@ -234,7 +234,7 @@ public:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
QWidget *createEditor(QWidget *parent) {
|
QWidget *createEditor(QWidget *parent) {
|
||||||
#idef USE_SCIENTIFIC_NOTATION
|
#ifdef USE_SCIENTIFIC_NOTATION
|
||||||
QScienceSpinBox *editor = new QScienceSpinBox(parent);
|
QScienceSpinBox *editor = new QScienceSpinBox(parent);
|
||||||
editor->setDecimals(6);
|
editor->setDecimals(6);
|
||||||
#else
|
#else
|
||||||
@ -247,7 +247,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
QVariant getEditorValue(QWidget *editor) {
|
QVariant getEditorValue(QWidget *editor) {
|
||||||
#idef USE_SCIENTIFIC_NOTATION
|
#ifdef USE_SCIENTIFIC_NOTATION
|
||||||
QScienceSpinBox *spinBox = static_cast<QScienceSpinBox*>(editor);
|
QScienceSpinBox *spinBox = static_cast<QScienceSpinBox*>(editor);
|
||||||
#else
|
#else
|
||||||
QDoubleSpinBox *spinBox = static_cast<QDoubleSpinBox*>(editor);
|
QDoubleSpinBox *spinBox = static_cast<QDoubleSpinBox*>(editor);
|
||||||
@ -257,7 +257,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void setEditorValue(QWidget *editor, QVariant value) {
|
void setEditorValue(QWidget *editor, QVariant value) {
|
||||||
#idef USE_SCIENTIFIC_NOTATION
|
#ifdef USE_SCIENTIFIC_NOTATION
|
||||||
QScienceSpinBox *spinBox = static_cast<QScienceSpinBox*>(editor);
|
QScienceSpinBox *spinBox = static_cast<QScienceSpinBox*>(editor);
|
||||||
#else
|
#else
|
||||||
QDoubleSpinBox *spinBox = static_cast<QDoubleSpinBox*>(editor);
|
QDoubleSpinBox *spinBox = static_cast<QDoubleSpinBox*>(editor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user