KIO
kdevicelistmodel.cpp
Go to the documentation of this file.
231 if (!deviceItems.contains(device.parentUdi()) ) // The parent was not present, try to insert it in the model
QString i18n(const char *text)
int childCount() const
Helper method to get the numbers of childrens of this item.
Definition: kdevicelistitem.cpp:65
void setDevice(const Solid::Device &device)
Get the Solid::Device reference for this item.
Definition: kdevicelistitem.cpp:97
KDeviceListItem * child(int row)
Return a child of this item according to the given row.
Definition: kdevicelistitem.cpp:50
Solid::Device deviceForIndex(const QModelIndex &index) const
Definition: kdevicelistmodel.cpp:179
Solid::Device & device()
Get the Solid::Device reference for this item.
Definition: kdevicelistitem.cpp:102
KDeviceListModel(QObject *parent=0)
Definition: kdevicelistmodel.cpp:58
void setParent(KDeviceListItem *parent)
Set the parent of this item.
Definition: kdevicelistitem.cpp:79
bool isValid() const
QList< KDeviceListItem * > children()
Get all the children of this item.
Definition: kdevicelistitem.cpp:55
int row() const
Get the relative(to parent) row position of this item in the tree.
Definition: kdevicelistitem.cpp:70
int columnCount(const QModelIndex &parent=QModelIndex()) const
Get the number of columns for a model index.
Definition: kdevicelistmodel.cpp:172
void * internalPointer() const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Get the header data for a given section, orientation and role.
Definition: kdevicelistmodel.cpp:110
QModelIndex createIndex(int row, int column, void *ptr) const
QVariant data(const QModelIndex &index, int role) const
Get a visible data based on Qt role for the given index.
Definition: kdevicelistmodel.cpp:90
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Get the children model index for the given row and column.
Definition: kdevicelistmodel.cpp:122
Item for the Device List model Represent a Solid::Device in the tree device list model.
Definition: kdevicelistitem_p.h:40
int rowCount(const QModelIndex &parent=QModelIndex()) const
Get the number of rows for a model index.
Definition: kdevicelistmodel.cpp:162
int column() const
QObject * parent() const
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:53 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.