KQuickCharts

ChartDataSource.cpp
1/*
2 * This file is part of KQuickCharts
3 * SPDX-FileCopyrightText: 2019 Arjen Hiemstra <ahiemstra@heimr.nl>
4 *
5 * SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6 */
7
8#include "ChartDataSource.h"
9
10#include <QColor>
11#include <QVariant>
12
13ChartDataSource::ChartDataSource(QObject *parent)
14 : QObject(parent)
15{
16}
17
18QVariant ChartDataSource::first() const
19{
20 return item(0);
21}
22
23bool ChartDataSource::variantCompare(const QVariant &lhs, const QVariant &rhs)
24{
25 return QVariant::compare(lhs, rhs) == QPartialOrdering::Less;
26}
27
28#include "moc_ChartDataSource.cpp"
QPartialOrdering compare(const QVariant &lhs, const QVariant &rhs)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:03:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.