Skip to content

Commit

Permalink
Bundle platformthemes, closes #60
Browse files Browse the repository at this point in the history
Note that this only has an effect if the Qt installation has platformthemes installed,
https://launchpad.net/~beineri/+archive/ubuntu/opt-qt592-trusty has
  • Loading branch information
probonopd authored Nov 26, 2017
1 parent d143cf7 commit e129d34
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/linuxdeployqt/shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1204,11 +1204,16 @@ void deployPlugins(const AppDirInfo &appDirInfo, const QString &pluginSourcePath
if (containsHowOften(deploymentInfo.deployedLibraries, "libQt5Gui")) {
LogDebug() << "libQt5Gui detected";
pluginList.append("platforms/libqxcb.so");
// Platform plugin contexts - apparently needed to enter special characters:
// Platform plugin contexts - apparently needed to enter special characters
QStringList platformPluginContexts = QDir(pluginSourcePath + QStringLiteral("/platforminputcontexts")).entryList(QStringList() << QStringLiteral("*.so"));
foreach (const QString &plugin, platformPluginContexts) {
pluginList.append(QStringLiteral("platforminputcontexts/") + plugin);
}
// Platform themes - make Qt look more native e.g., on Gtk+ 3 (if available in Qt installation)
QStringList platformThemes = QDir(pluginSourcePath + QStringLiteral("/platformthemes")).entryList(QStringList() << QStringLiteral("*.so"));
foreach (const QString &plugin, platformThemes) {
pluginList.append(QStringLiteral("platformthemes/") + plugin);
}
// All image formats (svg if QtSvg library is used)
QStringList imagePlugins = QDir(pluginSourcePath + QStringLiteral("/imageformats")).entryList(QStringList() << QStringLiteral("*.so"));
foreach (const QString &plugin, imagePlugins) {
Expand Down

1 comment on commit e129d34

@probonopd
Copy link
Owner Author

@probonopd probonopd commented on e129d34 Nov 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.