A patch by Nicolas GEIMER for the problem of Qt dialogs not appearing in GEOM (for Ubuntu 8.10 32bits)

This commit is contained in:
jfa 2009-02-03 15:46:25 +00:00
parent c51839e323
commit bcc48ea905
33 changed files with 33 additions and 33 deletions

View File

@ -683,7 +683,7 @@ void BasicGUI_ArcDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
myEditCurrentArgument->setFocus();
connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL( currentSelectionChanged() ),

View File

@ -269,7 +269,7 @@ void BasicGUI_CircleDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
myEditCurrentArgument->setFocus();
globalSelection(); // close local contexts, if any

View File

@ -226,7 +226,7 @@ void BasicGUI_LineDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
SelectionIntoArgument();
}

View File

@ -301,7 +301,7 @@ void BasicGUI_MarkerDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL( currentSelectionChanged() ),
this, SLOT( onSelectionDone() ) );

View File

@ -308,7 +308,7 @@ void BasicGUI_PlaneDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
myEditCurrentArgument->setFocus();
connect( myGeomGUI->getApp()->selectionMgr(), SIGNAL( currentSelectionChanged() ),

View File

@ -380,7 +380,7 @@ void BasicGUI_PointDlg::ConstructorsClicked(int constructorId)
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
SelectionIntoArgument();
}

View File

@ -229,7 +229,7 @@ void BasicGUI_VectorDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
displayPreview();
}

View File

@ -242,7 +242,7 @@ void BasicGUI_WorkingPlaneDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
updateWPlane();
}

View File

@ -78,7 +78,7 @@ bool BlocksGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
if ( aDlg ) {
aDlg->updateGeometry();
aDlg->resize( aDlg->minimumSize() );
aDlg->resize( aDlg->minimumSizeHint() );
aDlg->show();
}

View File

@ -191,7 +191,7 @@ void BlocksGUI_BlockDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
// on dialog initialization we init the first field with a selected object (if any)
SelectionIntoArgument();

View File

@ -178,7 +178,7 @@ void BlocksGUI_QuadFaceDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
// on dialog initialization we init the first field with a selected object (if any)
SelectionIntoArgument();

View File

@ -184,7 +184,7 @@ void BlocksGUI_TrsfDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
// on dialog initialization we init the first field with a selected object (if any)
SelectionIntoArgument();

View File

@ -79,7 +79,7 @@ bool BuildGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
if ( aDlg ) {
aDlg->updateGeometry();
aDlg->resize( aDlg->minimumSize() );
aDlg->resize( aDlg->minimumSizeHint() );
aDlg->show();
}

View File

@ -276,7 +276,7 @@ void GenerationGUI_PrismDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;

View File

@ -113,7 +113,7 @@ bool GroupGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
if ( aDlg ) {
aDlg->updateGeometry();
aDlg->resize( aDlg->minimumSize() );
aDlg->resize( aDlg->minimumSizeHint() );
aDlg->show();
}

View File

@ -116,7 +116,7 @@ bool MeasureGUI::OnGUIEvent( int theCommandID, SUIT_Desktop* parent )
}
if ( dlg ) {
dlg->updateGeometry();
dlg->resize( dlg->minimumSize() );
dlg->resize( dlg->minimumSizeHint() );
dlg->show();
}
return true;

View File

@ -358,7 +358,7 @@ void OperationGUI_ChamferDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
}
//=================================================================================

View File

@ -296,7 +296,7 @@ void OperationGUI_FilletDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
}
//=================================================================================

View File

@ -192,7 +192,7 @@ void OperationGUI_PartitionDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
myEditCurrentArgument->setFocus();
connect( myGeomGUI->getApp()->selectionMgr(),

View File

@ -194,7 +194,7 @@ void PrimitiveGUI_BoxDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
// on dialog initialization we init the first field with a selected object (if any)

View File

@ -209,7 +209,7 @@ void PrimitiveGUI_ConeDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
// on dialog initialization we init the first field with a selected object (if any)

View File

@ -200,7 +200,7 @@ void PrimitiveGUI_CylinderDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;

View File

@ -254,7 +254,7 @@ void PrimitiveGUI_DiskDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;

View File

@ -301,7 +301,7 @@ void PrimitiveGUI_FaceDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
SelectionIntoArgument();
//displayPreview();
}

View File

@ -191,7 +191,7 @@ void PrimitiveGUI_SphereDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
displayPreview();
}

View File

@ -199,7 +199,7 @@ void PrimitiveGUI_TorusDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;

View File

@ -233,7 +233,7 @@ void RepairGUI_GlueDlg::ConstructorsClicked( int constructorId )
qApp->processEvents();
updateGeometry();
resize( minimumSize() );
resize( minimumSizeHint() );
displayPreview();
updateButtonState();

View File

@ -246,7 +246,7 @@ void TransformationGUI_MultiRotationDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;

View File

@ -265,7 +265,7 @@ void TransformationGUI_MultiTranslationDlg::ConstructorsClicked (int constructor
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;

View File

@ -243,7 +243,7 @@ void TransformationGUI_PositionDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;

View File

@ -204,7 +204,7 @@ void TransformationGUI_RotationDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;

View File

@ -225,7 +225,7 @@ void TransformationGUI_ScaleDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;

View File

@ -240,7 +240,7 @@ void TransformationGUI_TranslationDlg::ConstructorsClicked (int constructorId)
qApp->processEvents();
updateGeometry();
resize(minimumSize());
resize(minimumSizeHint());
if (myInitial) {
myInitial = false;