summaryrefslogtreecommitdiffstats
path: root/kexi/main/kexinewstuff.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-25 05:28:35 +0000
commitf008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch)
tree8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/main/kexinewstuff.cpp
parent1210f27b660efb7b37ff43ec68763e85a403471f (diff)
downloadkoffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz
koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip
TQt4 port koffice
This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kexi/main/kexinewstuff.cpp')
-rw-r--r--kexi/main/kexinewstuff.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kexi/main/kexinewstuff.cpp b/kexi/main/kexinewstuff.cpp
index adc0fc83..23058e05 100644
--- a/kexi/main/kexinewstuff.cpp
+++ b/kexi/main/kexinewstuff.cpp
@@ -21,7 +21,7 @@
#include <kdebug.h>
#include <ktar.h>
-#include <qdir.h>
+#include <tqdir.h>
#include <kaction.h>
#include <kapplication.h>
#include <kfiledialog.h>
@@ -30,18 +30,18 @@
#include "kexinewstuff.h"
-KexiNewStuff::KexiNewStuff(QWidget *parent)
+KexiNewStuff::KexiNewStuff(TQWidget *tqparent)
: KNewStuff( "kexi/template"
#if KDE_IS_VERSION(3,3,0)
, "http://download.kde.org/khotnewstuff/kexi-providers.xml"
#endif
- , parent)
+ , tqparent)
{
// Prevent GHNS to deny downloading a second time. If GHNS
// fails to download something, it still marks the thing as
// successfully downloaded and therefore we arn't able to
// download it again :-/
- KGlobal::config()->deleteGroup("KNewStuffStatus");
+ KGlobal::config()->deleteGroup("KNewStufftqStatus");
}
KexiNewStuff::~KexiNewStuff()
@@ -49,21 +49,21 @@ KexiNewStuff::~KexiNewStuff()
}
bool
-KexiNewStuff::install(const QString &fileName)
+KexiNewStuff::install(const TQString &fileName)
{
kdDebug() << "KexiNewStuff::install(): " << fileName << endl;
KTar archive( fileName );
if ( !archive.open( IO_ReadOnly ) ) {
- kdDebug() << QString("KexiNewStuff::install: Failed to open archivefile \"%1\"").arg(fileName) << endl;
+ kdDebug() << TQString("KexiNewStuff::install: Failed to open archivefile \"%1\"").tqarg(fileName) << endl;
return false;
}
const KArchiveDirectory *archiveDir = archive.directory();
- const QString destDir = KFileDialog::getExistingDirectory(
- ":DownloadExampleDatabases", parentWidget(),
+ const TQString destDir = KFileDialog::getExistingDirectory(
+ ":DownloadExampleDatabases", tqparentWidget(),
i18n("Choose Directory Where to Install Example Database"));
if (destDir.isEmpty()) {
- kdDebug() << QString("KexiNewStuff::install: Destination-directory is empty.") << endl;
+ kdDebug() << TQString("KexiNewStuff::install: Destination-directory is empty.") << endl;
return false;
}
archiveDir->copyTo(destDir);
@@ -73,7 +73,7 @@ KexiNewStuff::install(const QString &fileName)
}
bool
-KexiNewStuff::createUploadFile(const QString &)
+KexiNewStuff::createUploadFile(const TQString &)
{
return true;
}