@@ -34,16 +34,36 class AxisMock: public QAbstractAxisPrivate | |||||
34 | Q_OBJECT |
|
34 | Q_OBJECT | |
35 | public: |
|
35 | public: | |
36 | AxisMock(Qt::Orientation orientation):QAbstractAxisPrivate(0){ setOrientation(orientation);}; |
|
36 | AxisMock(Qt::Orientation orientation):QAbstractAxisPrivate(0){ setOrientation(orientation);}; | |
37 |
ChartAxis* createGraphics(ChartPresenter* presenter) |
|
37 | ChartAxis* createGraphics(ChartPresenter* presenter) | |
38 | void intializeDomain(Domain* domain){}; |
|
38 | { | |
39 | void setMin(const QVariant &min){} |
|
39 | Q_UNUSED(presenter); | |
|
40 | return 0; | |||
|
41 | }; | |||
|
42 | void intializeDomain(Domain* domain) | |||
|
43 | { | |||
|
44 | Q_UNUSED(domain); | |||
|
45 | }; | |||
|
46 | void setMin(const QVariant &min) | |||
|
47 | { | |||
|
48 | Q_UNUSED(min); | |||
|
49 | } | |||
40 | qreal min() { return m_min;} |
|
50 | qreal min() { return m_min;} | |
41 |
void setMax(const QVariant &max) |
|
51 | void setMax(const QVariant &max) | |
|
52 | { | |||
|
53 | Q_UNUSED(max); | |||
|
54 | } | |||
42 | qreal max() { return m_max; } |
|
55 | qreal max() { return m_max; } | |
43 |
void setRange(const QVariant &min, const QVariant &max) |
|
56 | void setRange(const QVariant &min, const QVariant &max) | |
|
57 | { | |||
|
58 | Q_UNUSED(min); | |||
|
59 | Q_UNUSED(max); | |||
|
60 | }; | |||
|
61 | ||||
|
62 | int count () const { return m_count; } | |||
44 |
|
63 | |||
45 | void handleDomainUpdated(){}; |
|
64 | void handleDomainUpdated(){}; | |
46 | public: |
|
65 | public: | |
|
66 | int m_count; | |||
47 | qreal m_min; |
|
67 | qreal m_min; | |
48 | qreal m_max; |
|
68 | qreal m_max; | |
49 | }; |
|
69 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now