-rw-r--r-- | korganizer/komonthview.cpp | 18 |
1 files changed, 16 insertions, 2 deletions
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 |