-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 | |||
@@ -96,10 +96,11 @@ void Graph::drawBarChart( int width, int height, float max, float min ) | |||
96 | { | 96 | { |
97 | QPainter p( &graph ); | 97 | QPainter p( &graph ); |
98 | 98 | ||
99 | // Try to set the font size smaller for text | 99 | // Try to set the font size smaller for text |
100 | // it would be nice to get _pCfg->getUseSmallFont here | ||
100 | QFont f = font(); | 101 | QFont f = font(); |
101 | f.setPointSize( 8 ); | 102 | f.setPointSize( f.pointSize()-1 ); |
102 | p.setFont( f ); | 103 | p.setFont( f ); |
103 | 104 | ||
104 | int x = 0; | 105 | int x = 0; |
105 | int i = 0; | 106 | int i = 0; |
@@ -132,10 +133,11 @@ void Graph::drawPieChart( int width, int height, float sum ) | |||
132 | { | 133 | { |
133 | QPainter p( &graph ); | 134 | QPainter p( &graph ); |
134 | 135 | ||
135 | // Try to set the font size smaller for text | 136 | // Try to set the font size smaller for text |
137 | // it would be nice to get _pCfg->getUseSmallFont here | ||
136 | QFont f = font(); | 138 | QFont f = font(); |
137 | f.setPointSize( 8 ); | 139 | f.setPointSize( f.pointSize()-1 ); |
138 | p.setFont( f ); | 140 | p.setFont( f ); |
139 | 141 | ||
140 | int n = data->numberDataPoints(); | 142 | int n = data->numberDataPoints(); |
141 | 143 | ||