Bundle platformthemes, closes #60
Note that this only has an effect if the Qt installation has platformthemes installed, https://launchpad.net/~beineri/+archive/ubuntu/opt-qt592-trusty has
This commit is contained in:
@@ -1204,11 +1204,16 @@ void deployPlugins(const AppDirInfo &appDirInfo, const QString &pluginSourcePath
|
|||||||
if (containsHowOften(deploymentInfo.deployedLibraries, "libQt5Gui")) {
|
if (containsHowOften(deploymentInfo.deployedLibraries, "libQt5Gui")) {
|
||||||
LogDebug() << "libQt5Gui detected";
|
LogDebug() << "libQt5Gui detected";
|
||||||
pluginList.append("platforms/libqxcb.so");
|
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"));
|
QStringList platformPluginContexts = QDir(pluginSourcePath + QStringLiteral("/platforminputcontexts")).entryList(QStringList() << QStringLiteral("*.so"));
|
||||||
foreach (const QString &plugin, platformPluginContexts) {
|
foreach (const QString &plugin, platformPluginContexts) {
|
||||||
pluginList.append(QStringLiteral("platforminputcontexts/") + plugin);
|
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)
|
// All image formats (svg if QtSvg library is used)
|
||||||
QStringList imagePlugins = QDir(pluginSourcePath + QStringLiteral("/imageformats")).entryList(QStringList() << QStringLiteral("*.so"));
|
QStringList imagePlugins = QDir(pluginSourcePath + QStringLiteral("/imageformats")).entryList(QStringList() << QStringLiteral("*.so"));
|
||||||
foreach (const QString &plugin, imagePlugins) {
|
foreach (const QString &plugin, imagePlugins) {
|
||||||
|
|||||||
Reference in New Issue
Block a user