fix(Input): Change `TextEdit` to `StatusBaseText` in `Input.qml`

Closes: #5188
This commit is contained in:
Boris Melnik 2022-03-28 14:27:46 +03:00 committed by Iuri Matias
parent 17cdb1bb91
commit a5cfa7dfa7
1 changed files with 2 additions and 3 deletions

View File

@ -3,6 +3,7 @@ import QtQuick.Controls 2.13
import StatusQ.Controls 0.1 import StatusQ.Controls 0.1
import StatusQ.Popups 0.1 import StatusQ.Popups 0.1
import StatusQ.Core 0.1
import utils 1.0 import utils 1.0
@ -193,15 +194,13 @@ Item {
} }
} }
TextEdit { StatusBaseText {
visible: !!validationError visible: !!validationError
id: validationErrorText id: validationErrorText
text: validationError text: validationError
anchors.top: inputField.bottom anchors.top: inputField.bottom
anchors.topMargin: validationErrorTopMargin anchors.topMargin: validationErrorTopMargin
anchors.right: inputField.right anchors.right: inputField.right
selectByMouse: true
readOnly: true
font.pixelSize: 12 font.pixelSize: 12
height: 16 height: 16
color: validationErrorColor color: validationErrorColor