Warning, /rolisteam/rolisteam/src/libraries/qml_views/InstantMessaging/CommandMessageDelegate.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick 2.15
0002 import QtQuick.Controls 2.15
0003 import Customization 1.0
0004 
0005 Column {
0006     id: root
0007     property QtObject styleSheet: Theme.styleSheet("TextMessage")
0008     spacing: root.styleSheet.spacing
0009     property real factor : fontFactor
0010     Rectangle {
0011         anchors.right: model.local ? parent.right : undefined
0012         id: rect
0013         width: messageId.contentWidth + root.styleSheet.textTopMargin
0014         height: messageId.contentHeight + root.styleSheet.textTopMargin
0015         color: model.local ? "lightgrey" : "steelblue"
0016         radius: root.styleSheet.radiusSize
0017         Label {
0018             id: messageId
0019             text: model.text
0020             font.pixelSize: root.styleSheet.fontSize * root.factor
0021             anchors.centerIn: parent
0022             wrapMode: Text.WordWrap
0023             onLinkActivated: _ctrl.openLink(link)
0024         }
0025     }
0026     Label {
0027         id: timestamp
0028         text: model.time
0029         anchors.right: model.local ? parent.right : undefined
0030         font.pixelSize: root.styleSheet.fontSize * root.factor
0031         opacity: root.styleSheet.opacityTime
0032     }
0033 }