Public Member Functions | Private Attributes | List of all members
rqt_reconfigure.treenode_item_model.TreenodeItemModel Class Reference
Inheritance diagram for rqt_reconfigure.treenode_item_model.TreenodeItemModel:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, parent=None)
 
def get_index_from_grn (self, grn)
 
def set_item_from_index (self, grn, qpindex)
 

Private Attributes

 _indexes
 
 _parent
 

Detailed Description

This class is made only for this purpose; to hold QStandardItem instances
associated with QModelIndex. QStandardItemModel has methods to return it
by index called itemFromIndex, but in some cases the method doesn't work
for unknown reasons. Ref. question asked:
http://stackoverflow.com/questions/14646979/strange-index-values-from-qstandarditemmodel

:author: Isaac Saito

Definition at line 42 of file treenode_item_model.py.

Constructor & Destructor Documentation

def rqt_reconfigure.treenode_item_model.TreenodeItemModel.__init__ (   self,
  parent = None 
)

Definition at line 53 of file treenode_item_model.py.

Member Function Documentation

def rqt_reconfigure.treenode_item_model.TreenodeItemModel.get_index_from_grn (   self,
  grn 
)
:type grn: str
:rtype: QPersistentModelIndex. None if the corresponding item isn't
found.

Definition at line 59 of file treenode_item_model.py.

def rqt_reconfigure.treenode_item_model.TreenodeItemModel.set_item_from_index (   self,
  grn,
  qpindex 
)
:type grn: str
:type qpindex: QPersistentModelIndex

Definition at line 69 of file treenode_item_model.py.

Member Data Documentation

rqt_reconfigure.treenode_item_model.TreenodeItemModel._indexes
private

Definition at line 57 of file treenode_item_model.py.

rqt_reconfigure.treenode_item_model.TreenodeItemModel._parent
private

Definition at line 55 of file treenode_item_model.py.


The documentation for this class was generated from the following file:


rqt_reconfigure
Author(s): Isaac Saito, Ze'ev Klapow
autogenerated on Wed Jul 10 2019 04:02:40