summaryrefslogtreecommitdiffabout
path: root/korganizer/koeditorgeneral.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koeditorgeneral.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeditorgeneral.cpp34
1 files changed, 10 insertions, 24 deletions
diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp
index 4ee5292..cf0d4ae 100644
--- a/korganizer/koeditorgeneral.cpp
+++ b/korganizer/koeditorgeneral.cpp
@@ -229,10 +229,6 @@ void KOEditorGeneral::pickAlarmSound()
//QString prefix = mAlarmSound;
if (!mAlarmSoundButton->isOn()) {
- //mAlarmSound = "";
- QToolTip::remove(mAlarmSoundButton);
- QToolTip::add(mAlarmSoundButton, i18n("No sound set"));
- mAlarmProgramButton->setOn(true);
- mAlarmSoundButton->setOn(false);
- pickAlarmProgram();
+ mAlarmSoundButton->setOn(true);
+ ((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Audio Al.: ") + getFittingPath(mAlarmSound) );
} else {
QString fileName(KFileDialog::getOpenFileName(mAlarmSound,
@@ -251,9 +247,10 @@ void KOEditorGeneral::pickAlarmSound()
}
}
-
+#if 0
if (mAlarmProgramButton->isOn())
((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Proc.Al.: ") + getFittingPath(mAlarmProgram) );
if ( mAlarmSoundButton->isOn())
((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Audio Al.: ") + getFittingPath(mAlarmSound) );
+#endif
}
@@ -261,10 +258,6 @@ void KOEditorGeneral::pickAlarmProgram()
{
if (!mAlarmProgramButton->isOn()) {
- //mAlarmProgram = "";
- QToolTip::remove(mAlarmProgramButton);
- QToolTip::add(mAlarmProgramButton, i18n("No program set"));
- mAlarmProgramButton->setOn(false);
- mAlarmSoundButton->setOn(true);
- pickAlarmSound();
+ mAlarmProgramButton->setOn(true);
+ ((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Proc.Al.: ") + getFittingPath(mAlarmProgram) );
} else {
QString fileName(KFileDialog::getOpenFileName(mAlarmProgram,i18n("Procedure Alarm: ") , 0));
@@ -281,8 +274,10 @@ void KOEditorGeneral::pickAlarmProgram()
}
}
+#if 0
if (mAlarmProgramButton->isOn())
((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Proc.Al.: ") + getFittingPath(mAlarmProgram) );
if ( mAlarmSoundButton->isOn())
((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Audio Al.: ") + getFittingPath(mAlarmSound) );
+#endif
}
@@ -315,15 +310,6 @@ void KOEditorGeneral::enableAlarmEdit(bool enable)
}
}
- if (mAlarmProgramButton->isOn())
- ((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Proc.Al.: ") + getFittingPath(mAlarmProgram) );
- if (!mAlarmSound.isEmpty() && mAlarmSoundButton->isOn())
- ((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Audio Al.: ") + getFittingPath(mAlarmSound) );
- }
- else {
- ((QWidget*)parent())->topLevelWidget()->setCaption(mAlarmMessage);
- //((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Edit item: ") + mSummaryEdit->currentText());
-
-
}
+ ((QWidget*)parent())->topLevelWidget()->setCaption(mAlarmMessage);
mAlarmTimeEdit->setEnabled(enable);
mAlarmSoundButton->setEnabled(enable);
@@ -401,5 +387,5 @@ void KOEditorGeneral::readIncidence(Incidence *event)
{
- mAlarmMessage = i18n("Edit") +" "+event->summary();
+ mAlarmMessage = event->summary();
mAlarmIncrCombo->setCurrentItem(0);
mSummaryEdit->setEditText(event->summary());