mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Returns the activity type to the list view.
Signed-off-by: Camila San <hello@camila.codes>
This commit is contained in:
parent
2350b41dc3
commit
4e4a0da3b7
@ -85,6 +85,7 @@ bool operator<(const Activity &rhs, const Activity &lhs);
|
||||
typedef QList<Activity> ActivityList;
|
||||
}
|
||||
|
||||
Q_DECLARE_METATYPE(OCC::Activity::Type)
|
||||
Q_DECLARE_METATYPE(OCC::ActivityLink)
|
||||
|
||||
#endif // ACTIVITYDATA_H
|
||||
|
||||
@ -31,6 +31,7 @@ public:
|
||||
AccountRole,
|
||||
ActionsLinksRole,
|
||||
ActionTextRole,
|
||||
ActionRole,
|
||||
MessageRole,
|
||||
PathRole,
|
||||
LinkRole,
|
||||
|
||||
@ -87,6 +87,12 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
|
||||
return QIcon(QLatin1String(":/client/resources/activity.png"));
|
||||
return QVariant();
|
||||
break;
|
||||
case ActivityItemDelegate::ActionRole:{
|
||||
QVariant type;
|
||||
type.setValue(a._type);
|
||||
return type;
|
||||
break;
|
||||
}
|
||||
case Qt::ToolTipRole:
|
||||
case ActivityItemDelegate::ActionTextRole:
|
||||
return a._subject;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user