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