mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 03:18:07 +00:00
36 lines
No EOL
592 B
QML
36 lines
No EOL
592 B
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.2 as Control
|
|
|
|
|
|
|
|
Control.Button {
|
|
id: mainItem
|
|
property int capitalization
|
|
|
|
background: Rectangle {
|
|
color: '#F50000'
|
|
radius: 10
|
|
border.color: 'white'
|
|
}
|
|
|
|
contentItem: Text {
|
|
color: 'white'
|
|
font {
|
|
bold: true
|
|
pointSize: 10
|
|
capitalization: mainItem.capitalization
|
|
}
|
|
wrapMode: Text.WordWrap
|
|
horizontalAlignment: Text.AlignHCenter
|
|
text: mainItem.text
|
|
verticalAlignment: Text.AlignVCenter
|
|
}
|
|
|
|
hoverEnabled: true
|
|
/*
|
|
MouseArea {
|
|
id: mouseArea
|
|
anchors.fill: parent
|
|
onPressed: mouse.accepted = false
|
|
}*/
|
|
} |