diff options
Diffstat (limited to 'kwordquiz/src/kwqnewstuff.cpp')
-rw-r--r-- | kwordquiz/src/kwqnewstuff.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/kwordquiz/src/kwqnewstuff.cpp b/kwordquiz/src/kwqnewstuff.cpp index 05da32af..0d7fb1de 100644 --- a/kwordquiz/src/kwqnewstuff.cpp +++ b/kwordquiz/src/kwqnewstuff.cpp @@ -27,26 +27,26 @@ #include "kwqnewstuff.h" #include "prefs.h" -KWQNewStuff::KWQNewStuff(TQWidget *parent, const char *name) : TQObject(), KNewStuff("kdeedu/vocabulary", parent) +KWTQNewStuff::KWTQNewStuff(TQWidget *tqparent, const char *name) : TQObject(), KNewStuff("kdeedu/vocabulary", tqparent) { - m_app = (KWordQuizApp *) parent; + m_app = (KWordQuizApp *) tqparent; } -bool KWQNewStuff::install(const TQString & fileName) +bool KWTQNewStuff::install(const TQString & fileName) { m_app->slotFileOpenRecent(KURL(fileName)); return true; } -bool KWQNewStuff::createUploadFile(const TQString & fileName) +bool KWTQNewStuff::createUploadFile(const TQString & fileName) { return true; } -TQString KWQNewStuff::destinationPath(KNS::Entry * entry) +TQString KWTQNewStuff::destinationPath(KNS::Entry * entry) { if (entry) { @@ -67,28 +67,28 @@ TQString KWQNewStuff::destinationPath(KNS::Entry * entry) return file; } else - return TQString::null; + return TQString(); } -TQString KWQNewStuff::downloadDestination(KNS::Entry * entry) +TQString KWTQNewStuff::downloadDestination(KNS::Entry * entry) { TQString file = destinationPath(entry); if (KStandardDirs::exists(file)) { - int result = KMessageBox::questionYesNo(parentWidget(), + int result = KMessageBox::questionYesNo(tqparentWidget(), i18n("The file '%1' already exists. Do you want to overwrite it?") - .arg(file), - TQString::null, + .tqarg(file), + TQString(), i18n("Overwrite"),i18n("Do Not Overwrite")); if (result == KMessageBox::No) - return TQString::null; + return TQString(); } - KMessageBox::information(parentWidget(), + KMessageBox::information(tqparentWidget(), i18n("<qt>The selected file will now be downloaded and saved as\n<b>'%1'</b>.</qt>") - .arg(file), - TQString::null, + .tqarg(file), + TQString(), "NewStuffDownloadLocation"); return file; } |