summaryrefslogtreecommitdiffstats
path: root/kexi/core/kexipartinfo.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/core/kexipartinfo.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/core/kexipartinfo.cpp')
-rw-r--r--kexi/core/kexipartinfo.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/kexi/core/kexipartinfo.cpp b/kexi/core/kexipartinfo.cpp
index 22f7cc55..6907474a 100644
--- a/kexi/core/kexipartinfo.cpp
+++ b/kexi/core/kexipartinfo.cpp
@@ -33,7 +33,7 @@ Info::Private::Private(const KService::Ptr& aPtr)
, broken(false)
, idStoredInPartDatabase(false)
{
- QVariant val = ptr->property("X-Kexi-NoObject");
+ TQVariant val = ptr->property("X-Kexi-NoObject");
isVisibleInNavigator = val.isValid() ? (val.toInt() != 1) : true;
//! @todo (js)..... now it's hardcoded!
@@ -72,15 +72,15 @@ Info::~Info()
delete d;
}
-QString Info::groupName() const { return d->groupName; }
+TQString Info::groupName() const { return d->groupName; }
-QCString Info::mimeType() const { return d->mimeType; }
+TQCString Info::mimeType() const { return d->mimeType; }
-QString Info::itemIcon() const { return d->itemIcon; }
+TQString Info::itemIcon() const { return d->itemIcon; }
-QString Info::createItemIcon() const { return d->itemIcon+"_newobj"; }
+TQString Info::createItemIcon() const { return d->itemIcon+"_newobj"; }
-QString Info::objectName() const { return d->objectName; }
+TQString Info::objectName() const { return d->objectName; }
KService::Ptr Info::ptr() const { return d->ptr; }
@@ -92,10 +92,10 @@ int Info::projectPartID() const { return d->projectPartID; }
void Info::setProjectPartID(int id) { d->projectPartID=id; }
-void Info::setBroken(bool broken, const QString& errorMessage)
+void Info::setBroken(bool broken, const TQString& errorMessage)
{ d->broken = broken; d->errorMessage = errorMessage; }
-QString Info::errorMessage() const { return d->errorMessage; }
+TQString Info::errorMessage() const { return d->errorMessage; }
void Info::setIdStoredInPartDatabase(bool set)
{
@@ -109,25 +109,25 @@ bool Info::isIdStoredInPartDatabase() const
bool Info::isDataExportSupported() const
{
- QVariant val = d->ptr ? d->ptr->property("X-Kexi-SupportsDataExport") : QVariant();
+ TQVariant val = d->ptr ? d->ptr->property("X-Kexi-SupportsDataExport") : TQVariant();
return val.isValid() ? val.toBool() : false;
}
bool Info::isPrintingSupported() const
{
- QVariant val = d->ptr ? d->ptr->property("X-Kexi-SupportsPrinting") : QVariant();
+ TQVariant val = d->ptr ? d->ptr->property("X-Kexi-SupportsPrinting") : TQVariant();
return val.isValid() ? val.toBool() : false;
}
bool Info::isExecuteSupported() const
{
- QVariant val = d->ptr ? d->ptr->property("X-Kexi-SupportsExecution") : QVariant();
+ TQVariant val = d->ptr ? d->ptr->property("X-Kexi-SupportsExecution") : TQVariant();
return val.isValid() ? val.toBool() : false;
}
//--------------
-QCString KexiPart::nameForCreateAction(const Info& info)
+TQCString KexiPart::nameForCreateAction(const Info& info)
{
return (info.objectName()+"part_create").latin1();
}