Index: sources/gui/qml/SDItem.qml =================================================================== diff -u -re159592e3a99658e661ab83fffef43322dc075f3 -raad2e406efd1fc2589a19004eb86ca6277f41aea --- sources/gui/qml/SDItem.qml (.../SDItem.qml) (revision e159592e3a99658e661ab83fffef43322dc075f3) +++ sources/gui/qml/SDItem.qml (.../SDItem.qml) (revision aad2e406efd1fc2589a19004eb86ca6277f41aea) @@ -16,17 +16,19 @@ // Qt import QtQuick 2.12 - // Project // C++ imports // Qml imports import "qrc:/globals" import "qrc:/components" /*! - * \brief Keyboard is the single keyboard in the entire applicaiton. + * \brief SDItem is the component to provide user information about the SDCard. + * \detials This item includes the space left on the device in percent as well as the ProgressCircle for a graphical representation. + * The ProgressCircle turns red if the amount of free space left is less than defined (15% for now) + * The percent value in the circle will show "SD" if the device is not present/ready. */ -Rectangle { id: _root // TEST : SD-Card not present should be handled with better indication(s). +Rectangle { id: _root // TEST : SD-Card not present may need to be handled with better indication(s). color : Colors.transparent anchors { top : parent.top @@ -49,8 +51,8 @@ anchors.fill: parent diameter: _root.width minimum : 0 - maximum : _GuiView.sdTotal / 1000000 - value : _GuiView.sdAvail / 1000000 + maximum : _GuiView.sdTotal / 1000000 // convert to MB since the value in byte is too big for ProgressCircle. + value : _GuiView.sdAvail / 1000000 // convert to MB since the value in byte is too big for ProgressCircle. thickness: 1 color : ! _GuiView.sdIsReady ? "red" : _GuiView.sdIsReadOnly ? "gray" : _GuiView.sdIsLow ? Colors.red : "green" }