author | hrw <hrw> | 2005-07-19 18:18:32 (UTC) |
---|---|---|
committer | hrw <hrw> | 2005-07-19 18:18:32 (UTC) |
commit | b21e6e799521ae1d08df8b220871d28b36f8eb70 (patch) (side-by-side diff) | |
tree | 0af6177698a4cea83ea96d28d6587a87e790b42b | |
parent | 1bcae8d1a0964632f379cb1e5cd066fd2b736e0f (diff) | |
download | opie-b21e6e799521ae1d08df8b220871d28b36f8eb70.zip opie-b21e6e799521ae1d08df8b220871d28b36f8eb70.tar.gz opie-b21e6e799521ae1d08df8b220871d28b36f8eb70.tar.bz2 |
removed hardcoded font size from graphs - now it's 1 smaller then default one
it would be nice to get _pCfg->getUseSmallFont here like it is done for lists
-rw-r--r-- | noncore/apps/checkbook/graph.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/checkbook/graph.cpp b/noncore/apps/checkbook/graph.cpp index 72da738..279285a 100644 --- a/noncore/apps/checkbook/graph.cpp +++ b/noncore/apps/checkbook/graph.cpp @@ -92,18 +92,19 @@ void Graph::initGraph() }; } void Graph::drawBarChart( int width, int height, float max, float min ) { QPainter p( &graph ); // Try to set the font size smaller for text + // it would be nice to get _pCfg->getUseSmallFont here QFont f = font(); - f.setPointSize( 8 ); + f.setPointSize( f.pointSize()-1 ); p.setFont( f ); int x = 0; int i = 0; int n = data->numberDataPoints(); QFontMetrics fm=fontMetrics(); int fh = fm.height(); int fw; @@ -128,18 +129,19 @@ void Graph::drawBarChart( int width, int height, float max, float min ) } } void Graph::drawPieChart( int width, int height, float sum ) { QPainter p( &graph ); // Try to set the font size smaller for text + // it would be nice to get _pCfg->getUseSmallFont here QFont f = font(); - f.setPointSize( 8 ); + f.setPointSize( f.pointSize()-1 ); p.setFont( f ); int n = data->numberDataPoints(); int apos = -90 * 16; int xd = width - width / 5; int yd = height - height / 5; |