Index: sources/gui/qml/SDItem.qml =================================================================== diff -u -raad2e406efd1fc2589a19004eb86ca6277f41aea -r7077e38c74db9cccb5496ffefcf8936c0916de76 --- sources/gui/qml/SDItem.qml (.../SDItem.qml) (revision aad2e406efd1fc2589a19004eb86ca6277f41aea) +++ sources/gui/qml/SDItem.qml (.../SDItem.qml) (revision 7077e38c74db9cccb5496ffefcf8936c0916de76) @@ -29,14 +29,17 @@ * The percent value in the circle will show "SD" if the device is not present/ready. */ Rectangle { id: _root // TEST : SD-Card not present may need to be handled with better indication(s). + + signal doubleClicked + color : Colors.transparent anchors { top : parent.top right : parent.right topMargin : 5 rightMargin : 5 } - width : 28 + width : 30 height: width radius: width Text { id: _SDText @@ -53,8 +56,11 @@ minimum : 0 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" } + MouseArea { + anchors.fill: parent + onDoubleClicked: _root.doubleClicked() + } }