-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | library/datebookmonth.cpp | 9 |
2 files changed, 19 insertions, 1 deletions
@@ -1,6 +1,17 @@ +2005-??-?? Opie 1.2.2 + + + New Features + ------------ + + + Fixed Bugs + ---------- + * #1695 - Date selector use too small fontsize on VGA screen (hrw) + 2005-09-11 Opie 1.2.1 New Features ------------ * OpieStumbler: Scans WiFi networks using the wireless extension scanning (skyhusker) diff --git a/library/datebookmonth.cpp b/library/datebookmonth.cpp index 2616b7b..ffdf335 100644 --- a/library/datebookmonth.cpp +++ b/library/datebookmonth.cpp @@ -658,13 +658,20 @@ void DayItemMonth::paint( QPainter *p, const QColorGroup &cg, p->fillRect(x1, y, x2 - x1, h, colorRepeat); } // 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() ) ); p->restore(); } |