-rw-r--r-- | korganizer/kodaymatrix.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/korganizer/kodaymatrix.cpp b/korganizer/kodaymatrix.cpp index dfc6af7..c55f7d7 100644 --- a/korganizer/kodaymatrix.cpp +++ b/korganizer/kodaymatrix.cpp @@ -290,3 +290,4 @@ void KODayMatrix::addSelectedDaysTo(DateList& selDays) bool KODayMatrix::setSelectedDaysFrom(const QDate& start, const QDate& end) -{ +{ + mRedrawNeeded = true; bool noSel = (mSelEnd == NOSELECTION && mSelStart == NOSELECTION ); @@ -512,3 +513,4 @@ void KODayMatrix::mousePressEvent (QMouseEvent* e) mSelInit = mSelStart; - mSelEnd = mSelStart; + mSelEnd = mSelStart; + mRedrawNeeded = true; repaint(false); @@ -518,2 +520,3 @@ void KODayMatrix::mouseReleaseEvent (QMouseEvent* e) { + mRedrawNeeded = true; if ( e->button() == LeftButton ) @@ -558,2 +561,3 @@ void KODayMatrix::mouseMoveEvent (QMouseEvent* e) } + mRedrawNeeded = true; int tmp = getDayIndexFrom(e->x(), e->y()); |