void GLScene::mouseReleaseEvent(QMouseEvent *event) { if (event->button() == Qt::RightButton) { emit mouseRightButtonReleased(); } else if (event->button() == Qt::LeftButton) { emit mouseLeftButtonReleased(); } }
void CPushButton::mouseReleaseEvent(QMouseEvent *event){ if(event->button() == Qt::LeftButton) { emit mouseLeftButtonReleased(); } else{ emit mouseRightButtonReleased(); } event->ignore(); }