mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0021806: [CEA 637] Wrap error message on Mesh Computation Failed Dialog
This commit is contained in:
parent
0ccce9ef1b
commit
7881caca4e
@ -550,6 +550,9 @@ QFrame* SMESHGUI_ComputeDlg::createMainFrame (QWidget* theParent, bool ForEval)
|
|||||||
myTable->hideColumn( COL_SHAPEID );
|
myTable->hideColumn( COL_SHAPEID );
|
||||||
myTable->hideColumn( COL_BAD_MESH );
|
myTable->hideColumn( COL_BAD_MESH );
|
||||||
myTable->horizontalHeader()->setResizeMode( COL_ERROR, QHeaderView::Interactive );
|
myTable->horizontalHeader()->setResizeMode( COL_ERROR, QHeaderView::Interactive );
|
||||||
|
myTable->setWordWrap( true );
|
||||||
|
myTable->horizontalHeader()->setStretchLastSection( true );
|
||||||
|
myTable->setMinimumWidth( 500 );
|
||||||
|
|
||||||
QStringList headers;
|
QStringList headers;
|
||||||
headers << tr( "COL_ALGO_HEADER" );
|
headers << tr( "COL_ALGO_HEADER" );
|
||||||
@ -564,12 +567,12 @@ QFrame* SMESHGUI_ComputeDlg::createMainFrame (QWidget* theParent, bool ForEval)
|
|||||||
QGridLayout* grpLayout = new QGridLayout(myCompErrorGroup);
|
QGridLayout* grpLayout = new QGridLayout(myCompErrorGroup);
|
||||||
grpLayout->setSpacing(SPACING);
|
grpLayout->setSpacing(SPACING);
|
||||||
grpLayout->setMargin(MARGIN);
|
grpLayout->setMargin(MARGIN);
|
||||||
grpLayout->addWidget( myWarningLabel, 0, 0 );
|
grpLayout->addWidget( myWarningLabel, 0, 0, 1, 4 );
|
||||||
grpLayout->addWidget( myTable, 1, 0, 4, 1 );
|
grpLayout->addWidget( myTable, 1, 0, 1, 4 );
|
||||||
grpLayout->addWidget( myShowBtn, 1, 1 );
|
grpLayout->addWidget( myShowBtn, 2, 0 );
|
||||||
grpLayout->addWidget( myPublishBtn, 2, 1 );
|
grpLayout->addWidget( myPublishBtn, 2, 1 );
|
||||||
grpLayout->addWidget( myBadMeshBtn, 3, 1 );
|
grpLayout->addWidget( myBadMeshBtn, 2, 2 );
|
||||||
grpLayout->setRowStretch( 4, 1 );
|
grpLayout->setColumnStretch( 3, 1 );
|
||||||
|
|
||||||
// Hypothesis definition errors
|
// Hypothesis definition errors
|
||||||
|
|
||||||
@ -1035,6 +1038,7 @@ void SMESHGUI_BaseComputeOp::showComputeResult( const bool theMemoryLack,
|
|||||||
}
|
}
|
||||||
tbl->resizeColumnToContents( COL_ALGO );
|
tbl->resizeColumnToContents( COL_ALGO );
|
||||||
tbl->resizeColumnToContents( COL_SHAPE );
|
tbl->resizeColumnToContents( COL_SHAPE );
|
||||||
|
tbl->setWordWrap( true );
|
||||||
|
|
||||||
if ( hasBadMesh )
|
if ( hasBadMesh )
|
||||||
aCompDlg->myBadMeshBtn->show();
|
aCompDlg->myBadMeshBtn->show();
|
||||||
@ -2084,6 +2088,7 @@ void SMESHGUI_BaseComputeOp::showEvaluateResult(const SMESH::long_array& theRes,
|
|||||||
}
|
}
|
||||||
tbl->resizeColumnToContents( COL_ALGO );
|
tbl->resizeColumnToContents( COL_ALGO );
|
||||||
tbl->resizeColumnToContents( COL_SHAPE );
|
tbl->resizeColumnToContents( COL_SHAPE );
|
||||||
|
tbl->setWordWrap( true );
|
||||||
|
|
||||||
if ( hasBadMesh )
|
if ( hasBadMesh )
|
||||||
aCompDlg->myBadMeshBtn->show();
|
aCompDlg->myBadMeshBtn->show();
|
||||||
|
Loading…
Reference in New Issue
Block a user