class KDeviceListModel |
|
Device list model in Qt's Interview framework.
This class is a tree view model. Each device has a parent excluding the main device(the computer). Only revelant when used with QTreeView.
Author Michaƫl Larouche |
|
|
|
|
Get the number of columns for a model index. |
|
Get a visible data based on Qt role for the given index.
Return the device information for the give index.
index - The QModelIndex which contains the row, column to fetch the data. role - The Interview data role(ex: Qt.DisplayRole). Returns the data for the given index and role. |
|
|
Get the header data for a given section, orientation and role.
This method return a value to display in header in a view.
Only support Qt.Horizontal direction and Qt.DisplayRole role.
section - Section of Header to get the data of. orientation - Orientation of the header. role - The Interview data role(ex: Qt.DisplayRole). Returns the header data for the given section. |
|
Get the children model index for the given row and column. |
|
|
Get the parent QModelIndex for the given model child. |
|
|
Get the number of rows for a model index. |