fixes 0003222: Invert zoom setting is not respected in paper/page mode

This commit is contained in:
wmayer
2019-01-14 11:08:17 +01:00
parent dff1832255
commit 2c42c57560
8 changed files with 24 additions and 5 deletions

View File

@@ -169,6 +169,11 @@ GraphvizView::GraphvizView(App::Document & _doc, QWidget* parent)
zoomer->set_modifiers(Qt::NoModifier);
view->show();
ParameterGrp::handle hGrp = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View");
bool on = hGrp->GetBool("InvertZoom", true);
zoomer->set_zoom_inverted(on);
// Set central widget to view
setCentralWidget(view);