Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Tero Ahola
- Wed, 07 Mar 2012 13:04:36
Show More
0
examples/examples.pro
examples/examples.pro
+2
-1
@@
-18,4
+18,5
SUBDIRS += linechart \
18
scatterinteractions \
18
scatterinteractions \
19
splinechart \
19
splinechart \
20
areachart \
20
areachart \
21
stackedbarchartdrilldown
21
stackedbarchartdrilldown \
22
customcolors
0
src/chartpresenter_p.h
src/chartpresenter_p.h
+2
-1
@@
-26,7
+26,8
public:
26
GridZValue ,
26
GridZValue ,
27
AxisZValue ,
27
AxisZValue ,
28
LineChartZValue ,
28
LineChartZValue ,
29
ScatterSeriesZValue
29
ScatterSeriesZValue ,
30
PieSeriesZValue
30
};
31
};
31
32
32
ChartPresenter ( QChart * chart , ChartDataSet * dataset );
33
ChartPresenter ( QChart * chart , ChartDataSet * dataset );
0
src/piechart/piepresenter.cpp
src/piechart/piepresenter.cpp
+4
0
@@
-2,6
+2,7
2
#include "pieslice_p.h"
2
#include "pieslice_p.h"
3
#include "qpieslice.h"
3
#include "qpieslice.h"
4
#include "qpieseries.h"
4
#include "qpieseries.h"
5
#include "chartpresenter_p.h"
5
#include <QDebug>
6
#include <QDebug>
6
#include <QPainter>
7
#include <QPainter>
7
8
@@
-22,6
+23,9
PiePresenter::PiePresenter(QGraphicsItem *parent, QPieSeries *series)
22
changeSet . appendAdded ( m_series -> m_slices );
23
changeSet . appendAdded ( m_series -> m_slices );
23
handleSeriesChanged ( changeSet );
24
handleSeriesChanged ( changeSet );
24
}
25
}
26
27
// Note: the following does not affect as long as the item does not have anything to paint
28
setZValue ( ChartPresenter :: PieSeriesZValue );
25
}
29
}
26
30
27
PiePresenter ::~ PiePresenter ()
31
PiePresenter ::~ PiePresenter ()
0
src/piechart/pieslice.cpp
src/piechart/pieslice.cpp
+2
0
@@
-2,6
+2,7
2
#include "piepresenter_p.h"
2
#include "piepresenter_p.h"
3
#include "qpieseries.h"
3
#include "qpieseries.h"
4
#include "qpieslice.h"
4
#include "qpieslice.h"
5
#include "chartpresenter_p.h"
5
#include <QPainter>
6
#include <QPainter>
6
#include <QDebug>
7
#include <QDebug>
7
#include <qmath.h>
8
#include <qmath.h>
@@
-31,6
+32,7
PieSlice::PieSlice(QGraphicsItem* parent)
31
{
32
{
32
setAcceptHoverEvents ( true );
33
setAcceptHoverEvents ( true );
33
setAcceptedMouseButtons ( Qt :: LeftButton );
34
setAcceptedMouseButtons ( Qt :: LeftButton );
35
setZValue ( ChartPresenter :: PieSeriesZValue );
34
}
36
}
35
37
36
PieSlice ::~ PieSlice ()
38
PieSlice ::~ PieSlice ()
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages