コード例 #1
0
ファイル: varianttreewidget.py プロジェクト: arxsys/dff-api
    def mousePressEvent(self, event):
        index = self.indexAt(event.pos())
        if index.isValid():
	  item = self.itemAt(event.pos())
	  if event.button() == Qt.RightButton:
	    self.copyMenu.popup(QCursor.pos())
	QTreeWidget.mousePressEvent(self, event)
コード例 #2
0
 def mousePressEvent(self, event):
     index = self.indexAt(event.pos())
     if index.isValid():
         item = self.itemAt(event.pos())
         if event.button() == Qt.RightButton:
             self.copyMenu.popup(QCursor.pos())
     QTreeWidget.mousePressEvent(self, event)
コード例 #3
0
 def mousePressEvent(self, mouseEvent):
     QTreeWidget.mousePressEvent(self, mouseEvent)
     #        http://doc.qt.nokia.com/4.7-snapshot/dnd.html
     if mouseEvent.button() != Qt.LeftButton:
         return
     if self._selectedExperiment():
         self.dragStartPosition = mouseEvent.pos()
コード例 #4
0
ファイル: reporteditor.py プロジェクト: vertrex/DFF
 def mousePressEvent(self, e):
     QTreeWidget.mousePressEvent(self, e)
     index = self.indexAt(e.pos())
     if index.isValid():
         item = self.itemAt(e.pos())
         if e.button() == Qt.LeftButton:
             self.emit(SIGNAL("itemClicked"), item)
         elif e.button() == Qt.RightButton:
             self.treeItemMenu.popup(QCursor.pos())
     else:
         if e.button() == Qt.RightButton:
             self.treeNewItemMenu.popup(QCursor.pos())
コード例 #5
0
 def mousePressEvent(self,event):
     QTreeWidget.mousePressEvent(self,event)
     if event.button()==Qt.RightButton:
         self.emit(SIGNAL("mouseRightPressed"), event.globalPos())
コード例 #6
0
 def mousePressEvent(self, event):
     item = self.itemAt(event.pos())
     if not self._itemIsCategory(item):
         QTreeWidget.mousePressEvent(self, event)
コード例 #7
0
 def mousePressEvent(self, event):
     """ Mouse press event to manage the layers drag """
     if (event.button() == Qt.LeftButton):
         self.lastPressPos = event.pos()
         self.bMousePressedFlag = True
     QTreeWidget.mousePressEvent(self, event)
コード例 #8
0
 def mousePressEvent(self, event):
     """ Mouse press event to manage the layers drag """
     if ( event.button() == Qt.LeftButton ):
         self.lastPressPos = event.pos()
         self.bMousePressedFlag = True
     QTreeWidget.mousePressEvent( self, event )
コード例 #9
0
 def mousePressEvent(self, event):
     QTreeWidget.mousePressEvent(self, event)
     if event.button() == Qt.RightButton:
         self.emit(SIGNAL("mouseRightPressed"), event.globalPos())
コード例 #10
0
ファイル: mikitree.py プロジェクト: gitter-badger/mikidown
 def mousePressEvent(self, event):
     if event.button() == Qt.RightButton:
         return
     else:
         QTreeWidget.mousePressEvent(self, event)