From a02ae1eb52320d0cf308de164e1e1a1a7787e924 Mon Sep 17 00:00:00 2001 From: Giorgos Tsiapaliwkas Date: Tue, 21 Feb 2012 20:34:29 +0200 Subject: [PATCH] Add unitest code for dateTimeDigitSet and decimalPlaces --- .../locale/tests/contents/code/klocaleqmltest.qml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/declarativeimports/locale/tests/contents/code/klocaleqmltest.qml b/declarativeimports/locale/tests/contents/code/klocaleqmltest.qml index d7e2e94d6..1e4759a8d 100644 --- a/declarativeimports/locale/tests/contents/code/klocaleqmltest.qml +++ b/declarativeimports/locale/tests/contents/code/klocaleqmltest.qml @@ -66,6 +66,8 @@ Item { //locale.currencySymbol = TODO //console.log("currencySymbol" + locale.currencySymbol) + //locale.dateTimeDigitSet = DigitSet.EasternArabicIndicDigits + locale.dateFormat = "Y" console.log("dateFormat:" + locale.dateFormat) @@ -75,6 +77,9 @@ Item { locale.dateMonthNamePossessive = false console.log("dateMonthNamePossessive:" + locale.dateMonthNamePossessive) + locale.decimalPlaces = 2 + console.log("decimalPlaces:" + locale.decimalPlaces) + console.log("===========end===========") } } @@ -133,6 +138,16 @@ Item { console.log("the dateMonthNamePossessive property has been changed") } + dateTimeDigitSet: Digit.ArabicDigits + onDateTimeDigitSet: { + console.log("the dateTimeDigitSet property has been changed") + } + + decimalPlaces: 1 + onDecimalPlacesChanged: { + console.log("the decimalPlaces property has been changed") + } + } CalendarSystem {