diff options
Diffstat (limited to 'kexi/formeditor/widgetwithsubpropertiesinterface.cpp')
| -rw-r--r-- | kexi/formeditor/widgetwithsubpropertiesinterface.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kexi/formeditor/widgetwithsubpropertiesinterface.cpp b/kexi/formeditor/widgetwithsubpropertiesinterface.cpp index 812379e18..83904aa72 100644 --- a/kexi/formeditor/widgetwithsubpropertiesinterface.cpp +++ b/kexi/formeditor/widgetwithsubpropertiesinterface.cpp @@ -19,8 +19,8 @@ #include "widgetwithsubpropertiesinterface.h" -#include <qmetaobject.h> -#include <qasciidict.h> +#include <tqmetaobject.h> +#include <tqasciidict.h> #include <kdebug.h> @@ -34,19 +34,19 @@ WidgetWithSubpropertiesInterface::~WidgetWithSubpropertiesInterface() { } -void WidgetWithSubpropertiesInterface::setSubwidget(QWidget *widget) +void WidgetWithSubpropertiesInterface::setSubwidget(TQWidget *widget) { m_subwidget = widget; m_subproperies.clear(); - QAsciiDict<char> addedSubproperies(1024); + TQAsciiDict<char> addedSubproperies(1024); if (m_subwidget) { - //remember properties in the subwidget that are not present in the parent - for( QMetaObject *metaObject = m_subwidget->metaObject(); metaObject; metaObject = metaObject->superClass()) { - const int numProperties = metaObject->numProperties(); + //remember properties in the subwidget that are not present in the tqparent + for( TQMetaObject *tqmetaObject = m_subwidget->tqmetaObject(); tqmetaObject; tqmetaObject = tqmetaObject->tqsuperClass()) { + const int numProperties = tqmetaObject->numProperties(); for (int i = 0; i < numProperties; i++) { - const char *propertyName = metaObject->property( i )->name(); - if (dynamic_cast<QObject*>(this)->metaObject()->findProperty( propertyName, true )==-1 - && !addedSubproperies.find( propertyName ) ) + const char *propertyName = tqmetaObject->property( i )->name(); + if (dynamic_cast<TQObject*>(this)->tqmetaObject()->tqfindProperty( propertyName, true )==-1 + && !addedSubproperies.tqfind( propertyName ) ) { m_subproperies.append( propertyName ); addedSubproperies.insert( propertyName, (char*)1 ); @@ -58,40 +58,40 @@ void WidgetWithSubpropertiesInterface::setSubwidget(QWidget *widget) } } -QWidget* WidgetWithSubpropertiesInterface::subwidget() const +TQWidget* WidgetWithSubpropertiesInterface::subwidget() const { return m_subwidget; } -QValueList<QCString> WidgetWithSubpropertiesInterface::subproperies() const +TQValueList<TQCString> WidgetWithSubpropertiesInterface::subproperies() const { return m_subproperies; } -const QMetaProperty *WidgetWithSubpropertiesInterface::findMetaSubproperty(const char * name) const +const TQMetaProperty *WidgetWithSubpropertiesInterface::findMetaSubproperty(const char * name) const { - if (!m_subwidget || m_subproperies.find(name) == m_subproperies.constEnd()) { + if (!m_subwidget || m_subproperies.tqfind(name) == m_subproperies.constEnd()) { return 0; } - const int index = m_subwidget->metaObject()->findProperty( name, true ); + const int index = m_subwidget->tqmetaObject()->tqfindProperty( name, true ); if (index==-1) return 0; - return m_subwidget->metaObject()->property( index, true ); + return m_subwidget->tqmetaObject()->property( index, true ); } -QVariant WidgetWithSubpropertiesInterface::subproperty( const char * name, bool &ok ) const +TQVariant WidgetWithSubpropertiesInterface::subproperty( const char * name, bool &ok ) const { - if (!m_subwidget || m_subproperies.find(name) == m_subproperies.constEnd()) { + if (!m_subwidget || m_subproperies.tqfind(name) == m_subproperies.constEnd()) { ok = false; - return QVariant(); + return TQVariant(); } ok = true; return m_subwidget->property( name ); } -bool WidgetWithSubpropertiesInterface::setSubproperty( const char * name, const QVariant & value ) +bool WidgetWithSubpropertiesInterface::setSubproperty( const char * name, const TQVariant & value ) { - if (!m_subwidget || m_subproperies.find(name) == m_subproperies.end()) { + if (!m_subwidget || m_subproperies.tqfind(name) == m_subproperies.end()) { return false; } return m_subwidget->setProperty( name, value ); |
