Create component for showing a maximize version of a code snippet

This commit is contained in:
James Graham
2024-04-01 11:20:10 +00:00
parent 0552c798fb
commit 6a32d1e961
8 changed files with 225 additions and 0 deletions

View File

@@ -22,6 +22,11 @@ DelegateChooser {
*/
required property var index
/**
* @brief The timestamp of the message.
*/
required property var time
/**
* @brief The ActionsHandler object to use.
*
@@ -89,6 +94,7 @@ DelegateChooser {
DelegateChoice {
roleValue: MessageComponentType.Code
delegate: CodeComponent {
time: root.time
maxContentWidth: root.maxContentWidth
onSelectedTextChanged: selectedText => {
root.selectedTextChanged(selectedText);