@@ -34,6 +34,7 ChartDateTimeAxisX::ChartDateTimeAxisX(QDateTimeAxis *axis, QGraphicsItem* item) | |||
|
34 | 34 | m_axis(axis) |
|
35 | 35 | { |
|
36 | 36 | QObject::connect(m_axis,SIGNAL(tickCountChanged(int)),this, SLOT(handleTickCountChanged(int))); |
|
37 | QObject::connect(m_axis,SIGNAL(formatChanged(QString)),this, SLOT(handleFormatChanged(QString))); | |
|
37 | 38 | } |
|
38 | 39 | |
|
39 | 40 | ChartDateTimeAxisX::~ChartDateTimeAxisX() |
@@ -72,6 +73,12 void ChartDateTimeAxisX::handleTickCountChanged(int tick) | |||
|
72 | 73 | if(presenter()) presenter()->layout()->invalidate(); |
|
73 | 74 | } |
|
74 | 75 | |
|
76 | void ChartDateTimeAxisX::handleFormatChanged(const QString &format) | |
|
77 | { | |
|
78 | Q_UNUSED(format); | |
|
79 | if(presenter()) presenter()->layout()->invalidate(); | |
|
80 | } | |
|
81 | ||
|
75 | 82 | QSizeF ChartDateTimeAxisX::sizeHint(Qt::SizeHint which, const QSizeF &constraint) const |
|
76 | 83 | { |
|
77 | 84 | Q_UNUSED(constraint) |
@@ -50,6 +50,7 protected: | |||
|
50 | 50 | void updateGeometry(); |
|
51 | 51 | private Q_SLOTS: |
|
52 | 52 | void handleTickCountChanged(int tick); |
|
53 | void handleFormatChanged(const QString &format); | |
|
53 | 54 | |
|
54 | 55 | private: |
|
55 | 56 | QDateTimeAxis *m_axis; |
@@ -34,6 +34,7 ChartDateTimeAxisY::ChartDateTimeAxisY(QDateTimeAxis *axis, QGraphicsItem* item) | |||
|
34 | 34 | m_axis(axis) |
|
35 | 35 | { |
|
36 | 36 | QObject::connect(m_axis,SIGNAL(tickCountChanged(int)),this, SLOT(handleTickCountChanged(int))); |
|
37 | QObject::connect(m_axis,SIGNAL(formatChanged(QString)),this, SLOT(handleFormatChanged(QString))); | |
|
37 | 38 | } |
|
38 | 39 | |
|
39 | 40 | ChartDateTimeAxisY::~ChartDateTimeAxisY() |
@@ -73,6 +74,12 void ChartDateTimeAxisY::handleTickCountChanged(int tick) | |||
|
73 | 74 | if(presenter()) presenter()->layout()->invalidate(); |
|
74 | 75 | } |
|
75 | 76 | |
|
77 | void ChartDateTimeAxisY::handleFormatChanged(const QString &format) | |
|
78 | { | |
|
79 | Q_UNUSED(format); | |
|
80 | if(presenter()) presenter()->layout()->invalidate(); | |
|
81 | } | |
|
82 | ||
|
76 | 83 | QSizeF ChartDateTimeAxisY::sizeHint(Qt::SizeHint which, const QSizeF &constraint) const |
|
77 | 84 | { |
|
78 | 85 | Q_UNUSED(constraint) |
General Comments 0
You need to be logged in to leave comments.
Login now