diff --git a/qglengine/widgets/primitiveeditor.cpp b/qglengine/widgets/primitiveeditor.cpp index d05ec53..4ed22c0 100644 --- a/qglengine/widgets/primitiveeditor.cpp +++ b/qglengine/widgets/primitiveeditor.cpp @@ -9,6 +9,10 @@ PrimitiveEditor::PrimitiveEditor(QWidget *parent) : QWidget(parent), ui(new Ui:: view = 0; can_replace = false; ui->setupUi(this); +#if QT_VERSION >= QT_VERSION_CHECK(5,12,0) + ui->spinSegments->setStepType(QAbstractSpinBox::AdaptiveDecimalStepType); + ui->spinSegments2->setStepType(QAbstractSpinBox::AdaptiveDecimalStepType); +#endif editors[Plane] << ui->widgetWidth; editors[Plane] << ui->widgetLength; editors[Cube] << ui->widgetWidth; diff --git a/qglengine/widgets/primitiveeditor.ui b/qglengine/widgets/primitiveeditor.ui index 7add853..2d2c9d9 100644 --- a/qglengine/widgets/primitiveeditor.ui +++ b/qglengine/widgets/primitiveeditor.ui @@ -269,9 +269,6 @@ 1 - - QAbstractSpinBox::AdaptiveDecimalStepType - 16 @@ -310,9 +307,6 @@ 1 - - QAbstractSpinBox::AdaptiveDecimalStepType - 16 diff --git a/qglengine/widgets/view_editor.cpp b/qglengine/widgets/view_editor.cpp index d91e93c..cc216a2 100644 --- a/qglengine/widgets/view_editor.cpp +++ b/qglengine/widgets/view_editor.cpp @@ -29,6 +29,9 @@ ViewEditor::ViewEditor(QWidget * parent): QWidget(parent) { view = 0; active = true; ui->checkCameraLight->setCheckState(Qt::PartiallyChecked); +#if QT_VERSION >= QT_VERSION_CHECK(5,12,0) + ui->spinDepthStart->setStepType(QAbstractSpinBox::AdaptiveDecimalStepType); +#endif } diff --git a/qglengine/widgets/view_editor.ui b/qglengine/widgets/view_editor.ui index a65a52d..744b0a5 100644 --- a/qglengine/widgets/view_editor.ui +++ b/qglengine/widgets/view_editor.ui @@ -252,9 +252,6 @@ 999999999.000000000000000 - - QAbstractSpinBox::AdaptiveDecimalStepType - 1.000000000000000