diff options
author | B. Watson <yalhcru@gmail.com> | 2022-01-24 16:45:06 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-01-25 14:44:36 +0700 |
commit | ed95dbc32bb571fe7021dfebf763e1425211103c (patch) | |
tree | 94e530cdea603177e959437d33491a0493527077 /libraries/qt4/patches/qt-everywhere-opensource-src-4.8.5-qt_plugin_path.patch | |
parent | 599e1f6f578276d8eedeed8d6ed51217064d40fb (diff) |
libraries/qt4: Added (legacy Qt version).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/qt4/patches/qt-everywhere-opensource-src-4.8.5-qt_plugin_path.patch')
-rw-r--r-- | libraries/qt4/patches/qt-everywhere-opensource-src-4.8.5-qt_plugin_path.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/libraries/qt4/patches/qt-everywhere-opensource-src-4.8.5-qt_plugin_path.patch b/libraries/qt4/patches/qt-everywhere-opensource-src-4.8.5-qt_plugin_path.patch new file mode 100644 index 0000000000..6a87783e3a --- /dev/null +++ b/libraries/qt4/patches/qt-everywhere-opensource-src-4.8.5-qt_plugin_path.patch @@ -0,0 +1,19 @@ +diff -up qt-everywhere-opensource-src-4.8.5/src/corelib/kernel/qcoreapplication.cpp.qt_plugin_path qt-everywhere-opensource-src-4.8.5/src/corelib/kernel/qcoreapplication.cpp +--- qt-everywhere-opensource-src-4.8.5/src/corelib/kernel/qcoreapplication.cpp.qt_plugin_path 2013-06-07 00:16:52.000000000 -0500 ++++ qt-everywhere-opensource-src-4.8.5/src/corelib/kernel/qcoreapplication.cpp 2013-06-21 07:14:10.045039936 -0500 +@@ -2511,6 +2511,15 @@ QStringList QCoreApplication::libraryPat + if (!app_libpaths->contains(installPathPlugins)) + app_libpaths->append(installPathPlugins); + } ++ ++ // hack in support for kde4 plugin paths -- Rex ++ QString kde4PathPlugins = QLibraryInfo::location(QLibraryInfo::LibrariesPath) + QLatin1String("/kde4/plugins"); ++ if (QFile::exists(kde4PathPlugins)) { ++ // Make sure we convert from backslashes to slashes. ++ //kde4PathPlugins = QDir(kde4PathPlugins).canonicalPath(); ++ if (!app_libpaths->contains(kde4PathPlugins)) ++ app_libpaths->append(kde4PathPlugins); ++ } + #endif + + // If QCoreApplication is not yet instantiated, |