void ChessBoard::mouseReleaseEvent(QMouseEvent *evt) { if ( evt->button() == Qt::LeftButton ) leftButtonUp( evt ); else if ( evt->button() == Qt::RightButton ) rightButtonUp( evt ); QWidget::mouseReleaseEvent( evt ); }
void mouseControl::keyReleased(int key){ switch (key){ case '1': leftButtonUp(myMouse); break; case '2': rightButtonUp(myMouse); break; } }