From 9ecfd0660e36b6b8dd7401f0edb16dd3d6f03289 Mon Sep 17 00:00:00 2001 From: zautrix Date: Tue, 01 Feb 2005 23:46:24 +0000 Subject: text --- (limited to 'korganizer/komonthview.cpp') diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 9888566..6294b98 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -690,11 +690,7 @@ void MonthViewCell::resizeEvent ( QResizeEvent * ) { if ( !mMonthView->isUpdatePossible() ) return; -#ifndef DESKTOP_VERSION - if ( !isVisible() ){ - return; - } -#endif + int size = height() - mLabel->height() - 2; if ( size > 0 ) mItemList->verticalScrollBar()->setMaximumHeight( size ); @@ -841,6 +837,8 @@ KOMonthView::~KOMonthView() } void KOMonthView::switchView() { + if ( selectedCell( ) ) + selectedCell()->deselect(); mShowWeekView = !mShowWeekView; KOPrefs::instance()->mMonthViewWeek = mShowWeekView; emit showNavigator( !mShowWeekView ); @@ -1159,11 +1157,12 @@ void KOMonthView::computeLayoutWeek() if ( i && !( i % daysToShow) && i < 6) { y += hei/(5-daysToShow); x = 0; + w = colWid; } if ( i == daysToShow-colModulo ) ++w; if ( i >= 5 ) { - mDayLabels[i]->setGeometry( x+weeklabelwid,y,w/2,h); + mDayLabels[i]->setGeometry( x+weeklabelwid,y,w/2+1,h); x -= w/2 ; } else -- cgit v0.9.0.2