Esempio n. 1
0
void GLScene::mouseReleaseEvent(QMouseEvent *event) {
    if (event->button() == Qt::RightButton) {
        emit mouseRightButtonReleased();
    } else
    if (event->button() == Qt::LeftButton) {
        emit mouseLeftButtonReleased();
    }
}
Esempio n. 2
0
void CPushButton::mouseReleaseEvent(QMouseEvent *event){
    if(event->button() == Qt::LeftButton)
    {
        emit mouseLeftButtonReleased();
    }
    else{
        emit mouseRightButtonReleased();
    }

    event->ignore();
}