author | zautrix <zautrix> | 2004-09-09 21:22:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-09 21:22:38 (UTC) |
commit | 10eb314475b75a162582e8138d465890dbd21806 (patch) (unidiff) | |
tree | 9045f8a02113eedf2f2c59d239e4e43b41c2cdc5 /korganizer/koeventviewerdialog.cpp | |
parent | 5b0e3c87bbe32aacd51f6faff5446ed3838a68e0 (diff) | |
download | kdepimpi-10eb314475b75a162582e8138d465890dbd21806.zip kdepimpi-10eb314475b75a162582e8138d465890dbd21806.tar.gz kdepimpi-10eb314475b75a162582e8138d465890dbd21806.tar.bz2 |
Fixed closing of event viewer
Diffstat (limited to 'korganizer/koeventviewerdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/koeventviewerdialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp index be183eb..68c0e1a 100644 --- a/korganizer/koeventviewerdialog.cpp +++ b/korganizer/koeventviewerdialog.cpp | |||
@@ -182,58 +182,59 @@ void KOEventViewerDialog::editIncidence() | |||
182 | hide(); | 182 | hide(); |
183 | #endif | 183 | #endif |
184 | emit editIncidence( mIncidence ); | 184 | emit editIncidence( mIncidence ); |
185 | } | 185 | } |
186 | } | 186 | } |
187 | void KOEventViewerDialog::showIncidence() | 187 | void KOEventViewerDialog::showIncidence() |
188 | { | 188 | { |
189 | 189 | ||
190 | if ( mSyncMode ) { | 190 | if ( mSyncMode ) { |
191 | mSyncResult = 1; | 191 | mSyncResult = 1; |
192 | accept(); | 192 | accept(); |
193 | return; | 193 | return; |
194 | } | 194 | } |
195 | 195 | ||
196 | if ( mIncidence ){ | 196 | if ( mIncidence ){ |
197 | #ifndef DESKTOP_VERSION | 197 | #ifndef DESKTOP_VERSION |
198 | hide(); | 198 | hide(); |
199 | #endif | 199 | #endif |
200 | QDate date; | 200 | QDate date; |
201 | if ( mIncidence->type() == "Todo" ) { | 201 | if ( mIncidence->type() == "Todo" ) { |
202 | if ( ((Todo*)mIncidence)->hasDueDate() ) | 202 | if ( ((Todo*)mIncidence)->hasDueDate() ) |
203 | date = ((Todo*)mIncidence)->dtDue().date(); | 203 | date = ((Todo*)mIncidence)->dtDue().date(); |
204 | else { | 204 | else { |
205 | globalFlagBlockAgenda = 2; | 205 | globalFlagBlockAgenda = 2; |
206 | emit showAgendaView( false ); | 206 | emit showAgendaView( false ); |
207 | return; | 207 | return; |
208 | } | 208 | } |
209 | } else | 209 | } else |
210 | date = mIncidence->dtStart().date(); | 210 | date = mIncidence->dtStart().date(); |
211 | globalFlagBlockAgenda = 1; | 211 | globalFlagBlockAgenda = 1; |
212 | emit showAgendaView( false ); | 212 | emit showAgendaView( false ); |
213 | globalFlagBlockAgenda = 2; | 213 | globalFlagBlockAgenda = 2; |
214 | emit jumpToTime( date ); | 214 | emit jumpToTime( date ); |
215 | } | 215 | } |
216 | } | 216 | } |
217 | void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e ) | 217 | void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e ) |
218 | { | 218 | { |
219 | switch ( e->key() ) { | 219 | switch ( e->key() ) { |
220 | 220 | ||
221 | case Qt::Key_A : | 221 | case Qt::Key_A : |
222 | case Qt::Key_L : | 222 | case Qt::Key_L : |
223 | showIncidence(); | 223 | showIncidence(); |
224 | break; | 224 | break; |
225 | case Qt::Key_E : | 225 | case Qt::Key_E : |
226 | case Qt::Key_R : | 226 | case Qt::Key_R : |
227 | editIncidence(); | 227 | editIncidence(); |
228 | break; | 228 | break; |
229 | case Qt::Key_C: | 229 | case Qt::Key_C: |
230 | case Qt::Key_Escape: | ||
230 | close(); | 231 | close(); |
231 | break; | 232 | break; |
232 | case Qt::Key_I: | 233 | case Qt::Key_I: |
233 | accept(); | 234 | accept(); |
234 | break; | 235 | break; |
235 | default: | 236 | default: |
236 | break; | 237 | break; |
237 | } | 238 | } |
238 | 239 | ||
239 | } | 240 | } |