24 lines
549 B
QML
24 lines
549 B
QML
import QtQuick 2.8
|
|
import QtQuick.Layouts 1.1
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents3
|
|
|
|
PlasmaComponents3.ToolButton {
|
|
id: root
|
|
|
|
property alias tooltip: tooltip.text
|
|
|
|
Layout.fillHeight: true
|
|
Layout.preferredWidth: units.iconSizes.smallMedium
|
|
Layout.preferredHeight: units.iconSizes.smallMedium
|
|
|
|
PlasmaComponents3.ToolTip {
|
|
id: tooltip
|
|
}
|
|
contentItem: Image {
|
|
source: root.icon.source
|
|
cache: false
|
|
height: parent.height
|
|
fillMode: Image.PreserveAspectFit
|
|
}
|
|
}
|