Fix for PAL8309(now, if the ctrl key is pressed, the input coordinates function(by mouse clicking in the viewer) should be disabled in the "Point Construction" dialog).

This commit is contained in:
mzn 2005-02-28 13:13:34 +00:00
parent 53576d597d
commit 44c126ac12

View File

@ -162,7 +162,7 @@ bool BasicGUI::OnMousePress( QMouseEvent* pe, QAD_Desktop* parent, QAD_StudyFram
QDialog* aDlg = GeometryGUI::GetGeomGUI()->GetActiveDialogBox(); QDialog* aDlg = GeometryGUI::GetGeomGUI()->GetActiveDialogBox();
// Create Point dialog, OCC viewer // Create Point dialog, OCC viewer
if ( aDlg && aDlg->isA( "BasicGUI_PointDlg" ) && theFrame->getTypeView() == VIEW_OCC ) if ( aDlg && aDlg->isA( "BasicGUI_PointDlg" ) && theFrame->getTypeView() == VIEW_OCC && pe->state() != Qt::ControlButton )
{ {
BasicGUI_PointDlg* aPntDlg = (BasicGUI_PointDlg*) aDlg; BasicGUI_PointDlg* aPntDlg = (BasicGUI_PointDlg*) aDlg;
if ( aPntDlg->acceptMouseEvent() ) if ( aPntDlg->acceptMouseEvent() )