5 changed files with 29 additions and 34 deletions
@ -1,24 +1,6 @@ |
|||||||
import QtQuick 2.6 |
import QtQuick 2.6 |
||||||
import QtQuick.Controls 2.15 |
import QtQuick.Controls 2.15 |
||||||
|
|
||||||
Item { |
TabButton { |
||||||
id: root |
checkable: false |
||||||
|
|
||||||
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() |
|
||||||
} |
|
||||||
} |
} |
||||||
|
|||||||
Loading…
Reference in new issue