mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 21:13:58 -06:00
Add ScrollableTextArea
CURA-6057
This commit is contained in:
parent
ad51d8f1b6
commit
4f1282df04
2 changed files with 32 additions and 0 deletions
31
resources/qml/Widgets/ScrollableTextArea.qml
Normal file
31
resources/qml/Widgets/ScrollableTextArea.qml
Normal file
|
@ -0,0 +1,31 @@
|
|||
// Copyright (c) 2019 Ultimaker B.V.
|
||||
// Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
import QtQuick 2.10
|
||||
import QtQuick.Controls 2.3
|
||||
|
||||
import UM 1.3 as UM
|
||||
import Cura 1.1 as Cura
|
||||
|
||||
|
||||
//
|
||||
// Cura-style TextArea with scrolls
|
||||
//
|
||||
ScrollView
|
||||
{
|
||||
property alias textArea: _textArea
|
||||
|
||||
TextArea
|
||||
{
|
||||
id: _textArea
|
||||
font: UM.Theme.getFont("default")
|
||||
textFormat: TextEdit.PlainText
|
||||
renderType: Text.NativeRendering
|
||||
|
||||
background: Rectangle // Border
|
||||
{
|
||||
border.color: UM.Theme.getColor("lining")
|
||||
border.width: UM.Theme.getSize("default_lining").width
|
||||
}
|
||||
}
|
||||
}
|
|
@ -25,6 +25,7 @@ CheckBox 1.0 CheckBox.qml
|
|||
ComboBox 1.0 ComboBox.qml
|
||||
NotificationIcon 1.0 NotificationIcon.qml
|
||||
RadioButton 1.0 RadioButton.qml
|
||||
Scrollable 1.0 Scrollable.qml
|
||||
TabButton 1.0 TabButton.qml
|
||||
TextField 1.0 TextField.qml
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue