homescreenapp/widgetplugins/hsclockwidgetplugin/tsrc/t_hsclockwidgetplugin/src/t_hsclocksettingsnotifier.cpp
equal
deleted
inserted
replaced
51 qApp->processEvents(); |
51 qApp->processEvents(); |
52 |
52 |
53 TClockFormat clockFormat = locale.ClockFormat(); |
53 TClockFormat clockFormat = locale.ClockFormat(); |
54 TTimeFormat timeFormat = locale.TimeFormat(); |
54 TTimeFormat timeFormat = locale.TimeFormat(); |
55 |
55 |
56 QCOMPARE( clockSettingsNotifier.clockFormat(), QString(ANALOG)); |
56 QCOMPARE( clockSettingsNotifier.clockType(), QString(ANALOG)); |
57 QCOMPARE( clockSettingsNotifier.timeFormat(), QString(TIME12)); |
57 QCOMPARE( clockSettingsNotifier.timeFormat(), QString(TIME12)); |
58 |
58 |
59 // ANALOG, TIME24 |
59 // ANALOG, TIME24 |
60 locale.SetClockFormat(EClockAnalog); |
60 locale.SetClockFormat(EClockAnalog); |
61 locale.SetTimeFormat(ETime24); |
61 locale.SetTimeFormat(ETime24); |
63 qApp->processEvents(); |
63 qApp->processEvents(); |
64 |
64 |
65 clockFormat = locale.ClockFormat(); |
65 clockFormat = locale.ClockFormat(); |
66 timeFormat = locale.TimeFormat(); |
66 timeFormat = locale.TimeFormat(); |
67 |
67 |
68 QCOMPARE( clockSettingsNotifier.clockFormat(), QString(ANALOG)); |
68 QCOMPARE( clockSettingsNotifier.clockType(), QString(ANALOG)); |
69 QCOMPARE( clockSettingsNotifier.timeFormat(), QString(TIME24)); |
69 QCOMPARE( clockSettingsNotifier.timeFormat(), QString(TIME24)); |
70 |
70 |
71 // DIGITAL, TIME24 |
71 // DIGITAL, TIME24 |
72 locale.SetClockFormat(EClockDigital); |
72 locale.SetClockFormat(EClockDigital); |
73 locale.SetTimeFormat(ETime24); |
73 locale.SetTimeFormat(ETime24); |
75 qApp->processEvents(); |
75 qApp->processEvents(); |
76 |
76 |
77 clockFormat = locale.ClockFormat(); |
77 clockFormat = locale.ClockFormat(); |
78 timeFormat = locale.TimeFormat(); |
78 timeFormat = locale.TimeFormat(); |
79 |
79 |
80 QCOMPARE( clockSettingsNotifier.clockFormat(), QString(DIGITAL)); |
80 QCOMPARE( clockSettingsNotifier.clockType(), QString(DIGITAL)); |
81 QCOMPARE( clockSettingsNotifier.timeFormat(), QString(TIME24)); |
81 QCOMPARE( clockSettingsNotifier.timeFormat(), QString(TIME24)); |
82 |
82 |
83 // DIGITAL, TIME12 |
83 // DIGITAL, TIME12 |
84 locale.SetClockFormat(EClockDigital); |
84 locale.SetClockFormat(EClockDigital); |
85 locale.SetTimeFormat(ETime12); |
85 locale.SetTimeFormat(ETime12); |
87 qApp->processEvents(); |
87 qApp->processEvents(); |
88 |
88 |
89 clockFormat = locale.ClockFormat(); |
89 clockFormat = locale.ClockFormat(); |
90 timeFormat = locale.TimeFormat(); |
90 timeFormat = locale.TimeFormat(); |
91 |
91 |
92 QCOMPARE( clockSettingsNotifier.clockFormat(), QString(DIGITAL)); |
92 QCOMPARE( clockSettingsNotifier.clockType(), QString(DIGITAL)); |
93 QCOMPARE( clockSettingsNotifier.timeFormat(), QString(TIME12)); |
93 QCOMPARE( clockSettingsNotifier.timeFormat(), QString(TIME12)); |
94 |
94 |
95 clockSettingsNotifier.createObserver(); |
95 clockSettingsNotifier.createSystemChangeObserver(); |
96 QVERIFY(clockSettingsNotifier.mDateTimeNotifier); |
96 QVERIFY(clockSettingsNotifier.mDateTimeNotifier); |
97 QVERIFY(clockSettingsNotifier.mDateTimeNotifier->IsActive()); |
97 QVERIFY(clockSettingsNotifier.mDateTimeNotifier->IsActive()); |
98 } |
98 } |
99 |
99 |
100 |
100 |