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(index: 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"
29

source code of kquickcharts/src/datasource/ChartDataSource.cpp