Index: sources/gui/qml/pages/settings/SettingsDateTime.qml =================================================================== diff -u -re8ffaa51e4eb9b55efebebc13899f79d9a5ca946 -r840b91f4f72d599bb523050dda2183a6611017b5 --- sources/gui/qml/pages/settings/SettingsDateTime.qml (.../SettingsDateTime.qml) (revision e8ffaa51e4eb9b55efebebc13899f79d9a5ca946) +++ sources/gui/qml/pages/settings/SettingsDateTime.qml (.../SettingsDateTime.qml) (revision 840b91f4f72d599bb523050dda2183a6611017b5) @@ -35,6 +35,8 @@ } property int labelWidth : 275 + property int entryWidth : 100 + readonly property bool isValid : _year .textInput.acceptableInput && _month .textInput.acceptableInput && @@ -77,99 +79,80 @@ font.pixelSize: Fonts.fontPixelTextRectExtra } - TextEntry { id: _hours - label.visible: false - width: Variables.textInputLineWidth - validator : IntValidator{ - bottom : 0 - top : 24 + TextEntry { id : _hours + nextInput : _minutes + label.visible : false + width : entryWidth + validator : IntValidator { + bottom : 0 + top : 24 } - onEnterPressed: { - if (textInput.acceptableInput) { - _minutes.textInput.forceActiveFocus() - } - } } - Text { id: _colon - text: qsTr(":") - color: Colors.textMain - font.pixelSize: Fonts.fontPixelTextRectExtra + Text { id : _colon + text : qsTr(":") + color : Colors.textMain + font.pixelSize : Fonts.fontPixelTextRectExtra } - TextEntry { id: _minutes - label.visible: false - validator : IntValidator{ - bottom : 0 - top : 59 + TextEntry { id : _minutes + nextInput : _month + label.visible : false + width : entryWidth + validator : IntValidator { + bottom : 0 + top : 59 } - onEnterPressed: { - if (textInput.acceptableInput) { - _month.textInput.forceActiveFocus() - } - } } } Row { // date spacing: 5 - Text { id: _dateLabel - width: labelWidth - text: qsTr("Date (MM/DD/YYYY)") - color: Colors.textMain - font.pixelSize: Fonts.fontPixelTextRectExtra + Text { id : _dateLabel + width : labelWidth + text : qsTr("Date (MM/DD/YYYY)") + color : Colors.textMain + font.pixelSize : Fonts.fontPixelTextRectExtra } - TextEntry { id: _month - label.visible: false - width: Variables.textInputLineWidth - validator : IntValidator{ - bottom : 1 - top : 12 + TextEntry { id : _month + nextInput : _day + label.visible : false + width : entryWidth + validator : IntValidator { + bottom : 1 + top : 12 } - onEnterPressed: { - if (textInput.acceptableInput) { - _day.textInput.forceActiveFocus() - } - } } - Text { id: _slashMonthDay - text: qsTr("/") - color: Colors.textMain - font.pixelSize: Fonts.fontPixelTextRectExtra + Text { id : _slashMonthDay + text : qsTr("/") + color : Colors.textMain + font.pixelSize : Fonts.fontPixelTextRectExtra } - TextEntry { id: _day - label.visible: false - width: Variables.textInputLineWidth - validator : IntValidator{ - bottom : 1 - top : 31 + TextEntry { id : _day + nextInput : _year + label.visible : false + width : entryWidth + validator : IntValidator { + bottom : 1 + top : 31 } - onEnterPressed: { - if (textInput.acceptableInput) { - _year.textInput.forceActiveFocus() - } - } } - Text { id: _slashDayYear - text: qsTr("/") - color: Colors.textMain - font.pixelSize: Fonts.fontPixelTextRectExtra + Text { id : _slashDayYear + text : qsTr("/") + color : Colors.textMain + font.pixelSize : Fonts.fontPixelTextRectExtra } - TextEntry { id: _year - label.visible: false - validator : IntValidator { - bottom : 1970 + TextEntry { id : _year + label.visible : false + width : entryWidth + validator : IntValidator { + bottom : 1970 } - onEnterPressed: { - if (textInput.acceptableInput) { - _keyboard.setVisible(true) - } - } } } }