summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/property.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /lib/widgets/propeditor/property.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/widgets/propeditor/property.cpp')
-rw-r--r--lib/widgets/propeditor/property.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/widgets/propeditor/property.cpp b/lib/widgets/propeditor/property.cpp
index 621a2cc9..d219b8c3 100644
--- a/lib/widgets/propeditor/property.cpp
+++ b/lib/widgets/propeditor/property.cpp
@@ -18,19 +18,19 @@
***************************************************************************/
#include "property.h"
-#include <qstring.h>
+#include <tqstring.h>
namespace PropertyLib{
-Property::Property(int type, const QString &name, const QString &description,
- const QVariant &value, bool save, bool readOnly):
+Property::Property(int type, const TQString &name, const TQString &description,
+ const TQVariant &value, bool save, bool readOnly):
m_type(type), m_name(name), m_description(description), m_value(value), m_save(save),
m_readOnly(readOnly), m_visible(true)
{
}
-Property::Property(const QString &name, const QMap<QString, QVariant> &v_valueList,
- const QString &description, const QVariant &value, bool save, bool readOnly):
+Property::Property(const TQString &name, const TQMap<TQString, TQVariant> &v_valueList,
+ const TQString &description, const TQVariant &value, bool save, bool readOnly):
valueList(v_valueList), m_type(ValueFromList), m_name(name),
m_description(description), m_value(value), m_save(save), m_readOnly(readOnly),
m_visible(true)
@@ -54,12 +54,12 @@ bool Property::operator<(const Property &prop) const
return false;
}
-QString Property::name() const
+TQString Property::name() const
{
return m_name;
}
-void Property::setName(const QString &name)
+void Property::setName(const TQString &name)
{
m_name = name;
}
@@ -74,12 +74,12 @@ void Property::setType(int type)
m_type = type;
}
-QVariant Property::value() const
+TQVariant Property::value() const
{
return m_value;
}
-void Property::setValue(const QVariant &value, bool rememberOldValue)
+void Property::setValue(const TQVariant &value, bool rememberOldValue)
{
if (rememberOldValue)
m_oldValue = m_value;
@@ -88,17 +88,17 @@ void Property::setValue(const QVariant &value, bool rememberOldValue)
m_value = value;
}
-QString Property::description() const
+TQString Property::description() const
{
return m_description;
}
-void Property::setDescription(const QString &description)
+void Property::setDescription(const TQString &description)
{
m_description = description;
}
-void Property::setValueList(const QMap<QString, QVariant> &v_valueList)
+void Property::setValueList(const TQMap<TQString, TQVariant> &v_valueList)
{
valueList = v_valueList;
}
@@ -118,7 +118,7 @@ void Property::setVisible( const bool visible )
m_visible = visible;
}
-QVariant Property::oldValue() const
+TQVariant Property::oldValue() const
{
if (m_oldValue.isNull())
return m_value;