From a1750a596f0d9b76b3d8723006aa7cb6674b7bdd Mon Sep 17 00:00:00 2001 From: Dominik Schmidt Date: Tue, 11 Jan 2011 18:36:57 +0100 Subject: [PATCH 2/2] Add qHash function for Tp::ProtocolParameter --- TelepathyQt4/protocol-parameter.cpp | 5 +++++ TelepathyQt4/protocol-parameter.h | 2 ++ 2 files changed, 7 insertions(+), 0 deletions(-) diff --git a/TelepathyQt4/protocol-parameter.cpp b/TelepathyQt4/protocol-parameter.cpp index e08fabb..417a84e 100644 --- a/TelepathyQt4/protocol-parameter.cpp +++ b/TelepathyQt4/protocol-parameter.cpp @@ -159,3 +159,8 @@ bool ProtocolParameter::isRequiredForRegistration() const } } // Tp + +uint qHash(const Tp::ProtocolParameter& parameter) +{ + return qHash(parameter.name()); +} diff --git a/TelepathyQt4/protocol-parameter.h b/TelepathyQt4/protocol-parameter.h index 8af80b0..15c9b38 100644 --- a/TelepathyQt4/protocol-parameter.h +++ b/TelepathyQt4/protocol-parameter.h @@ -78,6 +78,8 @@ typedef QList ProtocolParameterList; } // Tp +uint qHash(const Tp::ProtocolParameter ¶meter); + Q_DECLARE_METATYPE(Tp::ProtocolParameter); Q_DECLARE_METATYPE(Tp::ProtocolParameterList); -- 1.7.1