[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Tue Apr 5 19:56:21 CEST 2005


CVS commit by staikos: 

predicting the future


  M +3 -3      plugincollection.cpp   1.26


--- kdeextragear-2/kst/kst/plugincollection.cpp  #1.25:1.26
@@ -23,4 +23,5 @@
 
 #include <kdebug.h>
+#include <kdeversion.h>
 #include <klocale.h>
 #include <kstandarddirs.h>
@@ -44,7 +45,6 @@ PluginCollection::PluginCollection() 
 : QObject(0L, "KST Plugin Collection") {
   KGlobal::dirs()->addResourceType("kstplugins", KStandardDirs::kde_default("data") + "kst" + QDir::separator() + "plugins");
-  // KDE3 provides no way to get the plugin directory so this will break
-  // for KDE 4  ### FIXME
-  KGlobal::dirs()->addResourceType("kstpluginlib", KStandardDirs::kde_default("lib") + "kde3" + QDir::separator() + "kstplugins");
+  // KDE3 provides no way to get the plugin directory
+  KGlobal::dirs()->addResourceType("kstpluginlib", KStandardDirs::kde_default("lib") + QString("kde%1").arg(KDE_VERSION_MAJOR) + QDir::separator() + "kstplugins");
   _parser = new PluginXMLParser;
   scanPlugins();




More information about the Kst mailing list