35 from __future__
import division
37 from python_qt_binding.QtGui
import QStandardItemModel
44 This class is made only for this purpose; to hold QStandardItem instances 45 associated with QModelIndex. QStandardItemModel has methods to return it 46 by index called itemFromIndex, but in some cases the method doesn't work 47 for unknown reasons. Ref. question asked: 48 http://stackoverflow.com/questions/14646979/strange-index-values-from-qstandarditemmodel 54 super(TreenodeItemModel, self).
__init__(parent)
63 :rtype: QPersistentModelIndex. None if the corresponding item isn't 66 logging.debug(
'get_index_from_grn all item={}'.format(self.
_indexes))
67 return self._indexes.get(grn)
72 :type qpindex: QPersistentModelIndex 74 logging.debug(
'set_item_from_index grn={} qpindex={}'.format(