diff options
author | Timothy Pearson <[email protected]> | 2013-01-25 00:32:59 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-01-25 00:32:59 -0600 |
commit | 2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d (patch) | |
tree | ea24a96bad3bb7356ec1a2dca2a1338692d79745 /kjumpingcube/kjumpingcube.cpp | |
parent | d6f3812c8d969a673b420beca2482804177704fb (diff) | |
download | tdegames-2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d.tar.gz tdegames-2f84d0e2d3d4252e6aee24aceafa45dbdb7f4d1d.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'kjumpingcube/kjumpingcube.cpp')
-rw-r--r-- | kjumpingcube/kjumpingcube.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kjumpingcube/kjumpingcube.cpp b/kjumpingcube/kjumpingcube.cpp index 32b19673..c8f8e66f 100644 --- a/kjumpingcube/kjumpingcube.cpp +++ b/kjumpingcube/kjumpingcube.cpp @@ -120,7 +120,7 @@ void KJumpingCube::saveGame(bool saveAs) url.setFileName( url.filename()+".kjc" ); } - if(KIO::NetAccess::exists(url,false,this)) + if(TDEIO::NetAccess::exists(url,false,this)) { TQString mes=i18n("The file %1 exists.\n" "Do you want to overwrite it?").arg(url.url()); @@ -144,7 +144,7 @@ void KJumpingCube::saveGame(bool saveAs) view->saveGame(&config); config.sync(); - if(KIO::NetAccess::upload( tempFile.name(),gameURL,this )) + if(TDEIO::NetAccess::upload( tempFile.name(),gameURL,this )) { TQString s=i18n("game saved as %1"); s=s.arg(gameURL.url()); @@ -166,7 +166,7 @@ void KJumpingCube::openGame() url = KFileDialog::getOpenURL( gameURL.url(), "*.kjc", this, 0 ); if( url.isEmpty() ) return; - if(!KIO::NetAccess::exists(url,true,this)) + if(!TDEIO::NetAccess::exists(url,true,this)) { TQString mes=i18n("The file %1 does not exist!").arg(url.url()); KMessageBox::sorry(this,mes); @@ -176,7 +176,7 @@ void KJumpingCube::openGame() while(!fileOk); TQString tempFile; - if( KIO::NetAccess::download( url, tempFile, this ) ) + if( TDEIO::NetAccess::download( url, tempFile, this ) ) { KSimpleConfig config(tempFile,true); config.setGroup("KJumpingCube"); @@ -194,7 +194,7 @@ void KJumpingCube::openGame() undoAction->setEnabled(false); - KIO::NetAccess::removeTempFile( tempFile ); + TDEIO::NetAccess::removeTempFile( tempFile ); } else KMessageBox::sorry(this,i18n("There was an error loading file\n%1").arg( url.url() )); @@ -265,10 +265,10 @@ void KJumpingCube::enableStop_Thinking(){ * Show Configure dialog. */ void KJumpingCube::showOptions(){ - if(KConfigDialog::showDialog("settings")) + if(TDEConfigDialog::showDialog("settings")) return; - KConfigDialog *dialog = new KConfigDialog(this, "settings", Prefs::self(), KDialogBase::Swallow); + TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Prefs::self(), KDialogBase::Swallow); dialog->addPage(new Settings(0, "General"), i18n("General"), "package_settings"); connect(dialog, TQT_SIGNAL(settingsChanged()), view, TQT_SLOT(loadSettings())); dialog->show(); |