equal
deleted
inserted
replaced
395 // Set FromTime filed Read-Only/Editable |
395 // Set FromTime filed Read-Only/Editable |
396 mPushButtonTime->setEnabled(enableTimeFiles); |
396 mPushButtonTime->setEnabled(enableTimeFiles); |
397 |
397 |
398 // Set FromTime in Editor |
398 // Set FromTime in Editor |
399 mPushButtonTime->setText(mLocale.format(fromDateTime.time(),r_qtn_time_usual_with_zero)); |
399 mPushButtonTime->setText(mLocale.format(fromDateTime.time(),r_qtn_time_usual_with_zero)); |
|
400 |
|
401 // Store the time |
|
402 mTime = fromDateTime.time(); |
400 } |
403 } |
401 |
404 |
402 /*! |
405 /*! |
403 Disable Date field. |
406 Disable Date field. |
404 */ |
407 */ |
417 mPushButtonTime->setEnabled(enableTimeFiles); |
420 mPushButtonTime->setEnabled(enableTimeFiles); |
418 |
421 |
419 // Set ToTime in Editor |
422 // Set ToTime in Editor |
420 mPushButtonTime->setText(mLocale.format( |
423 mPushButtonTime->setText(mLocale.format( |
421 toDateTime.time(),r_qtn_time_usual_with_zero)); |
424 toDateTime.time(),r_qtn_time_usual_with_zero)); |
|
425 |
|
426 // Store the time |
|
427 mTime = toDateTime.time(); |
422 } |
428 } |
423 |
429 |
424 /*! |
430 /*! |
425 OverRide from DataFrom |
431 OverRide from DataFrom |
426 */ |
432 */ |
461 } |
467 } |
462 break; |
468 break; |
463 } |
469 } |
464 } |
470 } |
465 |
471 |
|
472 QDateTime CalenEditorCustomItem::getDateTime() |
|
473 { |
|
474 return QDateTime(mDate, mTime); |
|
475 } |
|
476 |
466 Q_IMPLEMENT_USER_METATYPE(QLocationPickerItem) |
477 Q_IMPLEMENT_USER_METATYPE(QLocationPickerItem) |
467 |
478 |
468 // End of file --Don't remove this. |
479 // End of file --Don't remove this. |