summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/kwqnewstuff.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kwordquiz/src/kwqnewstuff.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz
tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwordquiz/src/kwqnewstuff.cpp')
-rw-r--r--kwordquiz/src/kwqnewstuff.cpp28
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;
}