blob: 7c4d5fb389eb551ac1f2ff6123d760f2872a31c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Index: datebookmonth.cpp
===================================================================
RCS file: /cvs/opie/library/datebookmonth.cpp,v
retrieving revision 1.10
diff -u -r1.10 datebookmonth.cpp
--- datebookmonth.cpp 20 Mar 2005 18:29:19 -0000 1.10
+++ datebookmonth.cpp 5 Sep 2005 19:53:47 -0000
@@ -661,7 +661,14 @@
// 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() ) );
|