summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/minimal/main.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-11-29 12:06:45 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-04 12:07:58 +0100
commit17333720e05bbe5d84d246c0850c8c2c047a141e (patch)
treef916a46b939d04ea70667e05205e5d1fbdcf43b1 /src/plugins/platforms/minimal/main.cpp
parent03ae80359f8b0cb39ae5e95902383869314716d9 (diff)
Minimal plugin: Use a dummy font database for command line tools.
Suppress warnings like: QFontDatabase: Cannot find font directory '...' - is Qt installed correctly? occurring for example when using qmlplugindump. Add option flags (similar to Windows plugin) to the integration class to be used for QT_DEBUG_BACKINGSTORE and other functionality. Add a dummy font database with empty populate() function to be used unless the debug flag for the backing store is used. Task-number: QTBUG-33674 Task-number: QTCREATORBUG-10685 Change-Id: I7eaff3025de12e6b0471a3430f986b0cd810e22c Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/plugins/platforms/minimal/main.cpp')
-rw-r--r--src/plugins/platforms/minimal/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/platforms/minimal/main.cpp b/src/plugins/platforms/minimal/main.cpp
index a690a13d81..5e0388a0af 100644
--- a/src/plugins/platforms/minimal/main.cpp
+++ b/src/plugins/platforms/minimal/main.cpp
@@ -55,9 +55,8 @@ public:
QPlatformIntegration *QMinimalIntegrationPlugin::create(const QString& system, const QStringList& paramList)
{
- Q_UNUSED(paramList);
if (!system.compare(QLatin1String("minimal"), Qt::CaseInsensitive))
- return new QMinimalIntegration;
+ return new QMinimalIntegration(paramList);
return 0;
}