KItemModels
knumbermodel.cpp
90 dataChanged(index(0, 0, QModelIndex()), index(rowCount(), 0, QModelIndex()), QList<int>{DisplayRole});
135 return {{KNumberModel::DisplayRole, QByteArrayLiteral("display")}, {KNumberModel::ValueRole, QByteArrayLiteral("value")}};
QLocale::NumberOptions formattingOptions
Defines the string representation of the number, e.g.
Definition knumbermodel.h:62
qreal value(const QModelIndex &index) const
Returns the value represented at the given index.
Definition knumbermodel.cpp:99
void beginResetModel()
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QList< int > &roles)
void endResetModel()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const const override
NumberOptions
bool isValid() const const
QModelIndex parent() const const
int row() const const
Q_EMITQ_EMIT
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:35 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.