Index: sources/gui/qml/components/SDCInfo.qml =================================================================== diff -u -rb8a9627cf291b564b0fc1570f9c0a97fa6873035 -r69c86c57349b7d4a6ba47a801ba27b1c470fade5 --- sources/gui/qml/components/SDCInfo.qml (.../SDCInfo.qml) (revision b8a9627cf291b564b0fc1570f9c0a97fa6873035) +++ sources/gui/qml/components/SDCInfo.qml (.../SDCInfo.qml) (revision 69c86c57349b7d4a6ba47a801ba27b1c470fade5) @@ -7,32 +7,6 @@ import "qrc:/globals" Item { id: _root - - component SDInfoItem: Item { - width : _sdInfoText.contentWidth - height : 20 - - property alias color : _sdCircle.color - property alias text : _sdInfoText.text - - Rectangle { id: _sdCircle - anchors.right : _sdInfoText.left - anchors.rightMargin : Variables.defaultMargin - width : 12 - height : width - radius : height - } - - Text { id: _sdInfoText - anchors { - right : parent.right - verticalCenter : _sdCircle.verticalCenter - } - color : "grey" - font.pixelSize : Fonts.fontPixelTouchAreaTitle - } - } - Text { id: _sdCardText anchors.top : parent.top anchors.left : parent.left @@ -75,15 +49,34 @@ .arg(("%1 %2") .arg(Variables.sizeConverted( _GuiView.sdTotal, 1000, 3)) .arg(qsTr("MB"))) } - SDInfoItem { id: _sdUsedContainer + Item { id: _sdUsedContainer anchors { bottom : _progress.top bottomMargin: _sdInfo.anchors.topMargin right : _progress.right } - color : Colors.highlightProgressBar - text : ("%1 %2 %3") .arg(Variables.sizeConverted( _GuiView.sdTotal - _GuiView.sdAvail, 1000, 3)) - .arg(qsTr("MB")) - .arg(qsTr("Used")) + width : _sdInfoText.contentWidth + height : 20 + + Rectangle { id: _sdCircle + anchors.right : _sdInfoText.left + anchors.rightMargin : Variables.defaultMargin + color : Colors.highlightProgressBar + width : 12 + height : width + radius : height + } + + Text { id: _sdInfoText + anchors { + right : parent.right + verticalCenter : _sdCircle.verticalCenter + } + color : "grey" + font.pixelSize : Fonts.fontPixelTouchAreaTitle + text : ("%1 %2 %3") .arg(Variables.sizeConverted( _GuiView.sdTotal - _GuiView.sdAvail, 1000, 3)) + .arg(qsTr("MB")) + .arg(qsTr("Used")) + } } }