2019-02-27 20:42:41 +01:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
|
|
|
|
RowLayout {
|
2019-07-21 22:33:52 +02:00
|
|
|
id: rowLayout
|
2019-02-27 20:42:41 +01:00
|
|
|
property var statistics
|
2019-07-21 22:33:52 +02:00
|
|
|
property string context: "?"
|
2019-02-27 20:42:41 +01:00
|
|
|
|
2019-07-21 22:33:52 +02:00
|
|
|
IconLabel {
|
2022-02-05 21:31:53 +01:00
|
|
|
iconSource: plasmoid.nativeInterface.faUrl + "file-o"
|
2019-02-27 20:42:41 +01:00
|
|
|
text: statistics.files !== undefined ? statistics.files : "?"
|
2019-07-21 22:33:52 +02:00
|
|
|
tooltip: context + qsTr(" files")
|
2019-02-27 20:42:41 +01:00
|
|
|
}
|
2019-07-21 22:33:52 +02:00
|
|
|
IconLabel {
|
2022-02-05 21:31:53 +01:00
|
|
|
iconSource: plasmoid.nativeInterface.faUrl + "folder-o"
|
2019-02-27 20:42:41 +01:00
|
|
|
text: statistics.dirs !== undefined ? statistics.dirs : "?"
|
2019-07-21 22:33:52 +02:00
|
|
|
tooltip: context + qsTr(" directories")
|
2019-02-27 20:42:41 +01:00
|
|
|
}
|
2019-07-21 22:33:52 +02:00
|
|
|
IconLabel {
|
2022-02-05 21:31:53 +01:00
|
|
|
iconSource: plasmoid.nativeInterface.faUrl + "hdd-o"
|
2019-02-27 20:42:41 +01:00
|
|
|
text: statistics.bytes !== undefined ? plasmoid.nativeInterface.formatFileSize(
|
|
|
|
statistics.bytes) : "?"
|
2019-07-21 22:33:52 +02:00
|
|
|
tooltip: context + qsTr(" size")
|
2019-02-27 20:42:41 +01:00
|
|
|
}
|
|
|
|
}
|