summaryrefslogtreecommitdiffstats
path: root/src/assistant/qhelpgenerator/main.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2012-11-30 11:01:02 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-11-30 11:07:47 +0100
commit8de4f2397becd234d18a3b5fadcf0063929466f7 (patch)
tree227565ec54fe3e0fa5767cb7741cb2eb5950f4c5 /src/assistant/qhelpgenerator/main.cpp
parent2aa89b8e03eff59406e6f0a0cee4241673c903e6 (diff)
QHelpGenerator: Allow launch without window manager
Use the minimal plugin by default. Change-Id: I2aa08c0ffcc76ce8692b481efb25497649b9b1d7 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: hjk <qthjk@ovi.com>
Diffstat (limited to 'src/assistant/qhelpgenerator/main.cpp')
-rw-r--r--src/assistant/qhelpgenerator/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/assistant/qhelpgenerator/main.cpp b/src/assistant/qhelpgenerator/main.cpp
index 75b5d5f96..121af387f 100644
--- a/src/assistant/qhelpgenerator/main.cpp
+++ b/src/assistant/qhelpgenerator/main.cpp
@@ -67,6 +67,9 @@ int main(int argc, char *argv[])
bool showVersion = false;
bool checkLinks = false;
+ // don't require a window manager even though we're a QGuiApplication
+ qputenv("QT_QPA_PLATFORM", QByteArrayLiteral("minimal"));
+
QGuiApplication app(argc, argv);
#ifndef Q_OS_WIN32
QTranslator translator;