From b21e6e799521ae1d08df8b220871d28b36f8eb70 Mon Sep 17 00:00:00 2001 From: hrw Date: Tue, 19 Jul 2005 18:18:32 +0000 Subject: 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 --- (limited to 'noncore') 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 @@ -97,8 +97,9 @@ 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; @@ -133,8 +134,9 @@ 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(); -- cgit v0.9.0.2