Libksysguard
SensorUnitModel.cpp
42 connect(SensorDaemonInterface::instance(), &SensorDaemonInterface::metaDataChanged, this, &SensorUnitModel::metaDataChanged);
197 info.multiplier = Formatter::scaleDownFactor(1.0, start, static_cast<MetricPrefix>((*itr) - baseUnit));
static QString symbol(Unit unit)
Returns a symbol that corresponds to the given unit.
Definition Formatter.cpp:590
static qreal scaleDownFactor(const QVariant &value, Unit unit, MetricPrefix targetPrefix=MetricPrefixAutoAdjust)
Returns the scale factor suitable for display.
Definition Formatter.cpp:501
A model that lists the units for a given list of sensors.
Definition SensorUnitModel.h:38
bool ready
Indicates the model has retrieved all the information of the requested sensors.
Definition SensorUnitModel.h:51
Q_SCRIPTABLE Q_NOREPLY void start()
void beginResetModel()
bool checkIndex(const QModelIndex &index, CheckIndexOptions options) const const
void endResetModel()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
iterator insert(const Key &key, const T &value)
int row() const const
Q_EMITQ_EMIT
QObject * parent() const const
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:02:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.