summaryrefslogtreecommitdiffstats
path: root/libkcal/customproperties.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkcal/customproperties.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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