summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/tools/clock/clock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp
index d5d77bc..6f570c5 100644
--- a/noncore/tools/clock/clock.cpp
+++ b/noncore/tools/clock/clock.cpp
@@ -71,25 +71,25 @@ Clock::Clock( QWidget * parent, const char * name, WFlags f )
71 aclock->display( QTime::currentTime() ); 71 aclock->display( QTime::currentTime() );
72 aclock->setLineWidth( 2 ); 72 aclock->setLineWidth( 2 );
73 73
74 QHBox *hb = new QHBox( this ); 74 QHBox *hb = new QHBox( this );
75 hb->setMargin( 0 ); 75 hb->setMargin( 0 );
76 QWidget *space = new QWidget( hb ); 76 QWidget *space = new QWidget( hb );
77 lcd = new QLCDNumber( hb ); 77 lcd = new QLCDNumber( hb );
78 lcd->setSegmentStyle( QLCDNumber::Flat ); 78 lcd->setSegmentStyle( QLCDNumber::Flat );
79 lcd->setFrameStyle( QFrame::NoFrame ); 79 lcd->setFrameStyle( QFrame::NoFrame );
80 lcd->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ) ); 80 lcd->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum ) );
81 lcd->setFixedHeight( 23 ); 81 lcd->setFixedHeight( 23 );
82 82
83 ampmLabel = new QLabel( "PM", hb ); 83 ampmLabel = new QLabel( tr("PM"), hb );
84 ampmLabel->setFont( QFont( "Helvetica", 14, QFont::Bold ) ); 84 ampmLabel->setFont( QFont( "Helvetica", 14, QFont::Bold ) );
85 ampmLabel->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Preferred ) ); 85 ampmLabel->setSizePolicy( QSizePolicy( QSizePolicy::Minimum, QSizePolicy::Preferred ) );
86 ampmLabel->setAlignment( AlignLeft | AlignBottom ); 86 ampmLabel->setAlignment( AlignLeft | AlignBottom );
87 space = new QWidget( hb ); 87 space = new QWidget( hb );
88 88
89 date = new QLabel( this ); 89 date = new QLabel( this );
90 date->setAlignment( AlignHCenter | AlignVCenter ); 90 date->setAlignment( AlignHCenter | AlignVCenter );
91 date->setFont( QFont( "Helvetica", 14, QFont::Bold ) ); 91 date->setFont( QFont( "Helvetica", 14, QFont::Bold ) );
92 date->setText( TimeString::longDateString( QDate::currentDate() ) ); 92 date->setText( TimeString::longDateString( QDate::currentDate() ) );
93 93
94 QWidget *controls = new QWidget( this ); 94 QWidget *controls = new QWidget( this );
95 QGridLayout *gl = new QGridLayout( controls, 2, 2, 6, 4 ); 95 QGridLayout *gl = new QGridLayout( controls, 2, 2, 6, 4 );