diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /lib/koproperty/widgetproxy.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
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
Diffstat (limited to 'lib/koproperty/widgetproxy.cpp')
-rw-r--r-- | lib/koproperty/widgetproxy.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
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 <qlayout.h> -#include <qvariant.h> +#include <tqlayout.h> +#include <tqvariant.h> 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); } } |