[Pkg-owncloud-commits] [owncloud-client] 145/470: ActivityData: Simplified implementation.

Sandro Knauß hefee-guest at moszumanska.debian.org
Thu May 12 16:24:55 UTC 2016


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 97f1694f7e318693b32dec2da833540a36b62e6b
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Mon Mar 14 15:39:07 2016 +0100

    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 46efe2c..68067f5 100644
--- a/src/gui/activitydata.h
+++ b/src/gui/activitydata.h
@@ -26,8 +26,8 @@ namespace OCC {
 class ActivityLink
 {
 public:
-    QHash <QString, QVariant> toVariantHash() {
-        QHash<QString, QVariant> 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<Activity>
-{
-public:
-    void setAccountName( const QString& name ) {
-        _accountName = name;
-    }
 
-    QString accountName() const {
-        return _accountName;
-    }
+typedef QList<Activity> ActivityList;
 
-private:
-    QString _accountName;
-};
 
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list