Add VideoDelegate.

This commit is contained in:
Black Hat
2019-05-11 22:12:58 +08:00
parent 2cddd4face
commit cab82d7b8a
5 changed files with 273 additions and 0 deletions

View File

@@ -289,6 +289,8 @@ QVariant MessageEventModel::data(const QModelIndex& idx, int role) const {
return "image";
case MessageEventType::Audio:
return "audio";
case MessageEventType::Video:
return "video";
}
if (e->hasFileContent())
return "file";