chartvalueaxisy_p.h
62 lines
| 1.7 KiB
| text/x-c
|
CLexer
Titta Heikkala
|
r2845 | /****************************************************************************** | ||
Marek Rosa
|
r1555 | ** | ||
Titta Heikkala
|
r2845 | ** Copyright (C) 2015 The Qt Company Ltd. | ||
** Contact: http://www.qt.io/licensing/ | ||||
Marek Rosa
|
r1555 | ** | ||
Titta Heikkala
|
r2740 | ** This file is part of the Qt Charts module. | ||
Marek Rosa
|
r1555 | ** | ||
Titta Heikkala
|
r2845 | ** $QT_BEGIN_LICENSE:COMM$ | ||
Marek Rosa
|
r1555 | ** | ||
Titta Heikkala
|
r2845 | ** Commercial License Usage | ||
** Licensees holding valid commercial Qt licenses may use this file in | ||||
** accordance with the commercial license agreement provided with the | ||||
** Software or, alternatively, in accordance with the terms contained in | ||||
** a written agreement between you and The Qt Company. For licensing terms | ||||
** and conditions see http://www.qt.io/terms-conditions. For further | ||||
** information use the contact form at http://www.qt.io/contact-us. | ||||
Marek Rosa
|
r1555 | ** | ||
Titta Heikkala
|
r2845 | ** $QT_END_LICENSE$ | ||
** | ||||
******************************************************************************/ | ||||
Marek Rosa
|
r1555 | |||
// 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
|
r1555 | // implementation detail. This header file may change from version to | ||
// version without notice, or even be removed. | ||||
// | ||||
// We mean it. | ||||
Jani Honkonen
|
r1935 | #ifndef CHARTVALUEAXISY_H | ||
#define CHARTVALUEAXISY_H | ||||
Marek Rosa
|
r1555 | |||
Titta Heikkala
|
r2714 | #include <private/verticalaxis_p.h> | ||
Marek Rosa
|
r1555 | |||
Titta Heikkala
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
Marek Rosa
|
r1555 | |||
Michal Klocek
|
r2111 | class QValueAxis; | ||
Marek Rosa
|
r1555 | |||
Michal Klocek
|
r2111 | class ChartValueAxisY : public VerticalAxis | ||
Marek Rosa
|
r1555 | { | ||
Titta Heikkala
|
r2712 | Q_OBJECT | ||
Marek Rosa
|
r1555 | public: | ||
Miikka Heikkinen
|
r2483 | ChartValueAxisY(QValueAxis *axis, QGraphicsItem *item = 0); | ||
Marek Rosa
|
r1805 | ~ChartValueAxisY(); | ||
Marek Rosa
|
r1555 | |||
Jani Honkonen
|
r2104 | QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint) const; | ||
Marek Rosa
|
r1555 | protected: | ||
QVector<qreal> calculateLayout() const; | ||||
void updateGeometry(); | ||||
Michal Klocek
|
r2273 | private Q_SLOTS: | ||
void handleTickCountChanged(int tick); | ||||
Titta Heikkala
|
r2795 | void handleMinorTickCountChanged(int tick); | ||
Marek Rosa
|
r2323 | void handleLabelFormatChanged(const QString &format); | ||
Michal Klocek
|
r1698 | private: | ||
Jani Honkonen
|
r2131 | QValueAxis *m_axis; | ||
Marek Rosa
|
r1555 | }; | ||
Titta Heikkala
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
Marek Rosa
|
r1555 | |||
Jani Honkonen
|
r1935 | #endif /* CHARTVALUEAXISY_H */ | ||