Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCamila <hello@camila.codes>2022-03-23 20:06:57 +0300
committerCamila <hello@camila.codes>2022-03-28 17:04:53 +0300
commit94530b6305cbd562264137a89dd8bf24826a5e7b (patch)
tree05047dfce09035e7cab65d3fbd3f674a1741b14a /src/gui
parentc450c1f6a5277f8a71bf826e84e84250801c5311 (diff)
Rename data role.
Signed-off-by: Camila <hello@camila.codes>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/tray/activitylistmodel.cpp8
-rw-r--r--src/gui/tray/activitylistmodel.h4
2 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/tray/activitylistmodel.cpp b/src/gui/tray/activitylistmodel.cpp
index ff50ae0d0..7c75d178e 100644
--- a/src/gui/tray/activitylistmodel.cpp
+++ b/src/gui/tray/activitylistmodel.cpp
@@ -77,8 +77,8 @@ QHash<int, QByteArray> ActivityListModel::roleNames() const
roles[ShareableRole] = "isShareable";
roles[IsCurrentUserFileActivityRole] = "isCurrentUserFileActivity";
roles[ThumbnailRole] = "thumbnail";
- roles[TalkConversationTokenRole] = "conversationToken";
- roles[TalkMessageIdRole] = "messageId";
+ roles[TalkNotificationConversationTokenRole] = "conversationToken";
+ roles[TalkNotificationMessageIdRole] = "messageId";
return roles;
}
@@ -325,9 +325,9 @@ QVariant ActivityListModel::data(const QModelIndex &index, int role) const
const auto preview = a._previews[0];
return(generatePreviewMap(preview));
}
- case TalkConversationTokenRole:
+ case TalkNotificationConversationTokenRole:
return a._talkNotificationData.conversationToken;
- case TalkMessageIdRole:
+ case TalkNotificationMessageIdRole:
return a._talkNotificationData.messageId;
default:
return QVariant();
diff --git a/src/gui/tray/activitylistmodel.h b/src/gui/tray/activitylistmodel.h
index ee6959f60..2ff879f8b 100644
--- a/src/gui/tray/activitylistmodel.h
+++ b/src/gui/tray/activitylistmodel.h
@@ -68,8 +68,8 @@ public:
ShareableRole,
IsCurrentUserFileActivityRole,
ThumbnailRole,
- TalkConversationTokenRole,
- TalkMessageIdRole,
+ TalkNotificationConversationTokenRole,
+ TalkNotificationMessageIdRole,
};
Q_ENUM(DataRole)