mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-23 14:48:15 +00:00
38 lines
820 B
QML
38 lines
820 B
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.0 as Controls
|
|
|
|
import Common 1.0
|
|
import Common.Styles 1.0
|
|
|
|
// ===================================================================
|
|
|
|
Controls.TextField {
|
|
property string icon
|
|
|
|
background: Rectangle {
|
|
border {
|
|
color: TextFieldStyle.background.border.color
|
|
width: TextFieldStyle.background.border.width
|
|
}
|
|
color: TextFieldStyle.background.color
|
|
implicitHeight: TextFieldStyle.background.height
|
|
|
|
radius: TextFieldStyle.background.radius
|
|
}
|
|
|
|
color: TextFieldStyle.text.color
|
|
font.pointSize: TextFieldStyle.text.fontSize
|
|
|
|
Icon {
|
|
id: icon
|
|
|
|
anchors {
|
|
right: parent.right
|
|
rightMargin: parent.rightPadding
|
|
verticalCenter: parent.verticalCenter
|
|
}
|
|
|
|
iconSize: parent.contentHeight
|
|
visible: !parent.text
|
|
}
|
|
}
|