summaryrefslogtreecommitdiffstats
path: root/kexi/widget/tableview/kexicelleditorfactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kexi/widget/tableview/kexicelleditorfactory.cpp')
-rw-r--r--kexi/widget/tableview/kexicelleditorfactory.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kexi/widget/tableview/kexicelleditorfactory.cpp b/kexi/widget/tableview/kexicelleditorfactory.cpp
index a20eac07..e0e9ec03 100644
--- a/kexi/widget/tableview/kexicelleditorfactory.cpp
+++ b/kexi/widget/tableview/kexicelleditorfactory.cpp
@@ -19,8 +19,8 @@
#include "kexicelleditorfactory.h"
-#include <qptrdict.h>
-#include <qintdict.h>
+#include <tqptrdict.h>
+#include <tqintdict.h>
#include <kstaticdeleter.h>
#include <kexidb/indexschema.h>
@@ -60,15 +60,15 @@ class KexiCellEditorFactoryPrivate
}
~KexiCellEditorFactoryPrivate() {}
- QString key(uint type, const QString& subType) const
+ TQString key(uint type, const TQString& subType) const
{
- QString key = QString::number(type);
+ TQString key = TQString::number(type);
if (!subType.isEmpty())
- key += (QString(" ") + subType);
+ key += (TQString(" ") + subType);
return key;
}
- void registerItem( KexiCellEditorFactoryItem& item, uint type, const QString& subType = QString::null )
+ void registerItem( KexiCellEditorFactoryItem& item, uint type, const TQString& subType = TQString() )
{
if (!items[ &item ])
items.insert( &item, &item );
@@ -76,20 +76,20 @@ class KexiCellEditorFactoryPrivate
items_by_type.insert( key(type, subType), &item );
}
- KexiCellEditorFactoryItem *findItem(uint type, const QString& subType)
+ KexiCellEditorFactoryItem *findItem(uint type, const TQString& subType)
{
KexiCellEditorFactoryItem *item = items_by_type[ key(type, subType) ];
if (item)
return item;
- item = items_by_type[ key(type, QString::null) ];
+ item = items_by_type[ key(type, TQString()) ];
if (item)
return item;
- return items_by_type[ key( KexiDB::Field::InvalidType, QString::null ) ];
+ return items_by_type[ key( KexiDB::Field::InvalidType, TQString() ) ];
}
- QPtrDict<KexiCellEditorFactoryItem> items; //!< list of editor factory items (for later destroy)
+ TQPtrDict<KexiCellEditorFactoryItem> items; //!< list of editor factory items (for later destroy)
- QDict<KexiCellEditorFactoryItem> items_by_type; //!< editor factory items accessed by a key
+ TQDict<KexiCellEditorFactoryItem> items_by_type; //!< editor factory items accessed by a key
};
static KStaticDeleter<KexiCellEditorFactoryPrivate> KexiCellEditorFactory_deleter;
@@ -124,7 +124,7 @@ void KexiCellEditorFactory::init()
KexiCellEditorFactory_static->registerItem( *new KexiInputEditorFactoryItem(), KexiDB::Field::InvalidType );
}
-void KexiCellEditorFactory::registerItem( KexiCellEditorFactoryItem& item, uint type, const QString& subType )
+void KexiCellEditorFactory::registerItem( KexiCellEditorFactoryItem& item, uint type, const TQString& subType )
{
init();
KexiCellEditorFactory_static->registerItem( item, type, subType );
@@ -146,7 +146,7 @@ static bool hasEnumType( const KexiTableViewColumn &column )
return true;
}
-KexiTableEdit* KexiCellEditorFactory::createEditor(KexiTableViewColumn &column, QWidget* parent)
+KexiTableEdit* KexiCellEditorFactory::createEditor(KexiTableViewColumn &column, TQWidget* tqparent)
{
init();
KexiDB::Field *realField;
@@ -176,7 +176,7 @@ KexiTableEdit* KexiCellEditorFactory::createEditor(KexiTableViewColumn &column,
KexiDB::IndexSchema::ListIterator it = table->indicesIterator();
for (;it.current();++it) {
KexiDB::IndexSchema *idx = it.current();
- if (idx->fields()->findRef(&f)!=-1) {
+ if (idx->fields()->tqfindRef(&f)!=-1) {
//find details-side rel. for this index
KexiDB::Relationship *rel = idx->detailsRelationships()->first();
if (rel) {
@@ -187,10 +187,10 @@ KexiTableEdit* KexiCellEditorFactory::createEditor(KexiTableViewColumn &column,
}
#endif
- return item->createEditor(column, parent);
+ return item->createEditor(column, tqparent);
}
-KexiCellEditorFactoryItem* KexiCellEditorFactory::item( uint type, const QString& subType )
+KexiCellEditorFactoryItem* KexiCellEditorFactory::item( uint type, const TQString& subType )
{
init();
return KexiCellEditorFactory_static->findItem(type, subType);