[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Wed May 14 18:35:38 CEST 2003


CVS commit by staikos: 

switch kstxml->xml


  M +3 -3      plugincollection.cpp   1.7
  M +1 -1      pluginloader.cpp   1.6
  M +2 -2      pluginmanager.ui.h   1.7


--- kdeextragear-2/kst/kst/plugincollection.cpp  #1.6:1.7
@@ -64,5 +64,5 @@ void PluginCollection::loadAllPlugins() 
 
   d.setFilter(QDir::Files | QDir::NoSymLinks);
-  d.setNameFilter("*.kstxml");
+  d.setNameFilter("*.xml");
 
   QFileInfoListIterator it(*(d.entryInfoList()));
@@ -97,5 +97,5 @@ int PluginCollection::loadPlugin(const Q
   QString sofile = xmlfile;
   Plugin *p = PluginLoader::self()->loadPlugin(xmlfile,
-                                   sofile.replace(QRegExp(".kstxml$"), ".so"));
+                                   sofile.replace(QRegExp(".xml$"), ".so"));
   if (p) {
     _plugins[name] = KSharedPtr<Plugin>(p);
@@ -190,5 +190,5 @@ void PluginCollection::scanPlugins() con
 
   d.setFilter(QDir::Files | QDir::NoSymLinks);
-  d.setNameFilter("*.kstxml");
+  d.setNameFilter("*.xml");
 
   QFileInfoListIterator it(*(d.entryInfoList()));

--- kdeextragear-2/kst/kst/pluginloader.cpp  #1.5:1.6
@@ -89,5 +89,5 @@ int PluginLoader::deletePlugin(const QSt
   if (object.isEmpty()) {
     QString f = xmlfile;
-    f.replace(QRegExp(".kstxml$"), ".so");
+    f.replace(QRegExp(".xml$"), ".so");
     kdDebug() << "Remove: " << f << endl;
     QFile::remove(f);

--- kdeextragear-2/kst/kst/pluginmanager.ui.h  #1.6:1.7
@@ -24,5 +24,5 @@ void PluginManager::selectionChanged( QL
 void PluginManager::install()
 {
-    KURL xmlfile = KFileDialog::getOpenURL(QString::null, "*.kstxml", this, i18n("Please select a plugin to install."));
+    KURL xmlfile = KFileDialog::getOpenURL(QString::null, "*.xml", this, i18n("Please select a plugin to install."));
     
     if (xmlfile.isEmpty()) {
@@ -51,5 +51,5 @@ void PluginManager::install()
     KURL sofile = xmlfile;
     QString tmpSoFile = sofile.path();
-    tmpSoFile.replace(QRegExp(".kstxml$"), ".so");
+    tmpSoFile.replace(QRegExp(".xml$"), ".so");
     sofile.setPath(tmpSoFile);
     




More information about the Kst mailing list