author | llornkcor <llornkcor> | 2002-04-12 18:05:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-12 18:05:12 (UTC) |
commit | 7e31b1fba119f69929d6744d7295555ff1727f4f (patch) (side-by-side diff) | |
tree | dc8a85f548599a26a4a6b4e6cc600b27e9575065 | |
parent | b7e13820e0adc60fa4927edeb60d8f2c3c221887 (diff) | |
download | opie-7e31b1fba119f69929d6744d7295555ff1727f4f.zip opie-7e31b1fba119f69929d6744d7295555ff1727f4f.tar.gz opie-7e31b1fba119f69929d6744d7295555ff1727f4f.tar.bz2 |
use resizing buttons for big German words
-rw-r--r-- | noncore/tools/clock/clock.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/tools/clock/clock.cpp b/noncore/tools/clock/clock.cpp index 097ea90..a21a061 100644 --- a/noncore/tools/clock/clock.cpp +++ b/noncore/tools/clock/clock.cpp @@ -94,69 +94,69 @@ Clock::Clock( QWidget * parent, const char * name, WFlags f ) QWidget *controls = new QWidget( this ); QGridLayout *gl = new QGridLayout( controls, 2, 2, 6, 4 ); QButtonGroup *grp = new QButtonGroup( controls ); grp->setRadioButtonExclusive( true ); grp->hide(); clockRB = new QRadioButton ( tr( "Clock" ), controls ); gl->addWidget( clockRB, 0, 0 ); grp->insert( clockRB ); swatchRB = new QRadioButton ( tr( "Stopwatch" ), controls ); gl->addWidget( swatchRB, 1, 0 ); grp->insert( swatchRB ); connect( grp, SIGNAL(clicked(int)), this, SLOT(modeSelect(int)) ); grp->setButton( 0 ); set = new QPushButton ( controls ); set->setMaximumSize(50,30); gl->addWidget( set, 0, 1 ); set->setText( tr( "Start" ) ); set->setEnabled( FALSE ); grp->insert( set ); reset = new QPushButton ( controls ); gl->addWidget( reset, 1, 1 ); reset->setText( tr( "Reset" ) ); reset->setEnabled( FALSE ); grp->insert( reset ); alarmOffBtn = new QPushButton ( controls ); - alarmOffBtn->setMaximumSize(60,30); +// alarmOffBtn->setMaximumSize(60,30); gl->addWidget( alarmOffBtn, 0, 2 ); alarmBtn = new QPushButton ( controls ); - alarmBtn->setMaximumSize(60,30); + // alarmBtn->setMaximumSize(60,30); gl->addWidget( alarmBtn, 1, 2 ); alarmBtn->setText( tr( "Set Alarm" ) ); connect( set, SIGNAL( pressed() ), SLOT( slotSet() ) ); connect( reset, SIGNAL( clicked() ), SLOT( slotReset() ) ); connect( alarmBtn, SIGNAL( clicked() ), SLOT( slotSetAlarm() ) ); connect( snoozeBtn, SIGNAL( clicked() ), SLOT( slotSnooze() ) ); connect( alarmOffBtn, SIGNAL( clicked() ), SLOT( slotToggleAlarm() ) ); connect( qApp, SIGNAL(appMessage(const QCString&, const QByteArray&)), this, SLOT(appMessage(const QCString&, const QByteArray&)) ); t = new QTimer( this ); connect( t, SIGNAL( timeout() ), SLOT( updateClock() ) ); t->start( 1000 ); connect( qApp, SIGNAL( timeChanged() ), SLOT( updateClock() ) ); swatch_running = FALSE; swatch_totalms = 0; connect( qApp, SIGNAL(clockChanged(bool)), this, SLOT(changeClock(bool)) ); QString tmp = config.readEntry("clockAlarmHour", ""); bool ok; hour = tmp.toInt(&ok,10); tmp = config.readEntry("clockAlarmMinute",""); minute = tmp.toInt(&ok,10); if( config.readEntry("clockAlarmSet","FALSE") == "TRUE") { alarmOffBtn->setText( tr( "Alarm Is On" ) ); |