author | drw <drw> | 2002-12-04 02:12:25 (UTC) |
---|---|---|
committer | drw <drw> | 2002-12-04 02:12:25 (UTC) |
commit | d000538b68b3411a409e829c4e68f42f9646b940 (patch) (unidiff) | |
tree | 72abee0785a595ef9d5edf9ecd20743a9ff16559 /noncore/apps/checkbook/graph.cpp | |
parent | 9b23bf789c15bcc84dabc400f16fa38ff3a34ebd (diff) | |
download | opie-d000538b68b3411a409e829c4e68f42f9646b940.zip opie-d000538b68b3411a409e829c4e68f42f9646b940.tar.gz opie-d000538b68b3411a409e829c4e68f42f9646b940.tar.bz2 |
Abstracted checkbook storage, added new main window display/configuration options.
Diffstat (limited to 'noncore/apps/checkbook/graph.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/checkbook/graph.cpp | 9 |
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 | ||
135 | void Graph::drawLineChart( int width, int height, float max ) | ||
136 | { | ||
137 | } | ||
138 | |||
139 | void Graph::drawPieChart( int width, int height, float sum ) | 130 | void 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(); |