equal
deleted
inserted
replaced
24 #include <hbdatetimeedit.h> |
24 #include <hbdatetimeedit.h> |
25 |
25 |
26 |
26 |
27 FmTimeQuery::FmTimeQuery( QGraphicsItem *parent ) : FmDialog( parent ) |
27 FmTimeQuery::FmTimeQuery( QGraphicsItem *parent ) : FmDialog( parent ) |
28 { |
28 { |
29 |
29 setObjectName( "timeQueryDialog" ); |
30 mContentWidget = new QGraphicsWidget(); |
30 mContentWidget = new QGraphicsWidget(); |
31 setContentWidget(mContentWidget); |
31 setContentWidget(mContentWidget); |
32 |
32 mContentWidget->setObjectName( "timeQueryContentWidget" ); |
33 QGraphicsLinearLayout *vLayout = new QGraphicsLinearLayout(); |
33 QGraphicsLinearLayout *vLayout = new QGraphicsLinearLayout(); |
34 vLayout->setOrientation( Qt::Vertical ); |
34 vLayout->setOrientation( Qt::Vertical ); |
35 |
35 |
36 mTimeWidget = new HbDateTimeEdit(); |
36 mTimeWidget = new HbDateTimeEdit(); |
37 vLayout->addItem(mTimeWidget); |
37 mTimeWidget->setObjectName( "timeQueryTimeWidget" ); |
|
38 vLayout->addItem( mTimeWidget ); |
38 |
39 |
39 mTimeWidget->setFontSpec( HbFontSpec( HbFontSpec::Primary ) ); |
40 mTimeWidget->setFontSpec( HbFontSpec( HbFontSpec::Primary ) ); |
40 mTimeWidget->setDisplayFormat( "hh:mm" ); |
41 mTimeWidget->setDisplayFormat( "hh:mm" ); |
41 mTimeWidget->setDateTime( QDateTime::currentDateTime() ); |
42 mTimeWidget->setDateTime( QDateTime::currentDateTime() ); |
42 |
43 |