diff options
Diffstat (limited to 'lib/widgets/propeditor/propertywidgetproxy.cpp')
-rw-r--r-- | lib/widgets/propeditor/propertywidgetproxy.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/widgets/propeditor/propertywidgetproxy.cpp b/lib/widgets/propeditor/propertywidgetproxy.cpp index d2c29aae..813708ca 100644 --- a/lib/widgets/propeditor/propertywidgetproxy.cpp +++ b/lib/widgets/propeditor/propertywidgetproxy.cpp @@ -19,18 +19,18 @@ ***************************************************************************/ #include "propertywidgetproxy.h" -#include <qlayout.h> +#include <tqlayout.h> #include "propertywidget.h" #include "propertymachinefactory.h" namespace PropertyLib{ -PropertyWidgetProxy::PropertyWidgetProxy(QWidget *parent, const char *name) - :QWidget(parent, name), mp(0), m_propertyType(Property::Invalid), m_editor(0) +PropertyWidgetProxy::PropertyWidgetProxy(TQWidget *parent, const char *name) + :TQWidget(parent, name), mp(0), m_propertyType(Property::Invalid), m_editor(0) { p = new Property(); - m_layout = new QHBoxLayout(this, 0, 0); + m_layout = new TQHBoxLayout(this, 0, 0); } PropertyWidgetProxy::~PropertyWidgetProxy() @@ -60,26 +60,26 @@ void PropertyWidgetProxy::setWidget() m_editor = PropertyMachineFactory::getInstance()->machineForProperty(mp)->propertyEditor; if (m_editor) { - m_editor->reparent(this, QPoint(0,0), true); + m_editor->reparent(this, TQPoint(0,0), true); m_layout->addWidget(m_editor); } } -QVariant PropertyWidgetProxy::value() const +TQVariant PropertyWidgetProxy::value() const { if (m_editor) return m_editor->value(); else - return QVariant(); + return TQVariant(); } -void PropertyWidgetProxy::setValue(const QVariant &value) +void PropertyWidgetProxy::setValue(const TQVariant &value) { if (m_editor) m_editor->setValue(value, false); } -bool PropertyWidgetProxy::setProperty( const char * name, const QVariant & value ) +bool PropertyWidgetProxy::setProperty( const char * name, const TQVariant & value ) { if( strcmp( name, "value") == 0 ) { @@ -88,15 +88,15 @@ bool PropertyWidgetProxy::setProperty( const char * name, const QVariant & value return true; } else - return QWidget::setProperty(name, value); + return TQWidget::setProperty(name, value); } -QVariant PropertyWidgetProxy::property( const char * name ) const +TQVariant PropertyWidgetProxy::property( const char * name ) const { if( strcmp( name, "value") == 0 ) return value( ); else - return QWidget::property(name); + return TQWidget::property(name); } } |