##// END OF EJS Templates
Fix axis geometry when there is no axis title...
Fix axis geometry when there is no axis title SizeHint won't include title padding when there is no title, yet updateGeometry() always assumed it was there when determining space for labels, causing truncated labels when title was missing. Also made missing/empty/hidden axis title work consistently. Now axis geometries should be updated correctly always when title text or visibility status changes. Task-number: QTRD-1903 Reviewed-by: Mika Salmela

File last commit:

r2275:95c64613f4b2
r2415:65ea14fdb747
Show More
chartelement_p.h
65 lines | 1.8 KiB | text/x-c | CLexer
/ src / chartelement_p.h
Jani Honkonen
Add license headers
r794 /****************************************************************************
**
** Copyright (C) 2012 Digia Plc
** All rights reserved.
** For any questions to Digia, please use contact form at http://qt.digia.com
**
** This file is part of the Qt Commercial Charts Add-on.
**
** $QT_BEGIN_LICENSE$
** Licensees holding valid Qt Commercial licenses may use this file in
** accordance with the Qt Commercial License Agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and Digia.
**
** If you have questions regarding the use of this file, please use
** contact form at http://qt.digia.com
** $QT_END_LICENSE$
**
****************************************************************************/
unknown
Added missing warning about private implementation
r1366 // W A R N I N G
// -------------
//
// This file is not part of the QtCommercial Chart API. It exists purely as an
// implementation detail. This header file may change from version to
// version without notice, or even be removed.
//
// We mean it.
Michal Klocek
Refactors Chart to ChartElement
r1736 #ifndef CHARTELEMENT_H
#define CHARTELEMENT_H
Michal Klocek
Add missing files from previous commit
r680
#include "qchartglobal.h"
Michal Klocek
Improves build configuration...
r996 #include <QObject>
sauimone
build error fix after merge
r682 #include <QRect>
Michal Klocek
Refactors internals...
r2273 #include <QGraphicsObject>
Michal Klocek
Add missing files from previous commit
r680
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartAnimator;
class ChartPresenter;
Michal Klocek
Refactors animation handling for xyseries
r1217 class ChartAnimation;
Michal Klocek
Refactors internals...
r2273 class ChartThemeManager;
Marek Rosa
Domains added
r2275 class AbstractDomain;
Michal Klocek
Add missing files from previous commit
r680
Michal Klocek
Refactors internals...
r2273 class ChartElement: public QGraphicsObject
Michal Klocek
Add missing files from previous commit
r680 {
Michal Klocek
Refactors internals...
r2273
Michal Klocek
Add missing files from previous commit
r680 public:
Michal Klocek
Refactors internals...
r2273 explicit ChartElement(QGraphicsItem* item = 0);
Michal Klocek
Add missing files from previous commit
r680
Jani Honkonen
more coding style fixes for src-folder...
r2104 virtual ChartAnimation *animation() const { return 0; }
Michal Klocek
Refactors internals...
r2273 virtual void setPresenter(ChartPresenter *presenter);
Jani Honkonen
more coding style fixes for src-folder...
r2104 ChartPresenter *presenter() const;
Michal Klocek
Refactors internals...
r2273 virtual void setThemeManager(ChartThemeManager *manager);
ChartThemeManager* themeManager() const;
Michal Klocek
Add missing files from previous commit
r680
private:
Jani Honkonen
more coding style fixes for src-folder...
r2104 ChartPresenter *m_presenter;
Michal Klocek
Refactors internals...
r2273 ChartThemeManager *m_themeManager;
Michal Klocek
Add missing files from previous commit
r680 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif