summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/childproperty.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/childproperty.cpp')
-rw-r--r--lib/widgets/propeditor/childproperty.cpp46
1 files changed, 23 insertions, 23 deletions
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 <qsize.h>
-#include <qpoint.h>
-#include <qrect.h>
-#include <qsizepolicy.h>
+#include <tqsize.h>
+#include <tqpoint.h>
+#include <tqrect.h>
+#include <tqsizepolicy.h>
#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<QString, QVariant> &v_valueList, const QString &description,
- const QVariant &value, bool save, bool readOnly)
+ChildProperty::ChildProperty(MultiProperty *parent, const TQString & name, ChildPropertyType childType,
+ const TQMap<TQString, TQVariant> &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();
}
}