~ubuntu-clock-dev/ubuntu-clock-app/reboot-packaging

« back to all changes in this revision

Viewing changes to backend/modules/DateTime/datetime.h

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-07-29 12:00:28 UTC
  • mto: (37.1.1 reboot)
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: krnekhelesh@gmail.com-20140729120028-821ujpa5c9li7w5a
Remove hardcoded time format in the settings page and follow the user locale

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
               WRITE setUpdateInterval
33
33
               NOTIFY updateIntervalChanged)
34
34
 
35
 
    /*
36
 
     FIXME: Due to upstream QT Bug at
37
 
     https://bugreports.qt-project.org/browse/QTBUG-40275, we are forced to
38
 
     return a string instead of a QDateTime object. As a result, we are
39
 
     returning the string in the format specified below and then use that to
40
 
     construct a new Date() object in the qml side which is then displayed
41
 
     in the correct user locale.
42
 
    */
43
 
 
44
35
    // Property to determine the local time string (format hh:mm:ss)
45
36
    Q_PROPERTY(QString localTimeString
46
37
               READ localTimeString