From 6418fc60db8a058f106f0efcc3a1bc79274387e7 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Mon, 12 Sep 2005 21:23:01 +0000 Subject: [PATCH] libqpe/libqpe-opie_1.2.1: 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. --- .../libqpe-opie/0905_datebookmonth.patch | 23 +++++++++++++++++++ packages/libqpe/libqpe-opie_1.2.1.bb | 1 + 2 files changed, 24 insertions(+) create mode 100644 packages/libqpe/libqpe-opie/0905_datebookmonth.patch diff --git a/packages/libqpe/libqpe-opie/0905_datebookmonth.patch b/packages/libqpe/libqpe-opie/0905_datebookmonth.patch new file mode 100644 index 0000000000..7c4d5fb389 --- /dev/null +++ b/packages/libqpe/libqpe-opie/0905_datebookmonth.patch @@ -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() ) ); diff --git a/packages/libqpe/libqpe-opie_1.2.1.bb b/packages/libqpe/libqpe-opie_1.2.1.bb index 93b1590bba..6cd4368187 100644 --- a/packages/libqpe/libqpe-opie_1.2.1.bb +++ b/packages/libqpe/libqpe-opie_1.2.1.bb @@ -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" -- 2.39.5