author | zautrix <zautrix> | 2005-04-06 09:41:54 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-04-06 09:41:54 (UTC) |
commit | 03c5656deeec67eefcefb4faa1bfc9a9bc3254ef (patch) (unidiff) | |
tree | b514080a9b5256373967602d3a0ec41c68a70126 | |
parent | cf4848d972efe96640f2d5f5d52704306d0cbe4c (diff) | |
download | kdepimpi-03c5656deeec67eefcefb4faa1bfc9a9bc3254ef.zip kdepimpi-03c5656deeec67eefcefb4faa1bfc9a9bc3254ef.tar.gz kdepimpi-03c5656deeec67eefcefb4faa1bfc9a9bc3254ef.tar.bz2 |
focus fix
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 4 | ||||
-rw-r--r-- | korganizer/koeditorgeneral.cpp | 13 | ||||
-rw-r--r-- | korganizer/koeditorgeneral.h | 3 | ||||
-rw-r--r-- | korganizer/koeventeditor.cpp | 1 |
4 files changed, 15 insertions, 6 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 524f6fc..c598214 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -2,2 +2,6 @@ Info about the changes in new versions of KDE-Pim/Pi | |||
2 | 2 | ||
3 | ********** VERSION 2.0.25 ************ | ||
4 | |||
5 | And again fixed some bugs. | ||
6 | |||
3 | ********** VERSION 2.0.24 ************ | 7 | ********** VERSION 2.0.24 ************ |
diff --git a/korganizer/koeditorgeneral.cpp b/korganizer/koeditorgeneral.cpp index abc80d4..f54660f 100644 --- a/korganizer/koeditorgeneral.cpp +++ b/korganizer/koeditorgeneral.cpp | |||
@@ -61,2 +61,3 @@ KOEditorGeneral::KOEditorGeneral(QObject* parent, const char* name) : | |||
61 | { | 61 | { |
62 | mNextFocus = 0; | ||
62 | } | 63 | } |
@@ -107,4 +108,9 @@ void KOEditorGeneral::setFocusOn( int i ) | |||
107 | { | 108 | { |
108 | qApp->processEvents(); | 109 | mNextFocus = i; |
109 | if ( i == 1 ) { | 110 | QTimer::singleShot( 0, this, SLOT ( slotSetFocusOn() )); |
111 | } | ||
112 | void KOEditorGeneral::slotSetFocusOn() | ||
113 | { | ||
114 | mNextFocus; | ||
115 | if ( mNextFocus == 1 ) { | ||
110 | mDescriptionEdit->setFocus(); | 116 | mDescriptionEdit->setFocus(); |
@@ -112,6 +118,5 @@ void KOEditorGeneral::setFocusOn( int i ) | |||
112 | } | 118 | } |
113 | if ( i == 2 ) { | 119 | if ( mNextFocus == 2 ) { |
114 | mSummaryEdit->setFocus(); | 120 | mSummaryEdit->setFocus(); |
115 | } | 121 | } |
116 | |||
117 | } | 122 | } |
diff --git a/korganizer/koeditorgeneral.h b/korganizer/koeditorgeneral.h index f4728c7..2069e9c 100644 --- a/korganizer/koeditorgeneral.h +++ b/korganizer/koeditorgeneral.h | |||
@@ -83,3 +83,3 @@ class KOEditorGeneral : public QObject | |||
83 | void pickAlarmProgram(); | 83 | void pickAlarmProgram(); |
84 | 84 | void slotSetFocusOn(); | |
85 | signals: | 85 | signals: |
@@ -89,2 +89,3 @@ class KOEditorGeneral : public QObject | |||
89 | protected: | 89 | protected: |
90 | int mNextFocus; | ||
90 | //QLineEdit *mSummaryEdit; | 91 | //QLineEdit *mSummaryEdit; |
diff --git a/korganizer/koeventeditor.cpp b/korganizer/koeventeditor.cpp index 337db9b..e23e680 100644 --- a/korganizer/koeventeditor.cpp +++ b/korganizer/koeventeditor.cpp | |||
@@ -188,3 +188,2 @@ void KOEventEditor::editEvent(Event *event, bool showDescription) | |||
188 | readEvent(mEvent); | 188 | readEvent(mEvent); |
189 | qApp->processEvents(); | ||
190 | if ( showDescription ) { | 189 | if ( showDescription ) { |