Sander van Grieken
2 years ago
5 changed files with 29 additions and 34 deletions
@ -1,24 +1,6 @@ |
|||
import QtQuick 2.6 |
|||
import QtQuick.Controls 2.15 |
|||
|
|||
Item { |
|||
id: root |
|||
|
|||
property alias text: buttonLabel.text |
|||
property alias font: buttonLabel.font |
|||
|
|||
signal clicked |
|||
|
|||
implicitWidth: buttonLabel.width + constants.paddingXXLarge |
|||
implicitHeight: buttonLabel.height + constants.paddingXXLarge |
|||
|
|||
Label { |
|||
id: buttonLabel |
|||
anchors.centerIn: parent |
|||
} |
|||
|
|||
MouseArea { |
|||
anchors.fill: root |
|||
onClicked: root.clicked() |
|||
} |
|||
TabButton { |
|||
checkable: false |
|||
} |
|||
|
Loading…
Reference in new issue