From d7c34c577ba054152b59704506f2c8a5e2c4c2ba Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 25 Jan 2013 00:07:25 -0600 Subject: [PATCH] Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4 --- src/tdmtheme.cpp | 16 ++++++++-------- src/tdmtheme.h | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/tdmtheme.cpp b/src/tdmtheme.cpp index a99bb0c..68df9ef 100644 --- a/src/tdmtheme.cpp +++ b/src/tdmtheme.cpp @@ -61,7 +61,7 @@ typedef KGenericFactory tdmthemeFactory; K_EXPORT_COMPONENT_FACTORY( kcm_tdmtheme, tdmthemeFactory("kcmtdmtheme")) TDMThemeWidget::TDMThemeWidget( TQWidget *parent, const char *name, const TQStringList& ) - : KCModule(parent, name), config( 0L ) + : TDECModule(parent, name), config( 0L ) { TQGridLayout *ml = new TQGridLayout( this ); ml->setSpacing( KDialog::spacingHint() ); @@ -160,7 +160,7 @@ void TDMThemeWidget::load() kdDebug() << "Loading... ( " + tdmrc + " )" << endl; delete config; - config = new KConfig( tdmrc ); + config = new TDEConfig( tdmrc ); config->setGroup( "X-*-Greeter" ); cUseTheme->setChecked( config->readBoolEntry( "UseTheme", false ) ); @@ -197,16 +197,16 @@ void TDMThemeWidget::setReadOnly(bool ro) void TDMThemeWidget::insertTheme( const TQString &_theme ) { - KConfig * themeConfig; + TDEConfig * themeConfig; TQString name; kdDebug() << "Looking for " << _theme << "/KdmGreeterTheme.desktop" << endl; - themeConfig = new KConfig( _theme + "/KdmGreeterTheme.desktop"); + themeConfig = new TDEConfig( _theme + "/KdmGreeterTheme.desktop"); themeConfig->setGroup( "GdmGreeterTheme" ); name = themeConfig->readEntry( "Name" ); if (name.isEmpty()) { kdDebug() << "Looking for " << _theme << "/GdmGreeterTheme.desktop" << endl; - themeConfig = new KConfig( _theme + "/GdmGreeterTheme.desktop"); + themeConfig = new TDEConfig( _theme + "/GdmGreeterTheme.desktop"); themeConfig->setGroup( "GdmGreeterTheme" ); name = themeConfig->readEntry( "Name" ); @@ -255,7 +255,7 @@ void TDMThemeWidget::installNewTheme() TQString themeTmpFile; - if (!KIO::NetAccess::download( themeURL, themeTmpFile, this )) { + if (!TDEIO::NetAccess::download( themeURL, themeTmpFile, this )) { TQString sorryText; if (themeURL.isLocalFile()) sorryText = i18n("Unable to find the TDM theme archive %1.",themeURL.prettyURL()); @@ -314,7 +314,7 @@ void TDMThemeWidget::installNewTheme() archive.close(); - KIO::NetAccess::removeTempFile( themeTmpFile ); + TDEIO::NetAccess::removeTempFile( themeTmpFile ); } void TDMThemeWidget::themeSelected() @@ -336,7 +336,7 @@ void TDMThemeWidget::removeSelectedThemes() i18n("Are you sure you want to remove this TDM theme?"), themes->text(0), i18n("Remove theme?") ) != KMessageBox::Yes) return; - KIO::del( ((ThemeData *)themes)->path ); // XXX error check + TDEIO::del( ((ThemeData *)themes)->path ); // XXX error check themeWidget->takeItem( themes ); } diff --git a/src/tdmtheme.h b/src/tdmtheme.h index 6754a33..0b49bef 100644 --- a/src/tdmtheme.h +++ b/src/tdmtheme.h @@ -33,7 +33,7 @@ class TQPushButton; class TQListView; class TQCheckBox; -class TDMThemeWidget : public KCModule { +class TDMThemeWidget : public TDECModule { Q_OBJECT @@ -59,7 +59,7 @@ class TDMThemeWidget : public KCModule { ThemeData *defaultTheme; TQString themeDir; - KConfig *config; + TDEConfig *config; protected slots: void themeSelected();