From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- libkcal/customproperties.cpp | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'libkcal/customproperties.cpp') diff --git a/libkcal/customproperties.cpp b/libkcal/customproperties.cpp index b64d9fee4..2d59fe912 100644 --- a/libkcal/customproperties.cpp +++ b/libkcal/customproperties.cpp @@ -41,9 +41,9 @@ CustomProperties::~CustomProperties() bool CustomProperties::operator==( const CustomProperties &other ) const { if ( mProperties.count() != other.mProperties.count() ) return false; - QMap::ConstIterator it; + TQMap::ConstIterator it; for( it = mProperties.begin(); it != mProperties.end(); ++it ) { - QMap::ConstIterator itOther = + TQMap::ConstIterator itOther = other.mProperties.find( it.key() ); if ( itOther == other.mProperties.end() ) { @@ -55,29 +55,29 @@ bool CustomProperties::operator==( const CustomProperties &other ) const return true; } -void CustomProperties::setCustomProperty(const QCString &app, const QCString &key, - const QString &value) +void CustomProperties::setCustomProperty(const TQCString &app, const TQCString &key, + const TQString &value) { if (value.isNull() || key.isEmpty() || app.isEmpty()) return; - QCString property = "X-KDE-" + app + "-" + key; + TQCString property = "X-KDE-" + app + "-" + key; if (!checkName(property)) return; mProperties[property] = value; customPropertyUpdated(); } -void CustomProperties::removeCustomProperty(const QCString &app, const QCString &key) +void CustomProperties::removeCustomProperty(const TQCString &app, const TQCString &key) { - removeNonKDECustomProperty(QCString("X-KDE-" + app + "-" + key)); + removeNonKDECustomProperty(TQCString("X-KDE-" + app + "-" + key)); } -QString CustomProperties::customProperty(const QCString &app, const QCString &key) const +TQString CustomProperties::customProperty(const TQCString &app, const TQCString &key) const { - return nonKDECustomProperty(QCString("X-KDE-" + app + "-" + key)); + return nonKDECustomProperty(TQCString("X-KDE-" + app + "-" + key)); } -void CustomProperties::setNonKDECustomProperty(const QCString &name, const QString &value) +void CustomProperties::setNonKDECustomProperty(const TQCString &name, const TQString &value) { if (value.isNull() || !checkName(name)) return; @@ -85,30 +85,30 @@ void CustomProperties::setNonKDECustomProperty(const QCString &name, const QStri customPropertyUpdated(); } -void CustomProperties::removeNonKDECustomProperty(const QCString &name) +void CustomProperties::removeNonKDECustomProperty(const TQCString &name) { - QMap::Iterator it = mProperties.find(name); + TQMap::Iterator it = mProperties.find(name); if (it != mProperties.end()) { mProperties.remove(it); customPropertyUpdated(); } } -QString CustomProperties::nonKDECustomProperty(const QCString &name) const +TQString CustomProperties::nonKDECustomProperty(const TQCString &name) const { - QMap::ConstIterator it = mProperties.find(name); + TQMap::ConstIterator it = mProperties.find(name); if (it == mProperties.end()) - return QString::null; + return TQString::null; return it.data(); } -void CustomProperties::setCustomProperties(const QMap &properties) +void CustomProperties::setCustomProperties(const TQMap &properties) { bool changed = false; - for (QMap::ConstIterator it = properties.begin(); it != properties.end(); ++it) { + for (TQMap::ConstIterator it = properties.begin(); it != properties.end(); ++it) { // Validate the property name and convert any null string to empty string if (checkName(it.key())) { - mProperties[it.key()] = it.data().isNull() ? QString("") : it.data(); + mProperties[it.key()] = it.data().isNull() ? TQString("") : it.data(); changed = true; } } @@ -116,12 +116,12 @@ void CustomProperties::setCustomProperties(const QMap &proper customPropertyUpdated(); } -QMap CustomProperties::customProperties() const +TQMap CustomProperties::customProperties() const { return mProperties; } -bool CustomProperties::checkName(const QCString &name) +bool CustomProperties::checkName(const TQCString &name) { // Check that the property name starts with 'X-' and contains // only the permitted characters -- cgit v1.2.1