chartlogvalueaxisy_p.h
61 lines
| 1.6 KiB
| text/x-c
|
CLexer
Marek Rosa
|
r2274 | /**************************************************************************** | ||
** | ||||
Titta Heikkala
|
r2776 | ** Copyright (C) 2015 The Qt Company Ltd | ||
Marek Rosa
|
r2274 | ** All rights reserved. | ||
Titta Heikkala
|
r2776 | ** For any questions to The Qt Company, please use contact form at http://qt.io | ||
Marek Rosa
|
r2274 | ** | ||
Titta Heikkala
|
r2740 | ** This file is part of the Qt Charts module. | ||
Marek Rosa
|
r2274 | ** | ||
Titta Heikkala
|
r2740 | ** Licensees holding valid commercial license for Qt may use this file in | ||
** accordance with the Qt License Agreement provided with the Software | ||||
** or, alternatively, in accordance with the terms contained in a written | ||||
Titta Heikkala
|
r2776 | ** agreement between you and The Qt Company. | ||
Marek Rosa
|
r2274 | ** | ||
** If you have questions regarding the use of this file, please use | ||||
Titta Heikkala
|
r2740 | ** contact form at http://qt.io | ||
Marek Rosa
|
r2274 | ** | ||
****************************************************************************/ | ||||
// W A R N I N G | ||||
// ------------- | ||||
// | ||||
Titta Heikkala
|
r2807 | // This file is not part of the Qt Chart API. It exists purely as an | ||
Marek Rosa
|
r2274 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
#ifndef CHARTLOGVALUEAXISY_H | ||||
#define CHARTLOGVALUEAXISY_H | ||||
Titta Heikkala
|
r2714 | #include <private/verticalaxis_p.h> | ||
Marek Rosa
|
r2274 | |||
Titta Heikkala
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
Marek Rosa
|
r2274 | |||
class QLogValueAxis; | ||||
class ChartLogValueAxisY : public VerticalAxis | ||||
{ | ||||
Marek Rosa
|
r2322 | Q_OBJECT | ||
Marek Rosa
|
r2274 | public: | ||
Miikka Heikkinen
|
r2483 | ChartLogValueAxisY(QLogValueAxis *axis, QGraphicsItem *item); | ||
Marek Rosa
|
r2274 | ~ChartLogValueAxisY(); | ||
QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const; | ||||
protected: | ||||
QVector<qreal> calculateLayout() const; | ||||
void updateGeometry(); | ||||
Marek Rosa
|
r2322 | private Q_SLOTS: | ||
void handleBaseChanged(qreal base); | ||||
Marek Rosa
|
r2323 | void handleLabelFormatChanged(const QString &format); | ||
Marek Rosa
|
r2322 | |||
Marek Rosa
|
r2274 | private: | ||
QLogValueAxis *m_axis; | ||||
}; | ||||
Titta Heikkala
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
Marek Rosa
|
r2274 | |||
#endif /* CHARTLOGVALUEAXISY_H */ | ||||