src/hbwidgets/widgets/hbdatetimepicker.cpp
changeset 23 e6ad4ef83b23
parent 21 4633027730f5
child 28 b7da29130b0e
equal deleted inserted replaced
21:4633027730f5 23:e6ad4ef83b23
   309 
   309 
   310     <TABLE>
   310     <TABLE>
   311     <TR><TD><b><b>Expression </b></TD><TD><b>Output</b> </TD></b></TR>
   311     <TR><TD><b><b>Expression </b></TD><TD><b>Output</b> </TD></b></TR>
   312     <TR><TD> h </TD><TD>The hour without a leading zero (0 to 23 or 1 to 12).</TD></TR>
   312     <TR><TD> h </TD><TD>The hour without a leading zero (0 to 23 or 1 to 12).</TD></TR>
   313     <TR><TD> hh </TD><TD>The hour with a leading zero (00 to 23 or 01 to 12). </TD></TR>
   313     <TR><TD> hh </TD><TD>The hour with a leading zero (00 to 23 or 01 to 12). </TD></TR>
   314     <TR><TD>H	</TD><TD>The hour without a leading zero (0 to 23, even with AM/PM display).</TD></TR>
   314     <TR><TD>H   </TD><TD>The hour without a leading zero (0 to 23, even with AM/PM display).</TD></TR>
   315     <TR><TD>HH	</TD><TD>The hour with a leading zero (00 to 23, even with AM/PM display).</TD></TR>
   315     <TR><TD>HH  </TD><TD>The hour with a leading zero (00 to 23, even with AM/PM display).</TD></TR>
   316     <TR><TD> m </TD><TD>The minute without a leading zero (0 to 59).</TD></TR>
   316     <TR><TD> m </TD><TD>The minute without a leading zero (0 to 59).</TD></TR>
   317     <TR><TD> mm </TD><TD>The minute with a leading zero (00 to 59).</TD></TR>
   317     <TR><TD> mm </TD><TD>The minute with a leading zero (00 to 59).</TD></TR>
   318     <TR><TD> s </TD><TD>The second without a leading zero (0 to 59).</TD></TR>
   318     <TR><TD> s </TD><TD>The second without a leading zero (0 to 59).</TD></TR>
   319     <TR><TD> ss </TD><TD>The second with a leading zero (00 to 59).</TD></TR>
   319     <TR><TD> ss </TD><TD>The second with a leading zero (00 to 59).</TD></TR>
   320     <TR><TD>AP or A	</TD><TD>Displays AM and PM.</i></TD></TR>
   320     <TR><TD>AP or A </TD><TD>Displays AM and PM.</i></TD></TR>
   321     <TR><TD>ap or a	</TD><TD>Displays am and pm.</TD></TR>
   321     <TR><TD>ap or a </TD><TD>Displays am and pm.</TD></TR>
   322     </TABLE>
   322     </TABLE>
   323 
   323 
   324     \note Currently you must include separators in the format; for example, 'dd.mm.yy'. 
   324     \note Currently you must include separators in the format; for example, 'dd.mm.yy'. 
   325 
   325 
   326     \sa displayFormat()
   326     \sa displayFormat()
   327 */
   327 */
   328 void HbDateTimePicker::setDisplayFormat(const QString &format)
   328 void HbDateTimePicker::setDisplayFormat(const QString &format)
   329 {
   329 {
   330     Q_D(HbDateTimePicker);
   330     Q_D(HbDateTimePicker);
   331 
   331 
   332     if(d->isFormatValid(format)){ 
   332     if(d->isFormatValid(format)){
   333         d->mFormat = format;
   333         d->mFormat = format;
   334         d->parseDisplayFormat(format);        
   334         d->processDisplaySections();
   335         d->rearrangeTumbleViews();
   335         d->rearrangeTumbleViews();
   336         d->emitDateTimeChange();
   336         d->emitDateTimeChange();
   337     }//End If format is valid
   337     }//End If format is valid
   338 }
   338 }
   339 
   339