Changeset 14470
- Timestamp:
- Feb 6, 2015, 8:08:36 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qt/prefs-dialog.cc
r14462 r14470 124 124 w->setValue (myPrefs.getDouble (prefKey)); 125 125 else if (auto w = qobject_cast<QTimeEdit*> (widget)) 126 w->setTime (QTime ( ).addSecs (myPrefs.getInt(prefKey) * 60));126 w->setTime (QTime (0, 0).addSecs (myPrefs.getInt(prefKey) * 60)); 127 127 else if (auto w = qobject_cast<QLineEdit*> (widget)) 128 128 w->setText (myPrefs.getString (prefKey)); … … 177 177 { 178 178 if (auto e = qobject_cast<const QTimeEdit*> (sender ())) 179 setPref(getPrefKey (e), QTime ( ).secsTo (e->time()) / 60);179 setPref(getPrefKey (e), QTime (0, 0).secsTo (e->time()) / 60); 180 180 } 181 181
Note: See TracChangeset
for help on using the changeset viewer.