ActivityData: Simplified implementation.

Use QVariantHash and removed ActivityList object in favour
of a typedef
This commit is contained in:
Klaas Freitag 2016-03-14 15:39:07 +01:00
parent 73cd5a9c27
commit 97f1694f7e

View file

@ -26,8 +26,8 @@ namespace OCC {
class ActivityLink class ActivityLink
{ {
public: public:
QHash <QString, QVariant> toVariantHash() { QVariantHash toVariantHash() const {
QHash<QString, QVariant> hash; QVariantHash hash;
hash["label"] = _label; hash["label"] = _label;
hash["link"] = _link; hash["link"] = _link;
@ -86,20 +86,9 @@ public:
* *
* A QList based list of Activities * A QList based list of Activities
*/ */
class ActivityList:public QList<Activity>
{
public:
void setAccountName( const QString& name ) {
_accountName = name;
}
QString accountName() const { typedef QList<Activity> ActivityList;
return _accountName;
}
private:
QString _accountName;
};
} }