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
|
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;
|
|
||||||
};
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue