summaryrefslogtreecommitdiffstats
path: root/kpat/pwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpat/pwidget.cpp')
-rw-r--r--kpat/pwidget.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kpat/pwidget.cpp b/kpat/pwidget.cpp
index 288ebc6a..f79bb4d2 100644
--- a/kpat/pwidget.cpp
+++ b/kpat/pwidget.cpp
@@ -145,8 +145,8 @@ pWidget::pWidget()
actionCollection(), "enable_autodrop");
dropaction->setCheckedState(i18n("Disable Autodrop"));
- KConfig *config = kapp->config();
- KConfigGroupSaver cs(config, settings_group );
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver cs(config, settings_group );
TQString bgpath = config->readPathEntry("Background");
kdDebug(11111) << "bgpath '" << bgpath << "'" << endl;
@@ -198,8 +198,8 @@ void pWidget::undoPossible(bool poss)
}
void pWidget::changeBackside() {
- KConfig *config = kapp->config();
- KConfigGroupSaver kcs(config, settings_group);
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver kcs(config, settings_group);
TQString deck = config->readEntry("Back", KCardDialog::getDefaultDeck());
TQString cards = config->readEntry("Cards", KCardDialog::getDefaultCardDir());
@@ -262,8 +262,8 @@ void pWidget::changeWallpaper()
midcolor = TQColor(r, b, g);
if (dill) {
- KConfig *config = kapp->config();
- KConfigGroupSaver kcs(config, settings_group);
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver kcs(config, settings_group);
TQString deck = config->readEntry("Back", KCardDialog::getDefaultDeck());
TQString dummy = config->readEntry("Cards", KCardDialog::getDefaultCardDir());
@@ -278,16 +278,16 @@ void pWidget::changeWallpaper()
void pWidget::animationChanged() {
bool anim = animation->isChecked();
- KConfig *config = kapp->config();
- KConfigGroupSaver cs(config, settings_group );
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver cs(config, settings_group );
config->writeEntry( "Animation", anim);
}
void pWidget::enableAutoDrop()
{
bool drop = dropaction->isChecked();
- KConfig *config = kapp->config();
- KConfigGroupSaver cs(config, settings_group );
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver cs(config, settings_group );
config->writeEntry( "Autodrop", drop);
dill->setAutoDropEnabled(drop);
}
@@ -377,8 +377,8 @@ void pWidget::newGameType()
setGameCaption();
- KConfig *config = kapp->config();
- KConfigGroupSaver kcs(config, settings_group);
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver kcs(config, settings_group);
config->writeEntry("DefaultGame", id);
TQSize min(700,400);
@@ -411,8 +411,8 @@ void pWidget::slotUpdateMoves()
void pWidget::setBackSide(const TQString &deck, const TQString &cards)
{
- KConfig *config = kapp->config();
- KConfigGroupSaver kcs(config, settings_group);
+ TDEConfig *config = kapp->config();
+ TDEConfigGroupSaver kcs(config, settings_group);
TQPixmap pm(deck);
if(!pm.isNull()) {
cardMap::self()->setBackSide(pm, false);
@@ -467,11 +467,11 @@ void pWidget::gameLost()
// The following code is taken out of kmessagebox.cpp in tdeui.
// Is there a better way?
- KConfig *config = 0;
+ TDEConfig *config = 0;
TQString grpNotifMsgs = TQString::fromLatin1("Notification Messages");
config = TDEGlobal::config();
- KConfigGroupSaver saver(config,
+ TDEConfigGroupSaver saver(config,
TQString::fromLatin1("Notification Messages"));
TQString dontAsk = config->readEntry(dontAskAgainName).lower();
@@ -498,7 +498,7 @@ void pWidget::gameLost()
void pWidget::openGame(const KURL &url)
{
TQString tmpFile;
- if( KIO::NetAccess::download( url, tmpFile, this ) )
+ if( TDEIO::NetAccess::download( url, tmpFile, this ) )
{
TQFile of(tmpFile);
of.open(IO_ReadOnly);
@@ -522,7 +522,7 @@ void pWidget::openGame(const KURL &url)
}
dill->openGame(doc);
setGameCaption();
- KIO::NetAccess::removeTempFile( tmpFile );
+ TDEIO::NetAccess::removeTempFile( tmpFile );
recent->addURL(url);
recent->saveEntries(TDEGlobal::config());
}
@@ -543,7 +543,7 @@ void pWidget::saveGame()
TQTextStream *stream = file.textStream();
*stream << doc.toString();
file.close();
- KIO::NetAccess::upload(file.name(), url, this);
+ TDEIO::NetAccess::upload(file.name(), url, this);
recent->addURL(url);
recent->saveEntries(TDEGlobal::config());
}