Index: sources/gui/qml/components/TimeText.qml =================================================================== diff -u -ra5760947d3ed0d2748ba023a1c25e3c6aa0b1de1 -r77ba0083b790f7c1c851c60ecaeaa4f2e7eff7a8 --- sources/gui/qml/components/TimeText.qml (.../TimeText.qml) (revision a5760947d3ed0d2748ba023a1c25e3c6aa0b1de1) +++ sources/gui/qml/components/TimeText.qml (.../TimeText.qml) (revision 77ba0083b790f7c1c851c60ecaeaa4f2e7eff7a8) @@ -28,6 +28,7 @@ objectName: "_TimeText" //SquishQt testability property int seconds : 0 property bool secondsVisible : true + property int secondsLeftMargin : 0 property bool hourZero : true property bool minuteZero : true @@ -57,51 +58,51 @@ property string time : hourText + separator + minuteText + (_root.secondsVisible ? (separator + secondText) : "") } - Text { id: _timeSeparator - objectName: "_TimeText_timeSeparator" //SquishQt testability + Text { id : _timeSeparator + objectName : "_TimeText_timeSeparator" //SquishQt testability - text: _private.separator + text : _private.separator - font.pixelSize: _root.textPixelSize - font.weight: _root.textWeight - color: _root.textColor + font.pixelSize : _root.textPixelSize + font.weight : _root.textWeight + color : _root.textColor anchors.centerIn: _root } - Text { id: _hourText - objectName: "_TimeText_hour" //SquishQt testability + Text { id : _hourText + objectName : "_TimeText_hour" //SquishQt testability - text: _private.hourText - font.pixelSize: _root.textPixelSize - font.weight: _root.textWeight - color: _root.textColor + text : _private.hourText + font.pixelSize : _root.textPixelSize + font.weight : _root.textWeight + color : _root.textColor horizontalAlignment: Text.AlignRight anchors.right : _timeSeparator.left anchors.baseline: _timeSeparator.baseline } - Text { id: _minuteText - objectName: "_TimeText_minute" //SquishQt testability + Text { id : _minuteText + objectName : "_TimeText_minute" //SquishQt testability - text: _private.minuteText - font.pixelSize: _root.textPixelSize - font.weight: _root.textWeight - color: _root.textColor + text : _private.minuteText + font.pixelSize : _root.textPixelSize + font.weight : _root.textWeight + color : _root.textColor horizontalAlignment: Text.AlignLeft - anchors.left: _timeSeparator.right + anchors.left : _timeSeparator.right anchors.baseline: _timeSeparator.baseline } - Text { id: _secondText - objectName: "_TimeText_second" //SquishQt testability + Text { id : _secondText + objectName : "_TimeText_second" //SquishQt testability - visible: _root.secondsVisible - - text: _private.secondText - font.pixelSize: _root.secsPixelSize - color: _root.textColor - horizontalAlignment: Text.AlignLeft - anchors.left: _minuteText.right - anchors.baseline: _timeSeparator.baseline + visible : _root.secondsVisible + text : _private.secondText + font.pixelSize : _root.secsPixelSize + color : _root.textColor + horizontalAlignment : Text.AlignLeft + anchors.left : _minuteText.right + anchors.leftMargin : _root.secondsLeftMargin + anchors.baseline : _timeSeparator.baseline } }