import QtQuick 2.0 import Sailfish.Silica 1.0 import "delegates" import dev.neko.spoon 1.0 Item { property var modelData height: chooser.childrenRect.height width: Math.min(chooser.childrenRect.width, bubble.fullMessageWidth) DelegateChooser { id: chooser roleValue: model.Type anchors.fill: parent DelegateChoice { roleValue: EventType.Aliases Placeholder { } } DelegateChoice { roleValue: EventType.Avatar Placeholder { } } DelegateChoice { roleValue: EventType.CanonicalAlias Placeholder { } } DelegateChoice { roleValue: EventType.Create Placeholder { } } DelegateChoice { roleValue: EventType.GuestAccess Placeholder { } } DelegateChoice { roleValue: EventType.HistoryVisibility Placeholder { } } DelegateChoice { roleValue: EventType.JoinRules Placeholder { } } DelegateChoice { roleValue: EventType.Member NoticeMessage { text: model.Body } } DelegateChoice { roleValue: EventType.Name Placeholder { } } DelegateChoice { roleValue: EventType.PowerLevels Placeholder { } } DelegateChoice { roleValue: EventType.Topic Placeholder { } } DelegateChoice { roleValue: EventType.TextMessage TextMessage { } } DelegateChoice { roleValue: EventType.NoticeMessage NoticeMessage { } } DelegateChoice { roleValue: EventType.ImageMessage ImageMessage { } } DelegateChoice { roleValue: EventType.VideoMessage VideoMessage { } } DelegateChoice { Placeholder { } } } }