mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
ActivityData: Simplified implementation.
Use QVariantHash and removed ActivityList object in favour of a typedef
This commit is contained in:
parent
73cd5a9c27
commit
97f1694f7e
1 changed files with 3 additions and 14 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue