From 97f1694f7e318693b32dec2da833540a36b62e6b Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Mon, 14 Mar 2016 15:39:07 +0100 Subject: [PATCH] ActivityData: Simplified implementation. Use QVariantHash and removed ActivityList object in favour of a typedef --- src/gui/activitydata.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/src/gui/activitydata.h b/src/gui/activitydata.h index 46efe2c1f0..68067f5530 100644 --- a/src/gui/activitydata.h +++ b/src/gui/activitydata.h @@ -26,8 +26,8 @@ namespace OCC { class ActivityLink { public: - QHash toVariantHash() { - QHash hash; + QVariantHash toVariantHash() const { + QVariantHash hash; hash["label"] = _label; hash["link"] = _link; @@ -86,20 +86,9 @@ public: * * A QList based list of Activities */ -class ActivityList:public QList -{ -public: - void setAccountName( const QString& name ) { - _accountName = name; - } - QString accountName() const { - return _accountName; - } +typedef QList ActivityList; -private: - QString _accountName; -}; }