summaryrefslogtreecommitdiffstats
path: root/lib/widgets/propeditor/propertylist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/widgets/propeditor/propertylist.cpp')
-rw-r--r--lib/widgets/propeditor/propertylist.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/lib/widgets/propeditor/propertylist.cpp b/lib/widgets/propeditor/propertylist.cpp
index e92f28b3..491c2ebb 100644
--- a/lib/widgets/propeditor/propertylist.cpp
+++ b/lib/widgets/propeditor/propertylist.cpp
@@ -25,12 +25,12 @@
namespace PropertyLib{
PropertyList::PropertyList()
- :QObject(0, 0), m_propertyOwner(true)
+ :TQObject(0, 0), m_propertyOwner(true)
{
}
PropertyList::PropertyList(bool propertyOwner)
- :QObject(0, 0), m_propertyOwner(propertyOwner)
+ :TQObject(0, 0), m_propertyOwner(propertyOwner)
{
}
@@ -39,7 +39,7 @@ PropertyList::~PropertyList()
clear();
}
-MultiProperty *PropertyList::operator[](const QString &name)
+MultiProperty *PropertyList::operator[](const TQString &name)
{
if (m_list.contains(name))
return m_list[name];
@@ -47,7 +47,7 @@ MultiProperty *PropertyList::operator[](const QString &name)
return new MultiProperty(this);
}
-MultiProperty *PropertyList::property( const QString &name )
+MultiProperty *PropertyList::property( const TQString &name )
{
if (m_list.contains(name))
return m_list[name];
@@ -73,7 +73,7 @@ void PropertyList::addProperty(Property *property)
}
}
-void PropertyList::addProperty(const QString &group, Property *property)
+void PropertyList::addProperty(const TQString &group, Property *property)
{
if (property == 0)
return;
@@ -101,9 +101,9 @@ void PropertyList::removeProperty(Property *property)
emit aboutToDeleteProperty(property);
MultiProperty *mp = m_list[property->name()];
- QString group = m_groupOfProperty[mp];
+ TQString group = m_groupOfProperty[mp];
removeFromGroup(mp);
- QString pname = property->name();
+ TQString pname = property->name();
mp->removeProperty(property);
if (m_propertyOwner)
delete property;
@@ -117,11 +117,11 @@ void PropertyList::removeProperty(Property *property)
addToGroup(group, mp);
}
-void PropertyList::removeProperty(const QString &name)
+void PropertyList::removeProperty(const TQString &name)
{
if (m_list.contains(name))
{
- QString group = m_groupOfProperty[m_list[name]];
+ TQString group = m_groupOfProperty[m_list[name]];
removeFromGroup(m_list[name]);
Property *property;
for (property = m_list[name]->list.first(); property; property = m_list[name]->list.next())
@@ -146,17 +146,17 @@ void PropertyList::removeProperty(const QString &name)
}
}
-const QValueList<QPair<QString, QValueList<QString> > >& PropertyList::propertiesOfGroup() const
+const TQValueList<QPair<TQString, TQValueList<TQString> > >& PropertyList::propertiesOfGroup() const
{
return m_propertiesOfGroup;
}
-const QMap<MultiProperty*, QString>& PropertyList::groupOfProperty() const
+const TQMap<MultiProperty*, TQString>& PropertyList::groupOfProperty() const
{
return m_groupOfProperty;
}
-void PropertyList::addToGroup(const QString &group, MultiProperty *property)
+void PropertyList::addToGroup(const TQString &group, MultiProperty *property)
{
if (!property)
return;
@@ -165,8 +165,8 @@ void PropertyList::addToGroup(const QString &group, MultiProperty *property)
if (m_groupOfProperty.contains(property) && (m_groupOfProperty[property] == group))
return;
- QPair<QString, QValueList<QString> > *groupPair = 0;
- for(QValueList<QPair<QString, QValueList<QString> > >::iterator it = m_propertiesOfGroup.begin();
+ QPair<TQString, TQValueList<TQString> > *groupPair = 0;
+ for(TQValueList<QPair<TQString, TQValueList<TQString> > >::iterator it = m_propertiesOfGroup.begin();
it != m_propertiesOfGroup.end(); ++it)
{
if ((*it).first == group)
@@ -177,7 +177,7 @@ void PropertyList::addToGroup(const QString &group, MultiProperty *property)
}
if (groupPair == 0)
{
- groupPair = new QPair<QString, QValueList<QString> >();
+ groupPair = new QPair<TQString, TQValueList<TQString> >();
groupPair->first = group;
groupPair->second.append(property->name());
m_propertiesOfGroup.append(*groupPair);
@@ -193,10 +193,10 @@ void PropertyList::addToGroup(const QString &group, MultiProperty *property)
void PropertyList::removeFromGroup(MultiProperty *property)
{
- QString group = m_groupOfProperty[property];
+ TQString group = m_groupOfProperty[property];
// qWarning("removeFromGroup group=%s", group.ascii());
- for(QValueList<QPair<QString, QValueList<QString> > >::iterator it = m_propertiesOfGroup.begin();
+ for(TQValueList<QPair<TQString, TQValueList<TQString> > >::iterator it = m_propertiesOfGroup.begin();
it != m_propertiesOfGroup.end(); ++it)
{
// qWarning("removeFromGroup checking %s", (*it).first.ascii());
@@ -213,22 +213,22 @@ void PropertyList::removeFromGroup(MultiProperty *property)
void PropertyList::clear( )
{
- for (QMap<QString, MultiProperty*>::iterator it = m_list.begin(); it != m_list.end(); ++it)
+ for (TQMap<TQString, MultiProperty*>::iterator it = m_list.begin(); it != m_list.end(); ++it)
removeProperty(it.key());
}
-bool PropertyList::contains( const QString & name )
+bool PropertyList::contains( const TQString & name )
{
if (m_list.contains(name))
return true;
return false;
}
-QPtrList<Property> PropertyList::properties(const QString &name)
+TQPtrList<Property> PropertyList::properties(const TQString &name)
{
if (m_list.contains(name))
return m_list[name]->list;
- return QPtrList<Property>();
+ return TQPtrList<Property>();
}
PropertyList::Iterator PropertyList::begin()
@@ -276,7 +276,7 @@ MultiProperty *PropertyList::Iterator::operator *()
return data();
}
-QString PropertyList::Iterator::key()
+TQString PropertyList::Iterator::key()
{
return current.key();
}
@@ -306,7 +306,7 @@ PropertyBuffer::PropertyBuffer( )
void PropertyBuffer::intersect(const PropertyList *list)
{
qWarning("PropertyBuffer::intersect");
- for (QMap<QString, MultiProperty*>::iterator it = m_list.begin(); it != m_list.end(); ++it)
+ for (TQMap<TQString, MultiProperty*>::iterator it = m_list.begin(); it != m_list.end(); ++it)
{
// qWarning("intersect:: for mp = %s", it.data()->name().ascii());
if (list->m_list.contains(it.key()))
@@ -327,13 +327,13 @@ void PropertyBuffer::intersect(const PropertyList *list)
// qWarning("intersect:: removing %s from intersection", it.key().ascii());
removeProperty(it.key());
}
- connect(list, SIGNAL(propertyValueChanged(Property*)), this, SLOT(intersectedValueChanged(Property*)));
+ connect(list, TQT_SIGNAL(propertyValueChanged(Property*)), this, TQT_SLOT(intersectedValueChanged(Property*)));
}
void PropertyBuffer::intersectedValueChanged(Property *property)
{
// qWarning("PropertyBuffer::intersectedValueChanged");
- QString propertyName = property->name();
+ TQString propertyName = property->name();
if (!contains(propertyName))
return;
@@ -341,7 +341,7 @@ void PropertyBuffer::intersectedValueChanged(Property *property)
if (mp == *m_list[propertyName])
{
Property *prop;
- QPtrList<Property> props = properties(propertyName);
+ TQPtrList<Property> props = properties(propertyName);
for (prop = props.first(); prop; prop = props.next())
emit propertyValueChanged(prop);
}
@@ -351,7 +351,7 @@ PropertyBuffer::PropertyBuffer(PropertyList *list)
:PropertyList(false)
{
//deep copy of m_list
- for (QMap<QString, MultiProperty*>::const_iterator it = list->m_list.begin();
+ for (TQMap<TQString, MultiProperty*>::const_iterator it = list->m_list.begin();
it != list->m_list.end(); ++it)
{
MultiProperty *mp = new MultiProperty(*it.data());
@@ -359,7 +359,7 @@ PropertyBuffer::PropertyBuffer(PropertyList *list)
addToGroup(list->m_groupOfProperty[it.data()], mp);
m_list[it.key()] = mp;
}
- connect(list, SIGNAL(propertyValueChanged(Property*)), this, SLOT(intersectedValueChanged(Property*)));
+ connect(list, TQT_SIGNAL(propertyValueChanged(Property*)), this, TQT_SLOT(intersectedValueChanged(Property*)));
}
}