Warning, /rolisteam/rolisteam/src/libraries/charactersheet/qml/Rolisteam/TextAreaField.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick
0002 import QtQuick.Controls
0003 import Rolisteam
0004 
0005 ScrollView {
0006     id: root
0007     property alias hAlign: text.horizontalAlignment
0008     property alias vAlign: text.verticalAlignment
0009     property bool clippedText: false
0010     property alias text: text.text
0011     property bool backgroundVisible: true
0012     property alias backgroundColor: rect.color
0013     property alias color: text.color
0014     property string tooltip: ""
0015     property alias readOnly: text.readOnly
0016     property alias wrapMode: text.wrapMode
0017     property alias textFormat: text.textFormat
0018     property TextArea textArea: text
0019     property Field field: null
0020     clip: true
0021     TextArea {
0022         id:text
0023         height: root.height
0024         width: root.width
0025         background: Rectangle {
0026             id: rect
0027         }
0028 
0029         selectByMouse: true
0030         ToolTip.text: root.tooltip
0031         ToolTip.visible: root.tooltip.length >0 && hovered
0032         textFormat: TextEdit.RichText
0033         wrapMode: TextEdit.Wrap
0034         font: root.font
0035         onEditingFinished: field.value = text.text
0036     }
0037 }