summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/offscreen/main.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2020-02-03 23:03:29 +0100
committerMorten Johan Sørvig <morten.sorvig@qt.io>2020-10-20 07:26:46 +0200
commitf4a66e5c4c4be97a7511b372930e20f330ea0813 (patch)
tree013880c3a0f5084b017962310208448a761632cf /src/plugins/platforms/offscreen/main.cpp
parent0ab89881c5aecc31e44fd83b1a63bd4de52ebe4a (diff)
QPA offscreen: make platform plugin configurable
Add ability to load a json config file containing screen configuration at startup. The config file location is specified using platform options: -platform offscfreen:configfile=/path/to/file Config file format example: { “screens”: [ { "name", "screen-1", "x", 0, "y", 0, "width", 640, "height", 480, "dpi", 96, "dpr", 1, }, … ] } Change-Id: Iac21aaafa6d0f361bdd6f6e9168b7e68db6ae011 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms/offscreen/main.cpp')
-rw-r--r--src/plugins/platforms/offscreen/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/platforms/offscreen/main.cpp b/src/plugins/platforms/offscreen/main.cpp
index f364d9f004..6b696ed073 100644
--- a/src/plugins/platforms/offscreen/main.cpp
+++ b/src/plugins/platforms/offscreen/main.cpp
@@ -53,9 +53,8 @@ public:
QPlatformIntegration *QOffscreenIntegrationPlugin::create(const QString& system, const QStringList& paramList)
{
- Q_UNUSED(paramList);
if (!system.compare(QLatin1String("offscreen"), Qt::CaseInsensitive))
- return QOffscreenIntegration::createOffscreenIntegration();
+ return QOffscreenIntegration::createOffscreenIntegration(paramList);
return nullptr;
}