mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
51 lines
1.3 KiB
QML
51 lines
1.3 KiB
QML
import QtQuick 2.6
|
|
import Qt.labs.qmlmodels 1.0
|
|
import com.github.nheko 1.0
|
|
|
|
import "./delegates"
|
|
|
|
DelegateChooser {
|
|
//role: "type" //< not supported in our custom implementation, have to use roleValue
|
|
width: chat.width
|
|
roleValue: model.type
|
|
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.TextMessage
|
|
TimelineRow { view: chat; TextMessage { id: kid } }
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.NoticeMessage
|
|
TimelineRow { view: chat; NoticeMessage { id: kid } }
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.EmoteMessage
|
|
TimelineRow { view: chat; TextMessage { id: kid } }
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.ImageMessage
|
|
TimelineRow { view: chat; ImageMessage { id: kid } }
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.Sticker
|
|
TimelineRow { view: chat; ImageMessage { id: kid } }
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.FileMessage
|
|
TimelineRow { view: chat; FileMessage { id: kid } }
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.VideoMessage
|
|
TimelineRow { view: chat; PlayableMediaMessage { id: kid } }
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.AudioMessage
|
|
TimelineRow { view: chat; PlayableMediaMessage { id: kid } }
|
|
}
|
|
DelegateChoice {
|
|
roleValue: MtxEvent.Redacted
|
|
TimelineRow { view: chat; Redacted { id: kid } }
|
|
}
|
|
DelegateChoice {
|
|
TimelineRow { view: chat; Placeholder { id: kid } }
|
|
}
|
|
}
|