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/childproperty.cpp | 46 ++++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'lib/widgets/propeditor/childproperty.cpp') diff --git a/lib/widgets/propeditor/childproperty.cpp b/lib/widgets/propeditor/childproperty.cpp index 12b7f4d9..ac53936a 100644 --- a/lib/widgets/propeditor/childproperty.cpp +++ b/lib/widgets/propeditor/childproperty.cpp @@ -19,29 +19,29 @@ ***************************************************************************/ #include "childproperty.h" -#include -#include -#include -#include +#include +#include +#include +#include #include "multiproperty.h" namespace PropertyLib{ -ChildProperty::ChildProperty(MultiProperty *parent, int type, ChildPropertyType childType, const QString &name, - const QString &description, const QVariant &value, bool save, bool readOnly) +ChildProperty::ChildProperty(MultiProperty *parent, int type, ChildPropertyType childType, const TQString &name, + const TQString &description, const TQVariant &value, bool save, bool readOnly) :Property(type, name, description, value, save, readOnly), m_parent(parent), m_childType(childType) { } -ChildProperty::ChildProperty(MultiProperty *parent, const QString & name, ChildPropertyType childType, - const QMap &v_valueList, const QString &description, - const QVariant &value, bool save, bool readOnly) +ChildProperty::ChildProperty(MultiProperty *parent, const TQString & name, ChildPropertyType childType, + const TQMap &v_valueList, const TQString &description, + const TQVariant &value, bool save, bool readOnly) :Property(name, v_valueList, description, value, save, readOnly), m_parent(parent), m_childType(childType) { } -void ChildProperty::setValue(const QVariant &value, bool // rememberOldValue +void ChildProperty::setValue(const TQVariant &value, bool // rememberOldValue ) { qWarning("ChildProperty::setValue"); @@ -51,8 +51,8 @@ void ChildProperty::setValue(const QVariant &value, bool // rememberOldValue { case Size: { - qWarning("ChildProperty::setValue for QSize"); - QSize v = m_parent->value().toSize(); + qWarning("ChildProperty::setValue for TQSize"); + TQSize v = m_parent->value().toSize(); if (m_childType == Size_Height) v.setHeight(value.toInt()); else if (m_childType == Size_Width) @@ -62,8 +62,8 @@ void ChildProperty::setValue(const QVariant &value, bool // rememberOldValue } case Point: { - qWarning("ChildProperty::setValue for QPoint"); - QPoint v = m_parent->value().toPoint(); + qWarning("ChildProperty::setValue for TQPoint"); + TQPoint v = m_parent->value().toPoint(); if (m_childType == Point_X) v.setX(value.toInt()); else if (m_childType == Point_Y) @@ -73,8 +73,8 @@ void ChildProperty::setValue(const QVariant &value, bool // rememberOldValue } case Rect: { - qWarning("ChildProperty::setValue for QRect"); - QRect v = m_parent->value().toRect(); + qWarning("ChildProperty::setValue for TQRect"); + TQRect v = m_parent->value().toRect(); if (m_childType == Rect_X) v.setX(value.toInt()); else if (m_childType == Rect_Y) @@ -88,12 +88,12 @@ void ChildProperty::setValue(const QVariant &value, bool // rememberOldValue } case SizePolicy: { - qWarning("ChildProperty::setValue for QSizePolicy"); - QSizePolicy v = m_parent->value().toSizePolicy(); + qWarning("ChildProperty::setValue for TQSizePolicy"); + TQSizePolicy v = m_parent->value().toSizePolicy(); if (m_childType == SizePolicy_HorData) - v.setHorData(QSizePolicy::SizeType(value.toInt())); + v.setHorData(TQSizePolicy::SizeType(value.toInt())); else if (m_childType == SizePolicy_VerData) - v.setVerData(QSizePolicy::SizeType(value.toInt())); + v.setVerData(TQSizePolicy::SizeType(value.toInt())); else if (m_childType == SizePolicy_HorStretch) v.setHorStretch(value.toInt()); else if (m_childType == SizePolicy_VerStretch) @@ -104,10 +104,10 @@ void ChildProperty::setValue(const QVariant &value, bool // rememberOldValue } } -QVariant ChildProperty::value( ) const +TQVariant ChildProperty::value( ) const { if (!m_parent->valid()) - return QVariant(); + return TQVariant(); switch (m_parent->type()) { case Size: @@ -139,7 +139,7 @@ QVariant ChildProperty::value( ) const else if (m_childType == SizePolicy_VerStretch) return m_parent->value().toSizePolicy().verStretch(); } - return QVariant(); + return TQVariant(); } } -- cgit v1.2.3