diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-05-30 10:48:09 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2018-05-30 15:15:36 +0000 |
commit | 796997bda9a5553ece97352d8143aae22977e0ec (patch) | |
tree | 1fcc9235d6508101168c116b79e35b31b6daad4c | |
parent | e1576a57363bfe513d766933b6fc1d6866d578be (diff) |
Default to ScaleModeCenter in the viewer
The API keeps ScaleModeFill as the default however since this is what
most applications will need.
Change-Id: Iae12e43116379cb56530dd820485d3990d90a859
Reviewed-by: Andy Nichols <andy.nichols@qt.io>
-rw-r--r-- | tools/q3dsviewer/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/q3dsviewer/main.cpp b/tools/q3dsviewer/main.cpp index ff6afd7..57c1a66 100644 --- a/tools/q3dsviewer/main.cpp +++ b/tools/q3dsviewer/main.cpp @@ -143,6 +143,7 @@ int main(int argc, char *argv[]) Q3DSViewerSettings *viewerSettings = new Q3DSViewerSettings; engine->setViewerSettings(viewerSettings); viewerSettings->setMatteEnabled(true); + viewerSettings->setScaleMode(Q3DSViewerSettings::ScaleModeCenter); if (cmdLineParser.isSet(scaleModeOption)) { const QString scaleMode = cmdLineParser.value(scaleModeOption); if (scaleMode == QStringLiteral("center")) |