libqpe/libqpe-opie_1.2.1:
authorHolger Freyther <zecke@selfish.org>
Mon, 12 Sep 2005 21:23:01 +0000 (21:23 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 12 Sep 2005 21:23:01 +0000 (21:23 +0000)
    last minute backport from http://opie-bugs.oszine.de/view.php?id=1695 to
    fix the font sizes for the Date selector on displays with higher
    resolution.

packages/libqpe/libqpe-opie/0905_datebookmonth.patch [new file with mode: 0644]
packages/libqpe/libqpe-opie_1.2.1.bb

diff --git a/packages/libqpe/libqpe-opie/0905_datebookmonth.patch b/packages/libqpe/libqpe-opie/0905_datebookmonth.patch
new file mode 100644 (file)
index 0000000..7c4d5fb
--- /dev/null
@@ -0,0 +1,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() ) );
index 93b1590..6cd4368 100644 (file)
@@ -3,5 +3,6 @@ include ${PN}.inc
 TAG = "${@'v' + bb.data.getVar('PV',d,1).replace('.', '_')}" 
 
 SRC_URI = "${HANDHELDS_CVS};tag=${TAG};module=opie/library \
+        file://0905_datebookmonth.patch;patch=1;pnum=0 \
        file://fix-titleheight.patch;patch=1"