summaryrefslogtreecommitdiffstats
path: root/libkcal/customproperties.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkcal/customproperties.cpp')
-rw-r--r--libkcal/customproperties.cpp40
1 files changed, 20 insertions, 20 deletions
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<QCString, QString>::ConstIterator it;
+ TQMap<TQCString, TQString>::ConstIterator it;
for( it = mProperties.begin(); it != mProperties.end(); ++it ) {
- QMap<QCString, QString>::ConstIterator itOther =
+ TQMap<TQCString, TQString>::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<QCString, QString>::Iterator it = mProperties.find(name);
+ TQMap<TQCString, TQString>::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<QCString, QString>::ConstIterator it = mProperties.find(name);
+ TQMap<TQCString, TQString>::ConstIterator it = mProperties.find(name);
if (it == mProperties.end())
- return QString::null;
+ return TQString::null;
return it.data();
}
-void CustomProperties::setCustomProperties(const QMap<QCString, QString> &properties)
+void CustomProperties::setCustomProperties(const TQMap<TQCString, TQString> &properties)
{
bool changed = false;
- for (QMap<QCString, QString>::ConstIterator it = properties.begin(); it != properties.end(); ++it) {
+ for (TQMap<TQCString, TQString>::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<QCString, QString> &proper
customPropertyUpdated();
}
-QMap<QCString, QString> CustomProperties::customProperties() const
+TQMap<TQCString, TQString> 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