Exemple #1
0
    def mouseDoubleClickEvent(self, event):
        if self.m_plugin_id >= 0:
            event.accept()
            canvas.callback(
                ACTION_PLUGIN_SHOW_UI if self.m_plugin_ui else
                ACTION_PLUGIN_EDIT, self.m_plugin_id, 0, "")
            return

        QGraphicsObject.mouseDoubleClickEvent(self, event)
Exemple #2
0
 def mouseDoubleClickEvent(self, event):
     if self.shapeItem.path().contains(event.pos()):
         QGraphicsObject.mouseDoubleClickEvent(self, event)
         QTimer.singleShot(0, self.activated.emit)
     else:
         event.ignore()