diff options
Diffstat (limited to 'kexi/core/kexidataiteminterface.cpp')
-rw-r--r-- | kexi/core/kexidataiteminterface.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kexi/core/kexidataiteminterface.cpp b/kexi/core/kexidataiteminterface.cpp index 8fe78c85..2dd9c813 100644 --- a/kexi/core/kexidataiteminterface.cpp +++ b/kexi/core/kexidataiteminterface.cpp @@ -33,7 +33,7 @@ KexiDataItemChangesListener::~KexiDataItemChangesListener() KexiDataItemInterface::KexiDataItemInterface() : m_listener(0) - , m_listenerIsQObject(false) + , m_listenerIsTQObject(false) , m_parentDataItemInterface(0) , m_hasFocusableWidget(true) , m_disable_signalValueChanged(false) @@ -45,15 +45,15 @@ KexiDataItemInterface::~KexiDataItemInterface() { } -void KexiDataItemInterface::setValue(const QVariant& value, const QVariant& add, - bool removeOld, const QVariant* visibleValue) +void KexiDataItemInterface::setValue(const TQVariant& value, const TQVariant& add, + bool removeOld, const TQVariant* visibleValue) { m_disable_signalValueChanged = true; //to prevent emmiting valueChanged() //needed? clear(); - if (dynamic_cast<QObject*>(this)) { + if (dynamic_cast<TQObject*>(this)) { kdDebug() << "KexiDataItemInterface::setValue(): " << - dynamic_cast<QObject*>(this)->className() << " " - << dynamic_cast<QWidget*>(this)->name() + dynamic_cast<TQObject*>(this)->className() << " " + << dynamic_cast<TQWidget*>(this)->name() << " value=" << value << " add=" << add << endl; } m_origValue = value; @@ -63,7 +63,7 @@ void KexiDataItemInterface::setValue(const QVariant& value, const QVariant& add, m_disable_signalValueChanged = false; } -void KexiDataItemInterface::setVisibleValueInternal(const QVariant& value) +void KexiDataItemInterface::setVisibleValueInternal(const TQVariant& value) { Q_UNUSED(value); } @@ -92,7 +92,7 @@ bool KexiDataItemInterface::valueChanged() } /* -void KexiDataItemInterface::setValue(const QVariant& value) +void KexiDataItemInterface::setValue(const TQVariant& value) { m_disable_signalValueChanged = true; //to prevent emmiting valueChanged() setValueInternal( value ); @@ -101,7 +101,7 @@ void KexiDataItemInterface::setValue(const QVariant& value) KexiDataItemChangesListener* KexiDataItemInterface::listener() { - if (!m_listener || !m_listenerIsQObject) + if (!m_listener || !m_listenerIsTQObject) return m_listener; if (!m_listenerObject) m_listener = 0; //destroyed, update pointer @@ -111,12 +111,12 @@ KexiDataItemChangesListener* KexiDataItemInterface::listener() void KexiDataItemInterface::installListener(KexiDataItemChangesListener* listener) { m_listener = listener; - m_listenerIsQObject = dynamic_cast<QObject*>(listener); - if (m_listenerIsQObject) - m_listenerObject = dynamic_cast<QObject*>(listener); + m_listenerIsTQObject = dynamic_cast<TQObject*>(listener); + if (m_listenerIsTQObject) + m_listenerObject = dynamic_cast<TQObject*>(listener); } -void KexiDataItemInterface::showFocus( const QRect& r, bool readOnly ) +void KexiDataItemInterface::showFocus( const TQRect& r, bool readOnly ) { Q_UNUSED(r); Q_UNUSED(readOnly); @@ -135,9 +135,9 @@ bool KexiDataItemInterface::valueIsValid() return true; } -void KexiDataItemInterface::setParentDataItemInterface(KexiDataItemInterface* parentDataItemInterface) +void KexiDataItemInterface::setParentDataItemInterface(KexiDataItemInterface* tqparentDataItemInterface) { - m_parentDataItemInterface = parentDataItemInterface; + m_parentDataItemInterface = tqparentDataItemInterface; } bool KexiDataItemInterface::cursorAtNewRow() |