mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-23 00:48:55 +08:00
cmake-gui: Do not remove library paths for Qt5 plugins.
Not removing library paths is necessary for QFileDialog to function correctly on Linux when using Qt5.
This commit is contained in:
@@ -101,11 +101,13 @@ int main(int argc, char** argv)
|
|||||||
QTextCodec::setCodecForLocale(utf8_codec);
|
QTextCodec::setCodecForLocale(utf8_codec);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if QT_VERSION < 0x050000
|
||||||
// clean out standard Qt paths for plugins, which we don't use anyway
|
// clean out standard Qt paths for plugins, which we don't use anyway
|
||||||
// when creating Mac bundles, it potentially causes problems
|
// when creating Mac bundles, it potentially causes problems
|
||||||
foreach (QString p, QApplication::libraryPaths()) {
|
foreach (QString p, QApplication::libraryPaths()) {
|
||||||
QApplication::removeLibraryPath(p);
|
QApplication::removeLibraryPath(p);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// tell the cmake library where cmake is
|
// tell the cmake library where cmake is
|
||||||
QDir cmExecDir(QApplication::applicationDirPath());
|
QDir cmExecDir(QApplication::applicationDirPath());
|
||||||
|
Reference in New Issue
Block a user