void SingleConnectorInfoWidget::mousePressEvent(QMouseEvent * event) { if(isSelected() && !isInEditionMode()) { startEdition(); } else if(!isSelected()) { setSelected(true); } QFrame::mousePressEvent(event); }
void GuiToggle::mouseDown(const MouseEvent& event) { startEdition(); setValue(1.f - getValue()); stopEdition(); }