summaryrefslogtreecommitdiff
path: root/noncore/apps/checkbook/graph.cpp
Unidiff
Diffstat (limited to 'noncore/apps/checkbook/graph.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/checkbook/graph.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/noncore/apps/checkbook/graph.cpp b/noncore/apps/checkbook/graph.cpp
index 8ae835c..acdb846 100644
--- a/noncore/apps/checkbook/graph.cpp
+++ b/noncore/apps/checkbook/graph.cpp
@@ -84,17 +84,12 @@ void Graph::initGraph()
84 { 84 {
85 case GraphInfo::BarChart : 85 case GraphInfo::BarChart :
86 { 86 {
87 drawBarChart( width(), height(), data->maxValue() ); 87 drawBarChart( width(), height(), data->maxValue() );
88 } 88 }
89 break; 89 break;
90 case GraphInfo::LineChart :
91 {
92 //drawLineChart( p, s, min, max );
93 }
94 break;
95 case GraphInfo::PieChart : 90 case GraphInfo::PieChart :
96 { 91 {
97 drawPieChart( width(), height(), data->totalValue() ); 92 drawPieChart( width(), height(), data->totalValue() );
98 } 93 }
99 }; 94 };
100} 95}
@@ -129,16 +124,12 @@ void Graph::drawBarChart( int width, int height, float max )
129 // WordBreak | AlignTop | AlignHCenter, dp->label() ); 124 // WordBreak | AlignTop | AlignHCenter, dp->label() );
130 i++; 125 i++;
131 x += bw; 126 x += bw;
132 } 127 }
133} 128}
134 129
135void Graph::drawLineChart( int width, int height, float max )
136{
137}
138
139void Graph::drawPieChart( int width, int height, float sum ) 130void Graph::drawPieChart( int width, int height, float sum )
140{ 131{
141 QPainter p( &graph ); 132 QPainter p( &graph );
142 133
143 // Try to set the font size smaller for text 134 // Try to set the font size smaller for text
144 QFont f = font(); 135 QFont f = font();