Try to fix backward compatibility with Qt 5.2.
--HG-- branch : develop
This commit is contained in:
parent
910ac6864c
commit
352912d12f
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user