diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /lib/widgets/propeditor/propertylist.cpp | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-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/propertylist.cpp')
-rw-r--r-- | lib/widgets/propeditor/propertylist.cpp | 56 |
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*))); } } |