author | llornkcor <llornkcor> | 2002-04-12 18:05:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-04-12 18:05:12 (UTC) |
commit | 7e31b1fba119f69929d6744d7295555ff1727f4f (patch) (unidiff) | |
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 | |||
@@ -102,53 +102,53 @@ Clock::Clock( QWidget * parent, const char * name, WFlags f ) | |||
102 | gl->addWidget( clockRB, 0, 0 ); | 102 | gl->addWidget( clockRB, 0, 0 ); |
103 | grp->insert( clockRB ); | 103 | grp->insert( clockRB ); |
104 | 104 | ||
105 | swatchRB = new QRadioButton ( tr( "Stopwatch" ), controls ); | 105 | swatchRB = new QRadioButton ( tr( "Stopwatch" ), controls ); |
106 | gl->addWidget( swatchRB, 1, 0 ); | 106 | gl->addWidget( swatchRB, 1, 0 ); |
107 | grp->insert( swatchRB ); | 107 | grp->insert( swatchRB ); |
108 | 108 | ||
109 | connect( grp, SIGNAL(clicked(int)), this, SLOT(modeSelect(int)) ); | 109 | connect( grp, SIGNAL(clicked(int)), this, SLOT(modeSelect(int)) ); |
110 | grp->setButton( 0 ); | 110 | grp->setButton( 0 ); |
111 | 111 | ||
112 | set = new QPushButton ( controls ); | 112 | set = new QPushButton ( controls ); |
113 | set->setMaximumSize(50,30); | 113 | set->setMaximumSize(50,30); |
114 | gl->addWidget( set, 0, 1 ); | 114 | gl->addWidget( set, 0, 1 ); |
115 | set->setText( tr( "Start" ) ); | 115 | set->setText( tr( "Start" ) ); |
116 | set->setEnabled( FALSE ); | 116 | set->setEnabled( FALSE ); |
117 | grp->insert( set ); | 117 | grp->insert( set ); |
118 | 118 | ||
119 | reset = new QPushButton ( controls ); | 119 | reset = new QPushButton ( controls ); |
120 | gl->addWidget( reset, 1, 1 ); | 120 | gl->addWidget( reset, 1, 1 ); |
121 | reset->setText( tr( "Reset" ) ); | 121 | reset->setText( tr( "Reset" ) ); |
122 | reset->setEnabled( FALSE ); | 122 | reset->setEnabled( FALSE ); |
123 | grp->insert( reset ); | 123 | grp->insert( reset ); |
124 | 124 | ||
125 | alarmOffBtn = new QPushButton ( controls ); | 125 | alarmOffBtn = new QPushButton ( controls ); |
126 | alarmOffBtn->setMaximumSize(60,30); | 126 | // alarmOffBtn->setMaximumSize(60,30); |
127 | gl->addWidget( alarmOffBtn, 0, 2 ); | 127 | gl->addWidget( alarmOffBtn, 0, 2 ); |
128 | 128 | ||
129 | alarmBtn = new QPushButton ( controls ); | 129 | alarmBtn = new QPushButton ( controls ); |
130 | alarmBtn->setMaximumSize(60,30); | 130 | // alarmBtn->setMaximumSize(60,30); |
131 | gl->addWidget( alarmBtn, 1, 2 ); | 131 | gl->addWidget( alarmBtn, 1, 2 ); |
132 | alarmBtn->setText( tr( "Set Alarm" ) ); | 132 | alarmBtn->setText( tr( "Set Alarm" ) ); |
133 | 133 | ||
134 | connect( set, SIGNAL( pressed() ), SLOT( slotSet() ) ); | 134 | connect( set, SIGNAL( pressed() ), SLOT( slotSet() ) ); |
135 | connect( reset, SIGNAL( clicked() ), SLOT( slotReset() ) ); | 135 | connect( reset, SIGNAL( clicked() ), SLOT( slotReset() ) ); |
136 | 136 | ||
137 | connect( alarmBtn, SIGNAL( clicked() ), SLOT( slotSetAlarm() ) ); | 137 | connect( alarmBtn, SIGNAL( clicked() ), SLOT( slotSetAlarm() ) ); |
138 | connect( snoozeBtn, SIGNAL( clicked() ), SLOT( slotSnooze() ) ); | 138 | connect( snoozeBtn, SIGNAL( clicked() ), SLOT( slotSnooze() ) ); |
139 | connect( alarmOffBtn, SIGNAL( clicked() ), SLOT( slotToggleAlarm() ) ); | 139 | connect( alarmOffBtn, SIGNAL( clicked() ), SLOT( slotToggleAlarm() ) ); |
140 | 140 | ||
141 | connect( qApp, SIGNAL(appMessage(const QCString&, const QByteArray&)), | 141 | connect( qApp, SIGNAL(appMessage(const QCString&, const QByteArray&)), |
142 | this, SLOT(appMessage(const QCString&, const QByteArray&)) ); | 142 | this, SLOT(appMessage(const QCString&, const QByteArray&)) ); |
143 | 143 | ||
144 | t = new QTimer( this ); | 144 | t = new QTimer( this ); |
145 | connect( t, SIGNAL( timeout() ), SLOT( updateClock() ) ); | 145 | connect( t, SIGNAL( timeout() ), SLOT( updateClock() ) ); |
146 | t->start( 1000 ); | 146 | t->start( 1000 ); |
147 | 147 | ||
148 | connect( qApp, SIGNAL( timeChanged() ), SLOT( updateClock() ) ); | 148 | connect( qApp, SIGNAL( timeChanged() ), SLOT( updateClock() ) ); |
149 | 149 | ||
150 | swatch_running = FALSE; | 150 | swatch_running = FALSE; |
151 | swatch_totalms = 0; | 151 | swatch_totalms = 0; |
152 | 152 | ||
153 | connect( qApp, SIGNAL(clockChanged(bool)), this, SLOT(changeClock(bool)) ); | 153 | connect( qApp, SIGNAL(clockChanged(bool)), this, SLOT(changeClock(bool)) ); |
154 | 154 | ||