author | zautrix <zautrix> | 2005-01-31 08:46:08 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-31 08:46:08 (UTC) |
commit | 9b13105b4cc0ede4ca2d01a3d998fdb90bf67b58 (patch) (unidiff) | |
tree | db736dd6d3615d46db1bf1d32965a5872d3cc0d4 /korganizer/kodaymatrix.cpp | |
parent | f7663a4c854d217bcb4f828a3ebb69cc40d0dd7c (diff) | |
download | kdepimpi-9b13105b4cc0ede4ca2d01a3d998fdb90bf67b58.zip kdepimpi-9b13105b4cc0ede4ca2d01a3d998fdb90bf67b58.tar.gz kdepimpi-9b13105b4cc0ede4ca2d01a3d998fdb90bf67b58.tar.bz2 |
fix
-rw-r--r-- | korganizer/kodaymatrix.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp index be5a775..9812321 100644 --- a/korganizer/kodaymatrix.cpp +++ b/korganizer/kodaymatrix.cpp | |||
@@ -279,36 +279,37 @@ void KODayMatrix::updateView(QDate actdate) | |||
279 | // nested if is required for next X display pushed from a different month - correction required | 279 | // nested if is required for next X display pushed from a different month - correction required |
280 | // otherwise, for month forward and backward, it must be avoided | 280 | // otherwise, for month forward and backward, it must be avoided |
281 | if( mSelStart > NUMDAYS || mSelStart < 0 ) | 281 | if( mSelStart > NUMDAYS || mSelStart < 0 ) |
282 | mSelStart = mSelStart + tmp; | 282 | mSelStart = mSelStart + tmp; |
283 | if( mSelEnd > NUMDAYS || mSelEnd < 0 ) | 283 | if( mSelEnd > NUMDAYS || mSelEnd < 0 ) |
284 | mSelEnd = mSelEnd + tmp; | 284 | mSelEnd = mSelEnd + tmp; |
285 | } | 285 | } |
286 | } | 286 | } |
287 | startdate = actdate; | 287 | startdate = actdate; |
288 | mDayChanged = true; | 288 | mDayChanged = true; |
289 | recalculateToday(); | 289 | recalculateToday(); |
290 | } | 290 | } |
291 | //qDebug("restart Timer %d vis: %d", mDayChanged, isVisible() ); | 291 | //qDebug("restart Timer %d vis: %d", mDayChanged, isVisible() ); |
292 | if ( !isVisible() ) { | 292 | if ( !isVisible() ) { |
293 | mPendingUpdateBeforeRepaint = true; | 293 | mPendingUpdateBeforeRepaint = true; |
294 | } else { | 294 | } else { |
295 | mRepaintTimer->start( 250 ); | ||
296 | #ifdef DESKTOP_VERSION | 295 | #ifdef DESKTOP_VERSION |
296 | mRepaintTimer->start( 250 ); | ||
297 | mUpdateTimer->start( 2000 ); | 297 | mUpdateTimer->start( 2000 ); |
298 | #else | 298 | #else |
299 | mRepaintTimer->start( 350 ); | ||
299 | mUpdateTimer->start( 4000 ); | 300 | mUpdateTimer->start( 4000 ); |
300 | #endif | 301 | #endif |
301 | } | 302 | } |
302 | } | 303 | } |
303 | 304 | ||
304 | const QDate& KODayMatrix::getDate(int offset) | 305 | const QDate& KODayMatrix::getDate(int offset) |
305 | { | 306 | { |
306 | if (offset < 0 || offset > NUMDAYS-1) { | 307 | if (offset < 0 || offset > NUMDAYS-1) { |
307 | qDebug("Wrong offset2 "); | 308 | qDebug("Wrong offset2 "); |
308 | return days[0]; | 309 | return days[0]; |
309 | } | 310 | } |
310 | return days[offset]; | 311 | return days[offset]; |
311 | } | 312 | } |
312 | 313 | ||
313 | QString KODayMatrix::getHolidayLabel(int offset) | 314 | QString KODayMatrix::getHolidayLabel(int offset) |
314 | { | 315 | { |