QPluginLoader: fix loading of plugins with a relative file name
authorDavid Faure <faure+bluesystems@kde.org>
Mon, 3 Dec 2012 11:29:10 +0000 (12:29 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 4 Dec 2012 17:38:41 +0000 (18:38 +0100)
commit418890e0748384eb684f33b10dc6f32493aee54b
treef3a6e1064e71046556466a92eda0fc7adcfebd04
parentf6cc1f3aeae795e7ed67338b17b860df9f5146a7
QPluginLoader: fix loading of plugins with a relative file name

This makes QT_PLUGIN_PATH / QCoreApplication::libraryPaths() actually work,
as a search path for plugins, when apps look for a specific plugin by name.

To make it possible to write portable code (unlike the current QPluginLoader
unittest), let QPluginLoader figure out the extension, too.

Change-Id: I895d597d7cb05ded268734bc5f313f32d8d12cb9
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/corelib/plugin/qlibrary_p.h
src/corelib/plugin/qlibrary_unix.cpp
src/corelib/plugin/qlibrary_win.cpp
src/corelib/plugin/qpluginloader.cpp
tests/auto/corelib/plugin/qpluginloader/almostplugin/almostplugin.pro
tests/auto/corelib/plugin/qpluginloader/theplugin/theplugin.pro
tests/auto/corelib/plugin/qpluginloader/tst/tst.pro
tests/auto/corelib/plugin/qpluginloader/tst_qpluginloader.cpp