2017-09-09 21:40:00 +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
|
2023-05-21 20:14:24 +02:00
|
|
|
import org.kde.kirigami 2.20 as Kirigami
|
2017-09-09 21:40:00 +02:00
|
|
|
|
|
|
|
RowLayout {
|
2023-05-21 20:14:24 +02:00
|
|
|
spacing: Kirigami.Units.smallSpacing
|
2017-09-09 21:40:00 +02:00
|
|
|
|
2023-11-14 01:50:24 +01:00
|
|
|
Kirigami.Icon {
|
2017-09-09 21:40:00 +02:00
|
|
|
id: tooltipIcon
|
2023-05-21 20:14:24 +02:00
|
|
|
source: plasmoid.statusIcon
|
2017-09-09 21:40:00 +02:00
|
|
|
Layout.alignment: Qt.AlignCenter
|
|
|
|
visible: true
|
2023-05-21 20:14:24 +02:00
|
|
|
implicitWidth: Kirigami.Units.iconSizes.large
|
|
|
|
Layout.topMargin: Kirigami.Units.smallSpacing
|
|
|
|
Layout.leftMargin: Kirigami.Units.smallSpacing
|
|
|
|
Layout.bottomMargin: Kirigami.Units.smallSpacing
|
|
|
|
Layout.rightMargin: Kirigami.Units.smallSpacing
|
2017-09-09 21:40:00 +02:00
|
|
|
Layout.preferredWidth: implicitWidth
|
|
|
|
Layout.preferredHeight: implicitWidth
|
|
|
|
}
|
|
|
|
|
|
|
|
ColumnLayout {
|
2023-05-21 20:14:24 +02:00
|
|
|
Kirigami.Heading {
|
2017-09-09 21:40:00 +02:00
|
|
|
id: tooltipMaintext
|
|
|
|
level: 3
|
|
|
|
elide: Text.ElideRight
|
2023-05-21 20:14:24 +02:00
|
|
|
text: plasmoid.statusText
|
2017-09-09 21:40:00 +02:00
|
|
|
}
|
2020-11-27 19:09:47 +01:00
|
|
|
PlasmaComponents3.Label {
|
2017-09-09 21:40:00 +02:00
|
|
|
id: tooltipSubtext
|
2023-05-21 20:14:24 +02:00
|
|
|
text: plasmoid.additionalStatusText
|
2017-09-09 21:40:00 +02:00
|
|
|
opacity: 0.6
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|