summaryrefslogtreecommitdiffstats
path: root/kexi/widget/kexicustompropertyfactory.cpp
diff options
context:
space:
mode:
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);