]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libqpe/libqpe-opie/0905_datebookmonth.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libqpe / libqpe-opie / 0905_datebookmonth.patch
1 Index: datebookmonth.cpp
2 ===================================================================
3 RCS file: /cvs/opie/library/datebookmonth.cpp,v
4 retrieving revision 1.10
5 diff -u -r1.10 datebookmonth.cpp
6 --- datebookmonth.cpp   20 Mar 2005 18:29:19 -0000      1.10
7 +++ datebookmonth.cpp   5 Sep 2005 19:53:47 -0000
8 @@ -661,7 +661,14 @@
9  
10      // Finally, draw the number.
11      QFont f = p->font();
12 -    f.setPointSize( ( f.pointSize() / 3 ) * 2 );
13 +    if(qApp->desktop()->width() >= 480)
14 +    {
15 +       f.setPointSize( f.pointSize() - 2 );
16 +    }
17 +    else
18 +    {
19 +       f.setPointSize( ( f.pointSize() / 3 ) * 2 );
20 +    }
21      p->setFont( f );
22      QFontMetrics fm( f );
23      p->drawText( 1, 1 + fm.ascent(), QString::number( day() ) );