[Kst] branches/work/kst/portto4/kst/src/libkst

Peter Kümmel syntheticpp at gmx.net
Sun Feb 13 18:55:16 CET 2011


SVN commit 1220292 by kuemmel:

plugins are now in <plugins>

 M  +8 -1      datasourcepluginmanager.cpp  


--- branches/work/kst/portto4/kst/src/libkst/datasourcepluginmanager.cpp #1220291:1220292
@@ -138,7 +138,7 @@
 
   QStringList pluginPaths;
   pluginPaths << QLibraryInfo::location(QLibraryInfo::PluginsPath);
-  pluginPaths << QString(qApp->applicationDirPath()).replace("bin", "plugin");
+  pluginPaths << QString(qApp->applicationDirPath()).replace("bin", "plugins");
 
   QDir rootDir = QApplication::applicationDirPath();
   rootDir.cdUp();
@@ -151,9 +151,16 @@
   
   pluginPath = rootDir.canonicalPath();
   pluginPath += QDir::separator();
+#if Q_OS_MACX
   pluginPaths << pluginPath + QLatin1String("PlugIns");
   pluginPaths << pluginPath + QLatin1String("../PlugIns/Release");
   pluginPaths << pluginPath + QLatin1String("../PlugIns/Debug");
+#endif
+#if Q_OS_WIN
+  pluginPaths << pluginPath + QLatin1String("plugins");
+  pluginPaths << pluginPath + QLatin1String("../plugins/Release");
+  pluginPaths << pluginPath + QLatin1String("../plugins/Debug");
+#endif
 
   Debug::self()->log(QString("\nPlugin Search Pathes: \n%1").arg(pluginPaths.join("\n")));
 	


More information about the Kst mailing list