Use TDESimpleConfig

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
master
Michele Calgaro 2 weeks ago
parent 33f077f626
commit 5f1e1f97a2
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -26,7 +26,7 @@
#include <tdelocale.h> #include <tdelocale.h>
#include <kgenericfactory.h> #include <kgenericfactory.h>
#include <kurl.h> #include <kurl.h>
#include <ksimpleconfig.h> #include <tdesimpleconfig.h>
#include <tdemessagebox.h> #include <tdemessagebox.h>
//#include <iostream> //#include <iostream>
@ -35,7 +35,7 @@ static TQStringList* s_pHistory=0;
class KDiff3PluginFactory : public KGenericFactory < KDiff3Plugin, KonqPopupMenu > class KDiff3PluginFactory : public KGenericFactory < KDiff3Plugin, KonqPopupMenu >
{ {
KSimpleConfig* m_pConfig; TDESimpleConfig* m_pConfig;
public: public:
KDiff3PluginFactory( const char* instanceName = 0 ) KDiff3PluginFactory( const char* instanceName = 0 )
: KGenericFactory< KDiff3Plugin, KonqPopupMenu >( instanceName ) : KGenericFactory< KDiff3Plugin, KonqPopupMenu >( instanceName )
@ -45,7 +45,7 @@ public:
{ {
//std::cout << "New History: " << instanceName << std::endl; //std::cout << "New History: " << instanceName << std::endl;
s_pHistory = new TQStringList; s_pHistory = new TQStringList;
m_pConfig = new KSimpleConfig( "kdiff3pluginrc", false ); m_pConfig = new TDESimpleConfig( "kdiff3pluginrc", false );
*s_pHistory = m_pConfig->readListEntry("HistoryStack"); *s_pHistory = m_pConfig->readListEntry("HistoryStack");
} }
} }

Loading…
Cancel
Save