Diffstat (limited to 'korganizer/koeditorgeneral.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/koeditorgeneral.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp index 9df76e7..0045b7f 100644 --- a/korganizer/koeditorgeneral.cpp +++ b/korganizer/koeditorgeneral.cpp | |||
@@ -223,25 +223,25 @@ void KOEditorGeneral::initAlarm(QWidget *parent,QBoxLayout *topLayout) | |||
223 | alarmLayout->addWidget(mAlarmProgramButton); | 223 | alarmLayout->addWidget(mAlarmProgramButton); |
224 | mAlarmSoundButton->setMaximumWidth( mAlarmSoundButton->sizeHint().width() + 4 ); | 224 | mAlarmSoundButton->setMaximumWidth( mAlarmSoundButton->sizeHint().width() + 4 ); |
225 | mAlarmProgramButton->setMaximumWidth(mAlarmProgramButton->sizeHint().width() + 4 ); | 225 | mAlarmProgramButton->setMaximumWidth(mAlarmProgramButton->sizeHint().width() + 4 ); |
226 | // if ( KOPrefs::instance()->mCompactDialogs ) { | 226 | // if ( KOPrefs::instance()->mCompactDialogs ) { |
227 | // mAlarmSoundButton->hide(); | 227 | // mAlarmSoundButton->hide(); |
228 | // mAlarmProgramButton->hide(); | 228 | // mAlarmProgramButton->hide(); |
229 | // } | 229 | // } |
230 | } | 230 | } |
231 | 231 | ||
232 | void KOEditorGeneral::pickAlarmSound() | 232 | void KOEditorGeneral::pickAlarmSound() |
233 | { | 233 | { |
234 | 234 | ||
235 | qDebug("KOEditorGeneral::pickAlarmSound() %d",mAlarmSoundButton->isOn() ); | 235 | //qDebug("KOEditorGeneral::pickAlarmSound() %d",mAlarmSoundButton->isOn() ); |
236 | 236 | ||
237 | bool oldState = mAlarmSoundButton->isOn(); | 237 | bool oldState = mAlarmSoundButton->isOn(); |
238 | 238 | ||
239 | QString fileName(KFileDialog::getOpenFileName(mAlarmSound, | 239 | QString fileName(KFileDialog::getOpenFileName(mAlarmSound, |
240 | i18n("*.wav|Wav Files"), 0)); | 240 | i18n("*.wav|Wav Files"), 0)); |
241 | if (!fileName.isEmpty()) { | 241 | if (!fileName.isEmpty()) { |
242 | mAlarmSound = fileName; | 242 | mAlarmSound = fileName; |
243 | QToolTip::remove(mAlarmSoundButton); | 243 | QToolTip::remove(mAlarmSoundButton); |
244 | QString dispStr = i18n("Playing '%1'").arg(fileName); | 244 | QString dispStr = i18n("Playing '%1'").arg(fileName); |
245 | QToolTip::add(mAlarmSoundButton, dispStr); | 245 | QToolTip::add(mAlarmSoundButton, dispStr); |
246 | mAlarmProgramButton->setOn(false); | 246 | mAlarmProgramButton->setOn(false); |
247 | mAlarmSoundButton->setOn(true); | 247 | mAlarmSoundButton->setOn(true); |