# `TaurusModelModel`

digraph inheritanced9e9f2a38f { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "QAbstractItemModel" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QAbstractItemModel(parent: QObject|None = None)"]; "QObject" -> "QAbstractItemModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QAbstractListModel" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QAbstractListModel(parent: QObject|None = None)"]; "QAbstractItemModel" -> "QAbstractListModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QObject" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,tooltip="QObject(parent: QObject|None = None)"]; "wrapper" -> "QObject" [arrowsize=0.5,style="setlinewidth(0.5)"]; "TaurusModelModel" [URL="#taurus.qt.qtgui.panel.TaurusModelModel",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A Qt data model for describing taurus models"]; "QAbstractListModel" -> "TaurusModelModel" [arrowsize=0.5,style="setlinewidth(0.5)"]; "simplewrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "wrapper" [color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded]; "simplewrapper" -> "wrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class TaurusModelModel(items=None)

  A Qt data model for describing taurus models

  Import from `taurus.qt.qtgui.panel` as:

      from taurus.qt.qtgui.panel import TaurusModelModel

  addItem(item)

    appends an item to the internal list

    Parameters:

      item (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 (int) – the row of the list at which the item insertion starts, if row==-1, items will be appended to the list

      - items (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=<PyQt5.QtCore.QModelIndex object>)

    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