summaryrefslogtreecommitdiffstats
path: root/kexi/widget/kexicustompropertyfactory.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/widget/kexicustompropertyfactory.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/widget/kexicustompropertyfactory.cpp')
-rw-r--r--kexi/widget/kexicustompropertyfactory.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kexi/widget/kexicustompropertyfactory.cpp b/kexi/widget/kexicustompropertyfactory.cpp
index 3df9e233..e89727d0 100644
--- a/kexi/widget/kexicustompropertyfactory.cpp
+++ b/kexi/widget/kexicustompropertyfactory.cpp
@@ -29,15 +29,15 @@ using namespace KoProperty;
class PixmapIdCustomProperty : public CustomProperty
{
public:
- PixmapIdCustomProperty(Property *parent)
- : CustomProperty(parent) {
+ PixmapIdCustomProperty(Property *tqparent)
+ : CustomProperty(tqparent) {
}
virtual ~PixmapIdCustomProperty() {};
- virtual void setValue(const QVariant &value, bool rememberOldValue) {
+ virtual void setValue(const TQVariant &value, bool rememberOldValue) {
Q_UNUSED( value );
Q_UNUSED( rememberOldValue);
}
- virtual QVariant value() const { return m_property->value(); }
+ virtual TQVariant value() const { return m_property->value(); }
virtual bool handleValue() const {
return false; //m_property->type()==KexiCustomPropertyFactory::PixmapData;
}
@@ -47,27 +47,27 @@ class PixmapIdCustomProperty : public CustomProperty
class IdentifierCustomProperty : public CustomProperty
{
public:
- IdentifierCustomProperty(Property *parent)
- : CustomProperty(parent) {
+ IdentifierCustomProperty(Property *tqparent)
+ : CustomProperty(tqparent) {
}
virtual ~IdentifierCustomProperty() {};
- virtual void setValue(const QVariant &value, bool rememberOldValue)
+ virtual void setValue(const TQVariant &value, bool rememberOldValue)
{
Q_UNUSED(rememberOldValue);
if (!value.toString().isEmpty())
m_value = KexiUtils::string2Identifier(value.toString()).lower();
}
- virtual QVariant value() const { return m_value; }
+ virtual TQVariant value() const { return m_value; }
virtual bool handleValue() const {
return true;
}
- QString m_value;
+ TQString m_value;
};
//---------------
-KexiCustomPropertyFactory::KexiCustomPropertyFactory(QObject* parent)
-: CustomPropertyFactory(parent)
+KexiCustomPropertyFactory::KexiCustomPropertyFactory(TQObject* tqparent)
+: CustomPropertyFactory(tqparent)
{
}
@@ -75,13 +75,13 @@ KexiCustomPropertyFactory::~KexiCustomPropertyFactory()
{
}
-CustomProperty* KexiCustomPropertyFactory::createCustomProperty(Property *parent)
+CustomProperty* KexiCustomPropertyFactory::createCustomProperty(Property *tqparent)
{
- const int type = parent->type();
+ const int type = tqparent->type();
if (type==(int)KexiCustomPropertyFactory::PixmapId)
- return new PixmapIdCustomProperty(parent);
+ return new PixmapIdCustomProperty(tqparent);
else if (type==(int)KexiCustomPropertyFactory::Identifier)
- return new IdentifierCustomProperty(parent);
+ return new IdentifierCustomProperty(tqparent);
return 0;
}
@@ -103,7 +103,7 @@ void KexiCustomPropertyFactory::init()
// register custom editors and properties
KexiCustomPropertyFactory *factory = new KexiCustomPropertyFactory(KoProperty::FactoryManager::self());
- QValueList<int> types;
+ TQValueList<int> types;
types << KexiCustomPropertyFactory::PixmapId << KexiCustomPropertyFactory::Identifier;
KoProperty::FactoryManager::self()->registerFactoryForProperties(types, factory);
KoProperty::FactoryManager::self()->registerFactoryForEditors(types, factory);