From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: TQt4 port koffice This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/koproperty/widgetproxy.cpp | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'lib/koproperty/widgetproxy.cpp') diff --git a/lib/koproperty/widgetproxy.cpp b/lib/koproperty/widgetproxy.cpp index a98f57a1..94656038 100644 --- a/lib/koproperty/widgetproxy.cpp +++ b/lib/koproperty/widgetproxy.cpp @@ -22,15 +22,15 @@ #include "widget.h" #include "factory.h" -#include -#include +#include +#include namespace KoProperty { class WidgetProxyPrivate { public: WidgetProxyPrivate() - : property(0), widget(0), type(Invalid), layout(0) + : property(0), widget(0), type(Invalid), tqlayout(0) {} ~WidgetProxyPrivate() {} @@ -38,18 +38,18 @@ class WidgetProxyPrivate Widget *widget; PropertyType type; - QHBoxLayout *layout; + TQHBoxLayout *tqlayout; }; } using namespace KoProperty; -WidgetProxy::WidgetProxy(QWidget *parent, const char *name) - : QWidget(parent, name) +WidgetProxy::WidgetProxy(TQWidget *tqparent, const char *name) + : TQWidget(tqparent, name) { d = new WidgetProxyPrivate(); d->property = new Property(); - d->layout = new QHBoxLayout(this, 0, 0); + d->tqlayout = new TQHBoxLayout(this, 0, 0); } WidgetProxy::~WidgetProxy() @@ -70,24 +70,24 @@ WidgetProxy::propertyType() const return d->type; } -QVariant +TQVariant WidgetProxy::value() const { if (m_editor) return m_editor->value(); else - return QVariant(); + return TQVariant(); } void -WidgetProxy::setValue(const QVariant &value) +WidgetProxy::setValue(const TQVariant &value) { if (d->widget) d->widget->setValue(value, false); } bool -WidgetProxy::setProperty(const char *name, const QVariant &value) +WidgetProxy::setProperty(const char *name, const TQVariant &value) { if( strcmp(name, "value") == 0 ) { setPropertyType((int) value.type() ); @@ -95,16 +95,16 @@ WidgetProxy::setProperty(const char *name, const QVariant &value) return true; } else - return QWidget::setProperty(name, value); + return TQWidget::setProperty(name, value); } -QVariant +TQVariant WidgetProxy::property(const char *name) const { if( strcmp( name, "value") == 0 ) return value( ); else - return QWidget::property(name); + return TQWidget::property(name); } void @@ -117,8 +117,8 @@ WidgetProxy::setWidget() d->widget = Factory::getInstance()->widgetForProperty(p); if (d->widget) { - d->widget->reparent(this, QPoint(0,0), true); - d->layout->addWidget(d->widget); + d->widget->reparent(this, TQPoint(0,0), true); + d->tqlayout->addWidget(d->widget); } } -- cgit v1.2.1