2019-07-21 22:33:52 +02:00
|
|
|
import QtQuick 2.0
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
2020-11-27 19:09:47 +01:00
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
2019-07-21 22:33:52 +02:00
|
|
|
|
|
|
|
Item {
|
|
|
|
property alias iconSource: iconItem.source
|
|
|
|
property alias iconOpacity: iconItem.opacity
|
|
|
|
property alias text: label.text
|
|
|
|
property alias tooltip: tooltipTrigger.tooltip
|
|
|
|
|
2019-08-08 21:51:27 +02:00
|
|
|
implicitWidth: layout.implicitWidth
|
|
|
|
implicitHeight: layout.implicitHeight
|
2019-07-21 22:33:52 +02:00
|
|
|
|
|
|
|
RowLayout {
|
|
|
|
id: layout
|
|
|
|
|
2021-10-15 22:18:30 +02:00
|
|
|
Image {
|
2019-07-21 22:33:52 +02:00
|
|
|
id: iconItem
|
|
|
|
Layout.preferredWidth: 16
|
|
|
|
Layout.preferredHeight: 16
|
2021-10-15 22:18:30 +02:00
|
|
|
height: 16
|
2022-02-05 21:31:53 +01:00
|
|
|
cache: false
|
2021-10-15 22:18:30 +02:00
|
|
|
fillMode: Image.PreserveAspectFit
|
2019-07-21 22:33:52 +02:00
|
|
|
}
|
2020-11-27 19:09:47 +01:00
|
|
|
PlasmaComponents3.Label {
|
2019-07-21 22:33:52 +02:00
|
|
|
id: label
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ToolTipTrigger {
|
|
|
|
id: tooltipTrigger
|
|
|
|
anchors.fill: layout
|
|
|
|
}
|
|
|
|
}
|