Martchus
912dca1564
* Split QML part into distinct versions for Plasma 5 and 6 as there are too many differences and `#ifdef` is not possible * Change API usage according to https://develop.kde.org/docs/plasma/widget/porting_kf6 * Port "contextualActions" to API documented on https://invent.kde.org/frameworks/plasma-framework/-/blob/master/src/plasma/applet.h * Document testing * Add FIXMEs/notes for remaining problems; there are likely many more, though
26 lines
762 B
QML
26 lines
762 B
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.1
|
|
|
|
RowLayout {
|
|
id: rowLayout
|
|
property var statistics
|
|
property string context: "?"
|
|
|
|
IconLabel {
|
|
iconSource: plasmoid.faUrl + "file-o"
|
|
text: statistics.files !== undefined ? statistics.files : "?"
|
|
tooltip: context + qsTr(" files")
|
|
}
|
|
IconLabel {
|
|
iconSource: plasmoid.faUrl + "folder-o"
|
|
text: statistics.dirs !== undefined ? statistics.dirs : "?"
|
|
tooltip: context + qsTr(" directories")
|
|
}
|
|
IconLabel {
|
|
iconSource: plasmoid.faUrl + "hdd-o"
|
|
text: statistics.bytes !== undefined ? plasmoid.formatFileSize(
|
|
statistics.bytes) : "?"
|
|
tooltip: context + qsTr(" size")
|
|
}
|
|
}
|