Warning, /network/neochat/src/qml/EventDelegate.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2021 Tobias Fella <tobias.fella@kde.org>
0002 // SPDX-License-Identifier: GPL-3.0-only
0003 
0004 import QtQuick
0005 import QtQuick.Layouts
0006 
0007 import Qt.labs.qmlmodels
0008 
0009 import org.kde.neochat
0010 
0011 DelegateChooser {
0012     id: root
0013 
0014     /**
0015      * @brief The NeoChatRoom the delegate is being displayed in.
0016      */
0017     required property NeoChatRoom room
0018 
0019     role: "delegateType"
0020 
0021     DelegateChoice {
0022         roleValue: DelegateType.State
0023         delegate: StateDelegate {}
0024     }
0025 
0026     DelegateChoice {
0027         roleValue: DelegateType.Emote
0028         delegate: TextDelegate {
0029             room: root.room
0030         }
0031     }
0032 
0033     DelegateChoice {
0034         roleValue: DelegateType.Message
0035         delegate: TextDelegate {
0036             room: root.room
0037         }
0038     }
0039 
0040     DelegateChoice {
0041         roleValue: DelegateType.Notice
0042         delegate: TextDelegate {
0043             room: root.room
0044         }
0045     }
0046 
0047     DelegateChoice {
0048         roleValue: DelegateType.Image
0049         delegate: ImageDelegate {
0050             room: root.room
0051         }
0052     }
0053 
0054     DelegateChoice {
0055         roleValue: DelegateType.Sticker
0056         delegate: ImageDelegate {
0057             room: root.room
0058         }
0059     }
0060 
0061     DelegateChoice {
0062         roleValue: DelegateType.Audio
0063         delegate: AudioDelegate {
0064             room: root.room
0065         }
0066     }
0067 
0068     DelegateChoice {
0069         roleValue: DelegateType.Video
0070         delegate: VideoDelegate {
0071             room: root.room
0072         }
0073     }
0074 
0075     DelegateChoice {
0076         roleValue: DelegateType.File
0077         delegate: FileDelegate {
0078             room: root.room
0079         }
0080     }
0081 
0082     DelegateChoice {
0083         roleValue: DelegateType.Encrypted
0084         delegate: EncryptedDelegate {
0085             room: root.room
0086         }
0087     }
0088 
0089     DelegateChoice {
0090         roleValue: DelegateType.ReadMarker
0091         delegate: ReadMarkerDelegate {}
0092     }
0093 
0094     DelegateChoice {
0095         roleValue: DelegateType.Poll
0096         delegate: PollDelegate {
0097             room: root.room
0098         }
0099     }
0100 
0101     DelegateChoice {
0102         roleValue: DelegateType.Location
0103         delegate: LocationDelegate {
0104             room: root.room
0105         }
0106     }
0107 
0108     DelegateChoice {
0109         roleValue: DelegateType.LiveLocation
0110         delegate: LiveLocationDelegate {
0111             room: root.room
0112         }
0113     }
0114 
0115     DelegateChoice {
0116         roleValue: DelegateType.Loading
0117         delegate: LoadingDelegate {}
0118     }
0119 
0120     DelegateChoice {
0121         roleValue: DelegateType.TimelineEnd
0122         delegate: TimelineEndDelegate {
0123             room: root.room
0124         }
0125     }
0126 
0127     DelegateChoice {
0128         roleValue: DelegateType.Other
0129         delegate: Item {}
0130     }
0131 }