summaryrefslogtreecommitdiffstats
path: root/src/dbus
diff options
context:
space:
mode:
authorAndre Moreira Magalhaes (andrunko) <andrunko@andrunko.cbg.collabora.co.uk>2009-09-30 19:20:17 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-10-05 09:42:29 (GMT)
commit429c7c6760c100685e9800b89fca7f0afd2d8abc (patch)
treebda810d57a3fe9073888404bb70aed047bb693d5 /src/dbus
parent1d01065f3c88701eeed8018c2125b0170d057b52 (diff)
downloadQt-429c7c6760c100685e9800b89fca7f0afd2d8abc.zip
Qt-429c7c6760c100685e9800b89fca7f0afd2d8abc.tar.gz
Qt-429c7c6760c100685e9800b89fca7f0afd2d8abc.tar.bz2
Added operator== for QDBusArgument.
Reviewed-By: Thiago Macieira <thiago.macieira@nokia.com> Merge-Request: 1657
Diffstat (limited to 'src/dbus')
-rw-r--r--src/dbus/qdbusextratypes.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dbus/qdbusextratypes.h b/src/dbus/qdbusextratypes.h
index c95537b..69dcc8a 100644
--- a/src/dbus/qdbusextratypes.h
+++ b/src/dbus/qdbusextratypes.h
@@ -174,6 +174,9 @@ inline QDBusVariant::QDBusVariant(const QVariant &dBusVariant)
inline void QDBusVariant::setVariant(const QVariant &dBusVariant)
{ QVariant::operator=(dBusVariant); }
+inline bool operator==(const QDBusVariant &v1, const QDBusVariant &v2)
+{ return v1.variant() == v2.variant(); }
+
QT_END_NAMESPACE
Q_DECLARE_METATYPE(QDBusVariant)