mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-18 03:48:09 +00:00
47 lines
1.3 KiB
QML
47 lines
1.3 KiB
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.2
|
|
|
|
import Common 1.0
|
|
import Common.Styles 1.0
|
|
|
|
// =============================================================================
|
|
|
|
Flickable {
|
|
property alias text: textArea.text
|
|
readonly property alias length: textArea.length
|
|
|
|
boundsBehavior: Flickable.StopAtBounds
|
|
height: TextAreaFieldStyle.background.height
|
|
width: TextAreaFieldStyle.background.width
|
|
|
|
ScrollBar.vertical: ForceScrollBar {
|
|
id: scrollBar
|
|
}
|
|
|
|
TextArea.flickable: TextArea {
|
|
id: textArea
|
|
|
|
background: Rectangle {
|
|
border {
|
|
color: TextAreaFieldStyle.background.border.color
|
|
width: TextAreaFieldStyle.background.border.width
|
|
}
|
|
|
|
color: textArea.readOnly
|
|
? TextAreaFieldStyle.background.color.readOnly
|
|
: TextAreaFieldStyle.background.color.normal
|
|
|
|
radius: TextAreaFieldStyle.background.radius
|
|
}
|
|
|
|
color: TextAreaFieldStyle.text.color
|
|
font.pointSize: TextAreaFieldStyle.text.pointSize
|
|
selectByMouse: true
|
|
wrapMode: TextArea.Wrap
|
|
|
|
bottomPadding: TextAreaFieldStyle.text.padding
|
|
leftPadding: TextAreaFieldStyle.text.padding
|
|
rightPadding: TextAreaFieldStyle.text.padding + Number(scrollBar.visible) * scrollBar.width
|
|
topPadding: TextAreaFieldStyle.text.padding
|
|
}
|
|
}
|