summaryrefslogtreecommitdiffstats
path: root/kvoctrain/kvoctrain/kvtnewstuff.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kvoctrain/kvoctrain/kvtnewstuff.cpp')
-rw-r--r--kvoctrain/kvoctrain/kvtnewstuff.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kvoctrain/kvoctrain/kvtnewstuff.cpp b/kvoctrain/kvoctrain/kvtnewstuff.cpp
index b1004c56..2714cf76 100644
--- a/kvoctrain/kvoctrain/kvtnewstuff.cpp
+++ b/kvoctrain/kvoctrain/kvtnewstuff.cpp
@@ -10,7 +10,7 @@
//
//
-#include <qdir.h>
+#include <tqdir.h>
#include <kprocess.h>
#include <klocale.h>
@@ -22,13 +22,13 @@
#include "kvtnewstuff.h"
#include "prefs.h"
-KVTNewStuff::KVTNewStuff(QWidget *parent, const char * /*name*/) : QObject(), KNewStuff("kdeedu/vocabulary", parent)
+KVTNewStuff::KVTNewStuff(TQWidget *parent, const char * /*name*/) : TQObject(), KNewStuff("kdeedu/vocabulary", parent)
{
m_app = (kvoctrainApp*) parent;
}
-bool KVTNewStuff::install(const QString & fileName)
+bool KVTNewStuff::install(const TQString & fileName)
{
if (m_app->queryExit())
m_app->loadfileFromPath(fileName, true);
@@ -36,54 +36,54 @@ bool KVTNewStuff::install(const QString & fileName)
}
-bool KVTNewStuff::createUploadFile(const QString & /*fileName*/)
+bool KVTNewStuff::createUploadFile(const TQString & /*fileName*/)
{
return true;
}
-QString KVTNewStuff::destinationPath(KNS::Entry * entry)
+TQString KVTNewStuff::destinationPath(KNS::Entry * entry)
{
if (entry)
{
KURL url = entry->payload();
- QString fileName = url.fileName();
+ TQString fileName = url.fileName();
- QString path = Prefs::installPath(); //default is Vocabularies which will be created in the user's home directory
- QString file;
+ TQString path = Prefs::installPath(); //default is Vocabularies which will be created in the user's home directory
+ TQString file;
if (path.isEmpty())
file = KNewStuff::downloadDestination(entry); //fall back on a temp file, should never happen
else
{
- file = QDir::home().path() + "/" + path + "/";
+ file = TQDir::home().path() + "/" + path + "/";
KStandardDirs::makeDir(file); //ensure the directory exists
file += fileName;
}
return file;
}
else
- return QString::null;
+ return TQString::null;
}
-QString KVTNewStuff::downloadDestination(KNS::Entry * entry)
+TQString KVTNewStuff::downloadDestination(KNS::Entry * entry)
{
- QString file = destinationPath(entry);
+ TQString file = destinationPath(entry);
if (KStandardDirs::exists(file))
{
int result = KMessageBox::warningContinueCancel(parentWidget(),
i18n("The file '%1' already exists. Do you want to overwrite it?")
.arg(file),
- QString::null, i18n("Overwrite") );
+ TQString::null, i18n("Overwrite") );
if (result == KMessageBox::Cancel)
- return QString::null;
+ return TQString::null;
}
KMessageBox::information(parentWidget(),
i18n("<qt>The selected file will now be downloaded and saved as\n<b>'%1'</b>.</qt>")
.arg(file),
- QString::null,
+ TQString::null,
"NewStuffDownloadLocation");
return file;
}