Esempio n. 1
0
 def mouseDoubleClickEvent(self, event):
     if event.button(
     ) == Qt.LeftButton and event.modifiers() & Qt.ShiftModifier:
         event.accept()
         self.scene().removeItem(self)
     else:
         QGraphicsItem.mouseDoubleClickEvent(self, event)
Esempio n. 2
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

        QGraphicsItem.mouseDoubleClickEvent(self, event)
 def mouseDoubleClickEvent(self, event):
     if event.button() == Qt.LeftButton:
         if event.modifiers() & Qt.ShiftModifier:  # reset box position
             self.setPos(TextBoxItem.init_offset)
             self.parentItem().textBoxChanged()
         else:
             strip = selection.strip
             if strip != None:
                 signals.stripEditRequest.emit(strip)
         event.accept()
     else:
         QGraphicsItem.mouseDoubleClickEvent(self, event)
 def mouseDoubleClickEvent(self, event):
     signals.stripEditRequest.emit(self.strip)
     event.accept()
     QGraphicsItem.mouseDoubleClickEvent(self, event)
Esempio n. 5
0
 def mouseDoubleClickEvent(self, event):
     if self.pin_layer != None and event.button(
     ) == Qt.LeftButton and not event.modifiers() & Qt.ShiftModifier:
         self.pinLabel(not self.pinned())
     else:
         QGraphicsItem.mouseDoubleClickEvent(self, event)