diff options
author | Kai Koehne <kai.koehne@digia.com> | 2013-06-26 15:44:56 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-07-01 09:02:54 +0200 |
commit | 205d7a184f85415b8c2cbb52def2cf2f92737697 (patch) | |
tree | 999e3221d25c828fc050b84340000fd6ec3b1d0f /src/gui/kernel/qguiapplication.cpp | |
parent | a1f9b2b2b0f146bf2b57814ba9d56504d90a7f5a (diff) |
Change error text for missing platform plugin
Model error text after the default Windows error message for missing
.dll's.
Change-Id: I5328a0fe681ff5104dcf41668d9b08d6a6198c08
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 89664447c4..118b481fa3 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -787,11 +787,12 @@ static void init_platform(const QString &pluginArgument, const QString &platform QStringList keys = QPlatformIntegrationFactory::keys(platformPluginPath); QString fatalMessage - = QStringLiteral("Failed to find or load platform plugin \"%1\".\n").arg(name); - if (!keys.isEmpty()) - fatalMessage += QStringLiteral("Available platforms are: %1\n").arg( + = QStringLiteral("This application failed to start because it could not find or load the Qt platform plugin \"%1\".\n\n").arg(name); + if (!keys.isEmpty()) { + fatalMessage += QStringLiteral("Available platform plugins are: %1.\n\n").arg( keys.join(QStringLiteral(", "))); - fatalMessage += QStringLiteral("GUI applications require a platform plugin. Terminating."); + } + fatalMessage += QStringLiteral("Reinstalling the application may fix this problem."); #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) // Windows: Display message box unless it is a console application // or debug build showing an assert box. |