author | zautrix <zautrix> | 2005-07-03 07:33:48 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-03 07:33:48 (UTC) |
commit | 914c795a77d8bb28fc8c2155cfc9524f3effdde1 (patch) (unidiff) | |
tree | 25f8bb908b4afd982a874fc890c5e3ae75fe6d6d | |
parent | 3e2908a91251482d91404464aaf98ce902a319ce (diff) | |
download | kdepimpi-914c795a77d8bb28fc8c2155cfc9524f3effdde1.zip kdepimpi-914c795a77d8bb28fc8c2155cfc9524f3effdde1.tar.gz kdepimpi-914c795a77d8bb28fc8c2155cfc9524f3effdde1.tar.bz2 |
slider fix
-rw-r--r-- | korganizer/calendarview.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 6746de2..a10e93c 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -2621,27 +2621,32 @@ void CalendarView::changeEventDisplay(Event *which, int action) | |||
2621 | 2621 | ||
2622 | void CalendarView::updateTodoViews() | 2622 | void CalendarView::updateTodoViews() |
2623 | { | 2623 | { |
2624 | mTodoList->updateView(); | 2624 | mTodoList->updateView(); |
2625 | mViewManager->currentView()->updateView(); | 2625 | mViewManager->currentView()->updateView(); |
2626 | 2626 | ||
2627 | } | 2627 | } |
2628 | 2628 | ||
2629 | 2629 | ||
2630 | void CalendarView::updateView(const QDate &start, const QDate &end) | 2630 | void CalendarView::updateView(const QDate &start, const QDate &end) |
2631 | { | 2631 | { |
2632 | #ifdef DESKTOP_VERSION | 2632 | #ifdef DESKTOP_VERSION |
2633 | if ( ! mDateScrollBar->draggingSlider () ) { | ||
2634 | int dof = start.dayOfYear()-1; | ||
2635 | if ( dof != mDateScrollBar->value() ) { | ||
2633 | mDateScrollBar->blockSignals( true ); | 2636 | mDateScrollBar->blockSignals( true ); |
2634 | mDateScrollBar->setValue( start.dayOfYear()-1); | 2637 | mDateScrollBar->setValue( start.dayOfYear()-1); |
2635 | mDateScrollBar->blockSignals( false ); | 2638 | mDateScrollBar->blockSignals( false ); |
2639 | } | ||
2640 | } | ||
2636 | #endif | 2641 | #endif |
2637 | mTodoList->updateView(); | 2642 | mTodoList->updateView(); |
2638 | mViewManager->updateView(start, end); | 2643 | mViewManager->updateView(start, end); |
2639 | //mDateNavigator->updateView(); | 2644 | //mDateNavigator->updateView(); |
2640 | } | 2645 | } |
2641 | 2646 | ||
2642 | void CalendarView::clearAllViews() | 2647 | void CalendarView::clearAllViews() |
2643 | { | 2648 | { |
2644 | mTodoList->clearList(); | 2649 | mTodoList->clearList(); |
2645 | mViewManager->clearAllViews(); | 2650 | mViewManager->clearAllViews(); |
2646 | SearchDialog * sd = mDialogManager->getSearchDialog(); | 2651 | SearchDialog * sd = mDialogManager->getSearchDialog(); |
2647 | if ( sd ) { | 2652 | if ( sd ) { |