taurus taurus

Previous topic

TaurusModelList

Next topic

TaurusModelSelectorTree

This Page

TaurusModelModel

Inheritance diagram of TaurusModelModel

class TaurusModelModel(items=None)

Bases: PyQt4.QtCore.QAbstractListModel

A Qt data model for describing taurus models

addItem(item)

appends an item to the internal list

Parameters:item (:class:~`TaurusModelItem`) –
clearAll()

clears all rows

data(index, role=0)

reimplemented from Qt.QAbstractListModel

dropMimeData(data, action, row, column, parent)

reimplemented from Qt.QAbstractListModel

dumpData()

returns a deep copy of the internal item list representation

flags(index)

reimplemented from Qt.QAbstractListModel

insertItems(row, items)

convenience method to add new rows by passing a list of strings ()

Parameters:
  • row (:class:~`int`) – the row of the list at which the item insertion starts, if row==-1, items will be appended to the list
  • items (:class:~`seq`) – a sequence items to add to the list. The objects in the sequence can be either strings, TaurusModelItem objects or tuples of valid arguments for initializing TaurusModelItem objects
insertRows(position=None, rows=1, parentindex=None, items=None)

reimplemented from Qt.QAbstractListModel

mimeData(indexes)

reimplemented from Qt.QAbstractListModel

mimeTypes()

reimplemented from Qt.QAbstractListModel

removeRows(position, rows=1, parentindex=None)

reimplemented from Qt.QAbstractListModel

rowCount(index=<PyQt4.QtCore.QModelIndex object at 0xb8fcf7c>)

reimplemented from Qt.QAbstractListModel

setData(index, value=None, role=2)

reimplemented from Qt.QAbstractListModel

swapItems(index1, index2)

swap the items described by index1 and index2 in the list