summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolf-Michael Bolle <wolf-michael.bolle@nokia.com>2011-12-14 09:37:48 +0100
committerWolf-Michael Bolle <wolf-michael.bolle@nokia.com>2011-12-15 08:19:38 +0100
commit82f334fe94d5b764427d2ac93f042f6b3eed9427 (patch)
tree5840a4c83c3991afa5c48ea5c0836c35edb83413
parent04ed07012fbc6b9893a0bd8426adf94a582f741f (diff)
Debug messages for operator==().
-rw-r--r--src/mimetypes/qmimetype.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/mimetypes/qmimetype.cpp b/src/mimetypes/qmimetype.cpp
index 21ce08d..514a074 100644
--- a/src/mimetypes/qmimetype.cpp
+++ b/src/mimetypes/qmimetype.cpp
@@ -67,12 +67,22 @@ void QMimeTypePrivate::clear()
*/
bool QMimeTypePrivate::operator==(const QMimeTypePrivate &other) const
{
- return name == other.name &&
+ DBG();
+ if (name == other.name &&
//comment == other.comment &&
localeComments == other.localeComments &&
genericIconName == other.genericIconName &&
iconName == other.iconName &&
- globPatterns == other.globPatterns;
+ globPatterns == other.globPatterns) {
+ return true;
+ }
+ DBG() << name << other.name << (name == other.name);
+ //DBG() << comment << other.comment << (comment == other.comment);
+ DBG() << localeComments << other.localeComments << (localeComments == other.localeComments);
+ DBG() << genericIconName << other.genericIconName << (genericIconName == other.genericIconName);
+ DBG() << iconName << other.iconName << (iconName == other.iconName);
+ DBG() << globPatterns << other.globPatterns << (globPatterns == other.globPatterns);
+ return false;
}
void QMimeTypePrivate::addGlobPattern(const QString &pattern)