2022-09-23 12:14:19 +02:00
|
|
|
import QtQuick 2.6
|
|
|
|
|
import QtQuick.Controls 2.15
|
2023-02-03 13:32:40 +01:00
|
|
|
import QtQuick.Controls.Material 2.15
|
|
|
|
|
import QtQuick.Controls.impl 2.15
|
|
|
|
|
import QtQuick.Controls.Material.impl 2.15
|
2022-09-23 12:14:19 +02:00
|
|
|
|
2022-09-27 09:55:06 +02:00
|
|
|
TabButton {
|
2023-02-03 13:32:40 +01:00
|
|
|
id: control
|
2022-09-27 09:55:06 +02:00
|
|
|
checkable: false
|
2023-02-03 13:32:40 +01:00
|
|
|
|
2023-02-03 17:27:12 +01:00
|
|
|
property bool textUnderIcon: true
|
|
|
|
|
|
2023-02-03 13:32:40 +01:00
|
|
|
font.pixelSize: constants.fontSizeSmall
|
2023-02-03 17:27:12 +01:00
|
|
|
display: textUnderIcon ? IconLabel.TextUnderIcon : IconLabel.TextBesideIcon
|
2023-02-03 13:32:40 +01:00
|
|
|
|
|
|
|
|
contentItem: IconLabel {
|
|
|
|
|
spacing: control.spacing
|
|
|
|
|
mirrored: control.mirrored
|
|
|
|
|
display: control.display
|
|
|
|
|
|
|
|
|
|
icon: control.icon
|
|
|
|
|
text: control.text
|
|
|
|
|
font: control.font
|
|
|
|
|
color: !control.enabled ? control.Material.hintTextColor : control.down || control.checked ? control.Material.accentColor : control.Material.foreground
|
|
|
|
|
}
|
2022-09-23 12:14:19 +02:00
|
|
|
}
|