-rw-r--r-- | korganizer/koeventviewer.cpp | 12 | ||||
-rw-r--r-- | korganizer/koeventviewer.h | 1 | ||||
-rw-r--r-- | korganizer/koeventviewerdialog.cpp | 18 | ||||
-rw-r--r-- | korganizer/searchdialog.cpp | 2 |
4 files changed, 26 insertions, 7 deletions
diff --git a/korganizer/koeventviewer.cpp b/korganizer/koeventviewer.cpp index 417d89c..44da058 100644 --- a/korganizer/koeventviewer.cpp +++ b/korganizer/koeventviewer.cpp @@ -694,2 +694,14 @@ void KOEventViewer::addText(QString text) setText(mText); } +void KOEventViewer::keyPressEvent ( QKeyEvent * e ) +{ + switch ( e->key() ) { + case Qt::Key_Return: + case Qt::Key_Enter : + e->ignore(); + break; + default: + QTextBrowser::keyPressEvent ( e ); + break; + } +} diff --git a/korganizer/koeventviewer.h b/korganizer/koeventviewer.h index cf44284..d8142ca 100644 --- a/korganizer/koeventviewer.h +++ b/korganizer/koeventviewer.h @@ -61,4 +61,5 @@ class KOEventViewer : public QTextBrowser { void formatAttendees(Incidence *event); void formatReadOnly(Incidence *event); + void keyPressEvent ( QKeyEvent * e ); private: diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp index f6f7258..23e62d3 100644 --- a/korganizer/koeventviewerdialog.cpp +++ b/korganizer/koeventviewerdialog.cpp @@ -78,6 +78,6 @@ void KOEventViewerDialog::showMe() showMaximized(); #endif - setFocus(); setActiveWindow(); + mEventViewer->setFocus(); } @@ -121,5 +121,6 @@ void KOEventViewerDialog::setEvent(Event *event) mEventViewer->setEvent(event); mIncidence = event; - findButton( Close )->setFocus(); + mEventViewer->setFocus(); + //findButton( Close )->setFocus(); if ( !mSyncMode ) { findButton( User1 )->setText( i18n("Agenda")); @@ -153,5 +154,6 @@ void KOEventViewerDialog::addEvent(Event *event) mEventViewer->addEvent(event); mIncidence = event; - findButton( Close )->setFocus(); + mEventViewer->setFocus(); + //findButton( Close )->setFocus(); if ( !mSyncMode ) { findButton( User1 )->setText( i18n("Agenda")); @@ -163,5 +165,6 @@ void KOEventViewerDialog::setTodo(Todo *event) mEventViewer->setTodo(event); mIncidence = (Incidence*)event; - findButton( Close )->setFocus(); + mEventViewer->setFocus(); + //findButton( Close )->setFocus(); if ( !mSyncMode ) { findButton( User1 )->setText( i18n("Set complete")); @@ -172,5 +175,6 @@ void KOEventViewerDialog::setJournal(Journal *j) mEventViewer->setJournal(j); mIncidence = (Incidence*)j; - findButton( Close )->setFocus(); + mEventViewer->setFocus(); + //findButton( Close )->setFocus(); if ( !mSyncMode ) { findButton( User1 )->setText( i18n("Agenda")); @@ -181,5 +185,6 @@ void KOEventViewerDialog::addText(QString text) { mEventViewer->addText(text); - findButton( Close )->setFocus(); + mEventViewer->setFocus(); + //findButton( Close )->setFocus(); } void KOEventViewerDialog::editIncidence() @@ -255,4 +260,5 @@ void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e ) break; default: + KDialogBase::keyPressEvent ( e ); break; } diff --git a/korganizer/searchdialog.cpp b/korganizer/searchdialog.cpp index aa1b244..cef59a2 100644 --- a/korganizer/searchdialog.cpp +++ b/korganizer/searchdialog.cpp @@ -85,5 +85,5 @@ SearchDialog::SearchDialog(Calendar *calendar,CalendarView *parent) mSummaryCheck = new QCheckBox(i18n("Summary/Loc."),subjectGroup); mSummaryCheck->setChecked(true); - mDescriptionCheck = new QCheckBox(i18n("Descriptions"),subjectGroup); + mDescriptionCheck = new QCheckBox(i18n("Details"),subjectGroup); mCategoryCheck = new QCheckBox(i18n("Categories"),subjectGroup); |