##// END OF EJS Templates
Make public headers compile with -Wzero-as-null-pointer-constant...
Make public headers compile with -Wzero-as-null-pointer-constant ... or equivalent. QtBase 5.6 headers already compile that way, so let the other modules follow suit. Change-Id: I79c74046eaf224235cc80a4323fefd2c083b007f Task-number: QTBUG-45291 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>

File last commit:

r2845:ae12522d475c
r2871:cf15f38aab8d
Show More
chartitem.cpp
62 lines | 1.6 KiB | text/x-c | CppLexer
Titta Heikkala
Updated license headers...
r2845 /******************************************************************************
Michal Klocek
Refactors internals...
r2273 **
Titta Heikkala
Updated license headers...
r2845 ** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
Michal Klocek
Refactors internals...
r2273 **
Titta Heikkala
Updated license headers...
r2740 ** This file is part of the Qt Charts module.
Michal Klocek
Refactors internals...
r2273 **
Titta Heikkala
Updated license headers...
r2845 ** $QT_BEGIN_LICENSE:COMM$
Michal Klocek
Refactors internals...
r2273 **
Titta Heikkala
Updated license headers...
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.
Michal Klocek
Refactors internals...
r2273 **
Titta Heikkala
Updated license headers...
r2845 ** $QT_END_LICENSE$
**
******************************************************************************/
Michal Klocek
Refactors internals...
r2273
Titta Heikkala
Fix include syntax...
r2714 #include <private/chartitem_p.h>
#include <private/qabstractseries_p.h>
#include <private/abstractdomain_p.h>
Miikka Heikkinen
Fix issues based on android testing...
r2826 #include <QtGui/QPainter>
Michal Klocek
Refactors internals...
r2273
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_BEGIN_NAMESPACE
Michal Klocek
Refactors internals...
r2273
ChartItem::ChartItem(QAbstractSeriesPrivate *series,QGraphicsItem* item):
ChartElement(item),
Marek Rosa
Negative values with log axis handled
r2356 m_validData(true),
Michal Klocek
Refactors internals...
r2273 m_series(series)
{
}
Michal Klocek
Domain not sharable again
r2285 AbstractDomain* ChartItem::domain() const
Michal Klocek
Refactors internals...
r2273 {
return m_series->domain();
}
void ChartItem::handleDomainUpdated()
{
qWarning() << __FUNCTION__<< "Slot not implemented";
}
Titta Heikkala
Add possibility to set reverse values to axes...
r2781 void ChartItem::reversePainter(QPainter *painter, const QRectF &clipRect)
{
if (m_series->reverseXAxis()) {
painter->translate(clipRect.width(), 0);
painter->scale(-1, 1);
}
if (m_series->reverseYAxis()) {
painter->translate(0, clipRect.height());
painter->scale(1, -1);
}
}
Michal Klocek
Refactors internals...
r2273 #include "moc_chartitem_p.cpp"
Titta Heikkala
Qt Charts project file structure change...
r2712 QT_CHARTS_END_NAMESPACE