summaryrefslogtreecommitdiffabout
path: root/korganizer/koeditorgeneral.cpp
authorzautrix <zautrix>2005-03-25 19:42:13 (UTC)
committer zautrix <zautrix>2005-03-25 19:42:13 (UTC)
commitae440bf75e7f74f35f83d082de9c7a34d2d3c65d (patch) (side-by-side diff)
treec1aa1e79a58463081e207479ee0ccad5c9f8e9cf /korganizer/koeditorgeneral.cpp
parent89a72c007045dcfa5dbf57012b4cf0c2aebd1495 (diff)
downloadkdepimpi-ae440bf75e7f74f35f83d082de9c7a34d2d3c65d.zip
kdepimpi-ae440bf75e7f74f35f83d082de9c7a34d2d3c65d.tar.gz
kdepimpi-ae440bf75e7f74f35f83d082de9c7a34d2d3c65d.tar.bz2
layout fixes
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
@@ -230,8 +230,4 @@ void KOEditorGeneral::pickAlarmSound()
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 {
@@ -252,3 +248,3 @@ void KOEditorGeneral::pickAlarmSound()
}
-
+#if 0
if (mAlarmProgramButton->isOn())
@@ -257,2 +253,3 @@ void KOEditorGeneral::pickAlarmSound()
((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Audio Al.: ") + getFittingPath(mAlarmSound) );
+#endif
}
@@ -262,8 +259,4 @@ 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 {
@@ -282,2 +275,3 @@ void KOEditorGeneral::pickAlarmProgram()
}
+#if 0
if (mAlarmProgramButton->isOn())
@@ -286,2 +280,3 @@ void KOEditorGeneral::pickAlarmProgram()
((QWidget*)parent())->topLevelWidget()->setCaption(i18n("Audio Al.: ") + getFittingPath(mAlarmSound) );
+#endif
}
@@ -316,13 +311,4 @@ 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);
@@ -402,3 +388,3 @@ void KOEditorGeneral::readIncidence(Incidence *event)
- mAlarmMessage = i18n("Edit") +" "+event->summary();
+ mAlarmMessage = event->summary();
mAlarmIncrCombo->setCurrentItem(0);