fix build failure for Qt4

This commit is contained in:
wmayer
2019-10-03 11:19:02 +02:00
parent 8e9f204817
commit 3090bf19e9
2 changed files with 3 additions and 3 deletions

View File

@@ -45,6 +45,9 @@ SketcherGeneralWidget::SketcherGeneralWidget(QWidget *parent)
: QWidget(parent), ui(new Ui_TaskSketcherGeneral)
{
ui->setupUi(this);
#if QT_VERSION >= 0x050200
ui->renderingOrder->setSizeAdjustPolicy(QAbstractScrollArea::AdjustToContents);
#endif
// connecting the needed signals
connect(ui->checkBoxShowGrid, SIGNAL(toggled(bool)),

View File

@@ -136,9 +136,6 @@ Points must be set closer than a fifth of the grid size to a grid line to snap.<
<property name="toolTip">
<string>To change, drag and drop a geometry type to top or bottom</string>
</property>
<property name="sizeAdjustPolicy">
<enum>QAbstractScrollArea::AdjustToContents</enum>
</property>
<property name="dragEnabled">
<bool>true</bool>
</property>