From f4c3a3e3da57e957b920fe4662c6decd6764f0ee Mon Sep 17 00:00:00 2001 From: zautrix Date: Fri, 04 Feb 2005 17:45:57 +0000 Subject: fixxx --- (limited to 'korganizer/komonthview.cpp') diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index daa37fd..dfa89e2 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -614,9 +614,18 @@ void MonthViewCell::updateCell() //qApp->processEvents(); } -void MonthViewCell::updateConfig() +void MonthViewCell::updateConfig( bool bigFont ) // = false { - setFont( KOPrefs::instance()->mMonthViewFont ); + + if ( bigFont ) { + QFont fo = KOPrefs::instance()->mMonthViewFont; + int ps = fo.pointSize() + 2; + if ( ps < 18 ) + ps += 2; + fo.setPointSize( ps ); + setFont( fo ); + } else + setFont( KOPrefs::instance()->mMonthViewFont ); QFontMetrics fm( font() ); mLabelSize = fm.size( 0, "30" ) + QSize( 4, 2 ); @@ -869,6 +878,7 @@ KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) SIGNAL( newEventSignal( QDateTime ) ) ); connect( cell, SIGNAL( showDaySignal( QDate ) ), SIGNAL( showDaySignal( QDate ) ) ); + cell->updateConfig(KOPrefs::instance()->mMonthViewUsesBigFont ); } //connect( mWeekLabels[mNumWeeks], SIGNAL( clicked() ), SLOT( switchView() ) ); @@ -992,6 +1002,10 @@ void KOMonthView::updateConfig() for (uint i = 0; i < mCells.count(); ++i) { mCells[i]->updateConfig(); } + + for (uint i = 0; i < mCellsW.count(); ++i) { + mCellsW[i]->updateConfig(KOPrefs::instance()->mMonthViewUsesBigFont); + } #ifdef DESKTOP_VERSION MonthViewCell::toolTipGroup()->setEnabled(KOPrefs::instance()->mEnableToolTips); #endif -- cgit v0.9.0.2