diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:07:25 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:07:25 -0600 |
commit | d7c34c577ba054152b59704506f2c8a5e2c4c2ba (patch) | |
tree | 7c361c88c97787084a90fac5b880f46e646dfa0b | |
parent | 8fd39570ed2addfc75abc73e3616ce12a3f9d8ee (diff) | |
download | tdmtheme-d7c34c577ba054152b59704506f2c8a5e2c4c2ba.tar.gz tdmtheme-d7c34c577ba054152b59704506f2c8a5e2c4c2ba.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
-rw-r--r-- | src/tdmtheme.cpp | 16 | ||||
-rw-r--r-- | 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<TDMThemeWidget, TQWidget> 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(); |