##// END OF EJS Templates
Added possibility to set labels position for QCategoryAxis...
Added possibility to set labels position for QCategoryAxis The position of the labels in QCategyAxis can now be set to center of the category or to the high end of the category. The first and the last labels may overlap with other axes labels when positioned on value. Change-Id: Ide0f12b723ffabf6682001e03ea5080f9642da22 Task-number: QTRD-1715 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2776:bc1f6aa59d42
r2780:740f4f94adf8
Show More
horizontalaxis_p.h
48 lines | 1.4 KiB | text/x-c | CLexer
/ src / charts / axis / horizontalaxis_p.h
Michal Klocek
Refactors axis updateGeometry handling...
r2111 /****************************************************************************
**
Titta Heikkala
Copyright header changes...
r2776 ** Copyright (C) 2015 The Qt Company Ltd
Michal Klocek
Refactors axis updateGeometry handling...
r2111 ** All rights reserved.
Titta Heikkala
Copyright header changes...
r2776 ** For any questions to The Qt Company, please use contact form at http://qt.io
Michal Klocek
Refactors axis updateGeometry handling...
r2111 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
Michal Klocek
Refactors axis updateGeometry handling...
r2111 **
Titta Heikkala
Updated license headers...
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
Copyright header changes...
r2776 ** agreement between you and The Qt Company.
Michal Klocek
Refactors axis updateGeometry handling...
r2111 **
** If you have questions regarding the use of this file, please use
Titta Heikkala
Updated license headers...
r2740 ** contact form at http://qt.io
Michal Klocek
Refactors axis updateGeometry handling...
r2111 **
****************************************************************************/
// W A R N I N G
// -------------
//
Miikka Heikkinen
Qt Commercial -> Qt Enterprise...
r2574 // This file is not part of the Qt Enterprise Chart API. It exists purely as an
Michal Klocek
Refactors axis updateGeometry handling...
r2111 // implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
#ifndef HORIZONTALAXIS_P_H_
#define HORIZONTALAXIS_P_H_
Titta Heikkala
Fix include syntax...
r2714 #include <private/cartesianchartaxis_p.h>
Michal Klocek
Refactors axis updateGeometry handling...
r2111
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
Michal Klocek
Refactors axis updateGeometry handling...
r2111
Miikka Heikkinen
Add Polar chart support...
r2483 class HorizontalAxis : public CartesianChartAxis
Michal Klocek
Refactors axis updateGeometry handling...
r2111 {
public:
Miikka Heikkinen
Add Polar chart support...
r2483 HorizontalAxis(QAbstractAxis *axis, QGraphicsItem *item = 0, bool intervalAxis = false);
Michal Klocek
Refactors axis updateGeometry handling...
r2111 ~HorizontalAxis();
Michal Klocek
Refactors ChartAxis...
r2138 QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint = QSizeF()) const;
Michal Klocek
Refactors axis updateGeometry handling...
r2111 protected:
void updateGeometry();
};
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE
Michal Klocek
Refactors axis updateGeometry handling...
r2111
#endif