-rw-r--r-- | noncore/tools/clock/setAlarm.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/tools/clock/setAlarm.cpp b/noncore/tools/clock/setAlarm.cpp index bd964e0..990ff81 100644 --- a/noncore/tools/clock/setAlarm.cpp +++ b/noncore/tools/clock/setAlarm.cpp | |||
@@ -31,16 +31,17 @@ | |||
31 | 31 | ||
32 | Set_Alarm::Set_Alarm( QWidget* parent, const char* name, bool modal, WFlags fl ) | 32 | Set_Alarm::Set_Alarm( QWidget* parent, const char* name, bool modal, WFlags fl ) |
33 | : QDialog( parent, name, modal, fl ) | 33 | : QDialog( parent, name, modal, fl ) |
34 | { | 34 | { |
35 | if ( !name ) | 35 | if ( !name ) |
36 | setName( "Set_Alarm" ); | 36 | setName( "Set_Alarm" ); |
37 | resize( 240, 101 ); | 37 | resize( 240, 101 ); |
38 | setMaximumSize( QSize( 240, 320 ) ); | 38 | setMaximumSize( QSize( 240, 320 ) ); |
39 | move(0,48); | ||
39 | setCaption( tr( "Set Alarm" ) ); | 40 | setCaption( tr( "Set Alarm" ) ); |
40 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); | 41 | connect( qApp,SIGNAL( aboutToQuit()),SLOT( cleanUp()) ); |
41 | 42 | ||
42 | Set_AlarmLayout = new QGridLayout( this ); | 43 | Set_AlarmLayout = new QGridLayout( this ); |
43 | Set_AlarmLayout->setSpacing( 6 ); | 44 | Set_AlarmLayout->setSpacing( 6 ); |
44 | Set_AlarmLayout->setMargin( 11 ); | 45 | Set_AlarmLayout->setMargin( 11 ); |
45 | 46 | ||
46 | TextLabel1 = new QLabel( this, "TextLabel1" ); | 47 | TextLabel1 = new QLabel( this, "TextLabel1" ); |
@@ -128,18 +129,18 @@ Set_Alarm::Set_Alarm( QWidget* parent, const char* name, bool modal, WFlags fl | |||
128 | Hour_Slider->setMaxValue( 12); | 129 | Hour_Slider->setMaxValue( 12); |
129 | Hour_Slider->setMinValue( 1); | 130 | Hour_Slider->setMinValue( 1); |
130 | 131 | ||
131 | if( i_alarmHour > 12) { | 132 | if( i_alarmHour > 12) { |
132 | i_alarmHour = i_alarmHour - 12; | 133 | i_alarmHour = i_alarmHour - 12; |
133 | Pm_RadioButton->setChecked(TRUE); | 134 | Pm_RadioButton->setChecked(TRUE); |
134 | } | 135 | } |
135 | else if ( i_alarmHour == 0 ) { | 136 | else if ( i_alarmHour == 0 ) { |
136 | i_alarmHour = 12; | 137 | i_alarmHour = 12; |
137 | } | 138 | } |
138 | Hour_Slider->setValue( i_alarmHour ); | 139 | Hour_Slider->setValue( i_alarmHour ); |
139 | Minute_Slider->setValue( alarmMinute.toInt(&ok,10) ); | 140 | Minute_Slider->setValue( alarmMinute.toInt(&ok,10) ); |
140 | SnoozeSlider->setValue( snoozeTime.toInt(&ok,10) ); | 141 | SnoozeSlider->setValue( snoozeTime.toInt(&ok,10) ); |
141 | } else { | 142 | } else { |
142 | Hour_Slider->setMaxValue( 23); | 143 | Hour_Slider->setMaxValue( 23); |
143 | Hour_Slider->setMinValue( 0); | 144 | Hour_Slider->setMinValue( 0); |
144 | Hour_Slider->setValue( i_alarmHour); | 145 | Hour_Slider->setValue( i_alarmHour); |
145 | Minute_Slider->setValue( alarmMinute.toInt(&ok,10) ); | 146 | Minute_Slider->setValue( alarmMinute.toInt(&ok,10) ); |