14#include <qqmlregistration.h>
16#include "quickcharts_export.h"
27 QML_NAMED_ELEMENT(Range)
28 QML_UNCREATABLE(
"Grouped Property")
44 Q_PROPERTY(qreal from READ from WRITE setFrom NOTIFY fromChanged)
46 void setFrom(qreal from);
47 Q_SIGNAL
void fromChanged();
53 Q_PROPERTY(qreal to READ to WRITE setTo NOTIFY toChanged)
56 Q_SIGNAL
void toChanged();
63 Q_PROPERTY(
bool automatic READ automatic WRITE setAutomatic NOTIFY automaticChanged)
64 bool automatic()
const;
65 void setAutomatic(
bool newAutomatic);
66 Q_SIGNAL
void automaticChanged();
70 Q_PROPERTY(qreal distance READ distance NOTIFY rangeChanged)
71 qreal distance()
const;
79 Q_PROPERTY(qreal minimum READ minimum WRITE setMinimum NOTIFY minimumChanged)
80 qreal minimum()
const;
81 void setMinimum(qreal newMinimum);
82 Q_SIGNAL
void minimumChanged();
90 Q_PROPERTY(qreal increment READ increment WRITE setIncrement NOTIFY incrementChanged)
91 qreal increment()
const;
92 void setIncrement(qreal newIncrement);
93 Q_SIGNAL
void incrementChanged();
97 Q_SIGNAL
void rangeChanged();
106 bool m_automatic =
true;
107 qreal m_minimum = std::numeric_limits<qreal>::min();
108 qreal m_increment = 0.0;
Abstract base class for data sources.
An object that can be used as a grouped property to provide a value range for charts.
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:53 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.