diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index e1aa273..f82cf60 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -95,21 +95,21 @@ Rectangle { height: item.height source: switch(model.type) { - case MtxEvent.Aliases: return "delegates/Aliases.qml" - case MtxEvent.Avatar: return "delegates/Avatar.qml" - case MtxEvent.CanonicalAlias: return "delegates/CanonicalAlias.qml" - case MtxEvent.Create: return "delegates/Create.qml" - case MtxEvent.GuestAccess: return "delegates/GuestAccess.qml" - case MtxEvent.HistoryVisibility: return "delegates/HistoryVisibility.qml" - case MtxEvent.JoinRules: return "delegates/JoinRules.qml" - case MtxEvent.Member: return "delegates/Member.qml" - case MtxEvent.Name: return "delegates/Name.qml" - case MtxEvent.PowerLevels: return "delegates/PowerLevels.qml" - case MtxEvent.Topic: return "delegates/Topic.qml" + //case MtxEvent.Aliases: return "delegates/Aliases.qml" + //case MtxEvent.Avatar: return "delegates/Avatar.qml" + //case MtxEvent.CanonicalAlias: return "delegates/CanonicalAlias.qml" + //case MtxEvent.Create: return "delegates/Create.qml" + //case MtxEvent.GuestAccess: return "delegates/GuestAccess.qml" + //case MtxEvent.HistoryVisibility: return "delegates/HistoryVisibility.qml" + //case MtxEvent.JoinRules: return "delegates/JoinRules.qml" + //case MtxEvent.Member: return "delegates/Member.qml" + //case MtxEvent.Name: return "delegates/Name.qml" + //case MtxEvent.PowerLevels: return "delegates/PowerLevels.qml" + //case MtxEvent.Topic: return "delegates/Topic.qml" case MtxEvent.NoticeMessage: return "delegates/NoticeMessage.qml" case MtxEvent.TextMessage: return "delegates/TextMessage.qml" case MtxEvent.ImageMessage: return "delegates/ImageMessage.qml" - case MtxEvent.VideoMessage: return "delegates/VideoMessage.qml" + //case MtxEvent.VideoMessage: return "delegates/VideoMessage.qml" case MtxEvent.Redacted: return "delegates/Redacted.qml" default: return "delegates/placeholder.qml" } diff --git a/resources/qml/delegates/placeholder.qml b/resources/qml/delegates/placeholder.qml new file mode 100644 index 0000000..d17184f --- /dev/null +++ b/resources/qml/delegates/placeholder.qml @@ -0,0 +1,10 @@ +import QtQuick 2.5 +import QtQuick.Controls 2.5 + +Label { + text: qsTr("unimplemented event: ") + eventData.type + textFormat: Text.PlainText + wrapMode: Text.Wrap + width: parent.width + color: inactiveColors.text +} diff --git a/resources/res.qrc b/resources/res.qrc index 0d55e70..6eb61e3 100644 --- a/resources/res.qrc +++ b/resources/res.qrc @@ -121,5 +121,6 @@ qml/delegates/NoticeMessage.qml qml/delegates/ImageMessage.qml qml/delegates/Redacted.qml + qml/delegates/placeholder.qml