mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
50 lines
933 B
QML
50 lines
933 B
QML
import QtQuick 2.6
|
|
import Qt.labs.qmlmodels 1.0
|
|
import com.github.nheko 1.0
|
|
|
|
DelegateChooser {
|
|
//role: "type" //< not supported in our custom implementation, have to use roleValue
|
|
roleValue: model.type
|
|
|
|
width: parent.width
|
|
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.TextMessage
|
|
TextMessage {}
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.NoticeMessage
|
|
NoticeMessage {}
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.EmoteMessage
|
|
TextMessage {}
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.ImageMessage
|
|
ImageMessage {}
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.Sticker
|
|
ImageMessage {}
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.FileMessage
|
|
FileMessage {}
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.VideoMessage
|
|
PlayableMediaMessage {}
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.AudioMessage
|
|
PlayableMediaMessage {}
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.Redacted
|
|
Redacted {}
|
|
}
|
|
DelegateChoice {
|
|
Placeholder {}
|
|
}
|
|
}
|