author | hrw <hrw> | 2005-09-12 21:17:18 (UTC) |
---|---|---|
committer | hrw <hrw> | 2005-09-12 21:17:18 (UTC) |
commit | 2b74c3a954389db73827ba2bf0d79b835ec569f1 (patch) (side-by-side diff) | |
tree | 3d0268c50d01836aea555803ed4f98538881eafe | |
parent | c94b0601f73dabfb65525b263222d0ccdbd1544c (diff) | |
download | opie-2b74c3a954389db73827ba2bf0d79b835ec569f1.zip opie-2b74c3a954389db73827ba2bf0d79b835ec569f1.tar.gz opie-2b74c3a954389db73827ba2bf0d79b835ec569f1.tar.bz2 |
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
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | library/datebookmonth.cpp | 7 |
2 files changed, 18 insertions, 0 deletions
@@ -1,3 +1,14 @@ +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 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(); + 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() ) ); |