chartelement.cpp
77 lines
| 1.8 KiB
| text/x-c
|
CppLexer
/ src / chartelement.cpp
Jani Honkonen
|
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$ | ||||
** | ||||
****************************************************************************/ | ||||
Michal Klocek
|
r1736 | #include "chartelement_p.h" | ||
Michal Klocek
|
r680 | #include "chartpresenter_p.h" | ||
Michal Klocek
|
r1217 | #include "domain_p.h" | ||
Michal Klocek
|
r680 | |||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
Jani Honkonen
|
r2097 | ChartElement::ChartElement(ChartPresenter *presenter) | ||
: QObject(presenter), | ||||
m_presenter(presenter), | ||||
m_domain(0) | ||||
Michal Klocek
|
r680 | { | ||
Tero Ahola
|
r760 | } | ||
Michal Klocek
|
r680 | |||
Michal Klocek
|
r1736 | void ChartElement::setPresenter(ChartPresenter *presenter) | ||
Michal Klocek
|
r1217 | { | ||
Jani Honkonen
|
r2097 | m_presenter = presenter; | ||
Michal Klocek
|
r1217 | } | ||
Michal Klocek
|
r1736 | ChartPresenter* ChartElement::presenter() const | ||
Michal Klocek
|
r680 | { | ||
return m_presenter; | ||||
} | ||||
Michal Klocek
|
r1736 | void ChartElement::setDomain(Domain *domain) | ||
Michal Klocek
|
r1217 | { | ||
Jani Honkonen
|
r2097 | m_domain = domain; | ||
Michal Klocek
|
r1217 | } | ||
Michal Klocek
|
r1736 | Domain* ChartElement::domain() const | ||
Michal Klocek
|
r1217 | { | ||
return m_domain; | ||||
} | ||||
Michal Klocek
|
r1736 | void ChartElement::handleGeometryChanged(const QRectF& rect) | ||
Michal Klocek
|
r680 | { | ||
Q_UNUSED(rect); | ||||
Jani Honkonen
|
r2097 | qWarning() << "Slot not implemented"; | ||
Michal Klocek
|
r680 | } | ||
Jani Honkonen
|
r2097 | void ChartElement::handleDomainChanged(qreal minX, qreal maxX, qreal minY, qreal maxY) | ||
Michal Klocek
|
r680 | { | ||
Q_UNUSED(minX); | ||||
Q_UNUSED(maxX); | ||||
Q_UNUSED(minY); | ||||
Q_UNUSED(maxY); | ||||
Jani Honkonen
|
r2097 | qWarning() << "Slot not implemented"; | ||
Michal Klocek
|
r680 | } | ||
Michal Klocek
|
r1736 | void ChartElement::handleDomainUpdated() | ||
Michal Klocek
|
r1698 | { | ||
Jani Honkonen
|
r2097 | qWarning() << "Slot not implemented"; | ||
Michal Klocek
|
r1698 | } | ||
Michal Klocek
|
r1736 | #include "moc_chartelement_p.cpp" | ||
Michal Klocek
|
r680 | |||
QTCOMMERCIALCHART_END_NAMESPACE | ||||