add custom qt plugin directory support
Stefan Bund [Wed, 29 Dec 2010 22:31:11 +0000 (23:31 +0100)]
main.cc

diff --git a/main.cc b/main.cc
index bd65730..e6c4f27 100644 (file)
--- a/main.cc
+++ b/main.cc
@@ -51,6 +51,9 @@ int main(int argc, char *argv[])
         app.setApplicationVersion(settings.value("version").toString());
         app.setOrganizationDomain(settings.value("organization").toString());
         app.setOrganizationName(settings.value("organization").toString());
+        char * pluginsPath (getenv("PYKIT_PLUGIN_PATH"));
+        if (pluginsPath)
+            app.setLibraryPaths(QString(pluginsPath).split(":"));
 
         QString splashPath (settings.value("splash").toString());
         boost::scoped_ptr<QSplashScreen> splash;