예제 #1
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)
예제 #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)
 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())
 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)
 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 )
 def mousePressEvent(self, event):
     QTreeWidget.mousePressEvent(self, event)
     if event.button() == Qt.RightButton:
         self.emit(SIGNAL("mouseRightPressed"), event.globalPos())
예제 #10
0
 def mousePressEvent(self, event):
     if event.button() == Qt.RightButton:
         return
     else:
         QTreeWidget.mousePressEvent(self, event)