Try to fix backward compatibility with Qt 5.2.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-01-09 21:02:08 +02:00
parent 910ac6864c
commit 352912d12f

View File

@ -1931,8 +1931,8 @@ void MainWindow::ToolBarOption()
doubleSpinBoxScale->setDecimals(1); doubleSpinBoxScale->setDecimals(1);
doubleSpinBoxScale->setSuffix("%"); doubleSpinBoxScale->setSuffix("%");
ScaleChanged(ui->view->transform().m11()); ScaleChanged(ui->view->transform().m11());
connect(doubleSpinBoxScale, static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged), this, connect(doubleSpinBoxScale.data(), static_cast<void (QDoubleSpinBox::*)(double)>(&QDoubleSpinBox::valueChanged),
[this](double d){ui->view->Zoom(d/100.0);}); this, [this](double d){ui->view->Zoom(d/100.0);});
ui->toolBarOption->addWidget(doubleSpinBoxScale); ui->toolBarOption->addWidget(doubleSpinBoxScale);
ui->toolBarOption->addSeparator(); ui->toolBarOption->addSeparator();