From 2b74c3a954389db73827ba2bf0d79b835ec569f1 Mon Sep 17 00:00:00 2001 From: hrw Date: Mon, 12 Sep 2005 21:17:18 +0000 Subject: libqpe/datebookmonth selector use too small fontsize on VGA screen. - now on =>480 screen.width it will use "default_fontsize" - 2 size on smaller screen devices behavior is not changed - close bug #1695 --- (limited to 'library') diff --git a/library/datebookmonth.cpp b/library/datebookmonth.cpp index 2616b7b..ffdf335 100644 --- a/library/datebookmonth.cpp +++ b/library/datebookmonth.cpp @@ -661,7 +661,14 @@ void DayItemMonth::paint( QPainter *p, const QColorGroup &cg, // Finally, draw the number. QFont f = p->font(); - f.setPointSize( ( f.pointSize() / 3 ) * 2 ); + if(qApp->desktop()->width() >= 480) + { + f.setPointSize( f.pointSize() - 2 ); + } + else + { + f.setPointSize( ( f.pointSize() / 3 ) * 2 ); + } p->setFont( f ); QFontMetrics fm( f ); p->drawText( 1, 1 + fm.ascent(), QString::number( day() ) ); -- cgit v0.9.0.2