From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/widgets/propeditor/propertywidgetproxy.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'lib/widgets/propeditor/propertywidgetproxy.cpp') 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 +#include #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); } } -- cgit v1.2.1