示例#1
0
 def emitSignalClicked(self, lvi):
     """Emit signals about click onto lvi-"""
     if not lvi:
         return
     if type(lvi) == QtCore.QItemSelection:
         indexes = lvi.indexes()
         if len(indexes) == 0:
             return
         lvi = indexes[0]
     aKey = itemFromProxyIndex(self.proxyModel, lvi).data()
     self._emitSignalForClickOnItemWithKey( aKey )
示例#2
0
 def emitSignalClicked(self, lvi):
     """Emit signals about click onto lvi-"""
     if not lvi:
         return
     if type(lvi) == QtCore.QItemSelection:
         indexes = lvi.indexes()
         if len(indexes) == 0:
             return
         lvi = indexes[0]
     aKey = itemFromProxyIndex(self.proxyModel, lvi).data()
     self._emitSignalForClickOnItemWithKey(aKey)
示例#3
0
 def __rmbClickedSlot(self, lvi, pt, col):
     """Reaction on right mouse button click."""
     if not lvi: return
     self.sigContextMenuRequest.emit( self, pt, itemFromProxyIndex(self.proxyModel, lvi).data())
示例#4
0
 def emitSignalPressed(self, lvi):
     """Emit signals about press onto lvi-"""
     #print "Pressed" , lvi.data().toString()
     self._emitSignalForPressOnItemWithKey( itemFromProxyIndex(self.proxyModel, lvi).data() )
示例#5
0
 def __rmbClickedSlot(self, lvi, pt, col):
     """Reaction on right mouse button click."""
     if not lvi: return
     self.sigContextMenuRequest.emit(
         self, pt,
         itemFromProxyIndex(self.proxyModel, lvi).data())
示例#6
0
 def emitSignalPressed(self, lvi):
     """Emit signals about press onto lvi-"""
     #print "Pressed" , lvi.data().toString()
     self._emitSignalForPressOnItemWithKey(
         itemFromProxyIndex(self.proxyModel, lvi).data())