2021-10-15 22:18:30 +02:00
|
|
|
import QtQuick 2.8
|
|
|
|
import QtQuick.Layouts 1.1
|
2020-11-27 19:09:47 +01:00
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
2017-09-12 00:00:16 +02:00
|
|
|
|
2020-11-27 19:09:47 +01:00
|
|
|
PlasmaComponents3.ToolButton {
|
2021-10-15 22:18:30 +02:00
|
|
|
id: root
|
|
|
|
|
2020-11-27 19:09:47 +01:00
|
|
|
property alias tooltip: tooltip.text
|
2021-10-15 22:18:30 +02:00
|
|
|
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.preferredWidth: units.iconSizes.smallMedium
|
|
|
|
Layout.preferredHeight: units.iconSizes.smallMedium
|
|
|
|
|
2020-11-27 19:09:47 +01:00
|
|
|
PlasmaComponents3.ToolTip {
|
|
|
|
id: tooltip
|
|
|
|
}
|
2021-10-15 22:18:30 +02:00
|
|
|
contentItem: Image {
|
|
|
|
source: root.icon.source
|
2022-02-05 21:31:53 +01:00
|
|
|
cache: false
|
2021-10-15 22:18:30 +02:00
|
|
|
height: parent.height
|
|
|
|
fillMode: Image.PreserveAspectFit
|
|
|
|
}
|
2017-09-12 00:00:16 +02:00
|
|
|
}
|