Warning, /rolisteam/rolisteam/src/libraries/qml_views/rolistyle/TextArea.qml is written in an unsupported language. File is not indexed.
0001 import QtQuick 2.12 0002 import QtQuick.Controls 2.12 0003 import QtQuick.Controls.impl 2.12 0004 import QtQuick.Templates 2.12 as T 0005 import Customization 1.0 0006 0007 T.TextArea { 0008 id: control 0009 property QtObject style: Theme.styleSheet("Palette") 0010 0011 implicitWidth: Math.max(contentWidth + leftPadding + rightPadding, 0012 implicitBackgroundWidth + leftInset + rightInset, 0013 placeholder.implicitWidth + leftPadding + rightPadding) 0014 implicitHeight: Math.max(contentHeight + topPadding + bottomPadding, 0015 implicitBackgroundHeight + topInset + bottomInset, 0016 placeholder.implicitHeight + topPadding + bottomPadding) 0017 0018 padding: 6 0019 leftPadding: padding + 4 0020 0021 color: control.style.text 0022 placeholderTextColor: Color.transparent(control.color, 0.5) 0023 selectionColor: control.style.highlight 0024 selectedTextColor: control.style.highlightedText 0025 0026 background: Rectangle { 0027 radius: control.style.radius 0028 color: control.style.base 0029 border.width: control.style.borderWidth 0030 border.color: control.style.darkblue 0031 } 0032 0033 PlaceholderText { 0034 id: placeholder 0035 x: control.leftPadding 0036 y: control.topPadding 0037 width: control.width - (control.leftPadding + control.rightPadding) 0038 height: control.height - (control.topPadding + control.bottomPadding) 0039 0040 text: control.placeholderText 0041 font: control.font 0042 color: control.placeholderTextColor 0043 verticalAlignment: control.verticalAlignment 0044 visible: !control.length && !control.preeditText && (!control.activeFocus || control.horizontalAlignment !== Qt.AlignHCenter) 0045 elide: Text.ElideRight 0046 renderType: control.renderType 0047 } 0048 }