mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 12:33:04 +02:00
35 lines
725 B
QML
35 lines
725 B
QML
import QtQuick 2.3
|
|
import QtQuick.Controls 2.2 as Original
|
|
|
|
import "."
|
|
import "../styles"
|
|
import "../controls-uit"
|
|
|
|
Original.Button {
|
|
id: control
|
|
|
|
HifiConstants { id: hifi }
|
|
property Action action: null
|
|
|
|
onActionChanged: {
|
|
if (action !== null && action.text !== "") {
|
|
control.text = action.text
|
|
}
|
|
}
|
|
|
|
padding {
|
|
top: 8
|
|
left: 12
|
|
right: 12
|
|
bottom: 8
|
|
}
|
|
background: Border {
|
|
anchors.fill: parent
|
|
}
|
|
contentItem: Text {
|
|
verticalAlignment: Text.AlignVCenter
|
|
horizontalAlignment: Text.AlignHCenter
|
|
text: control.text
|
|
color: control.enabled ? hifi.colors.text : hifi.colors.disabledText
|
|
}
|
|
}
|