From: vsr Date: Mon, 13 Oct 2014 13:38:09 +0000 (+0400) Subject: CoTech action 66.2: Rename algorithms in Create Mesh dialog box: X-Git-Tag: V7_5_0b1~24 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=b525692cdfe5ce9daaf6cf62e4ae796b6e039212 CoTech action 66.2: Rename algorithms in Create Mesh dialog box: - part 1: Resize combo-box to show all items (no scroll bar) --- diff --git a/src/SMESHGUI/SMESHGUI_MeshDlg.cxx b/src/SMESHGUI/SMESHGUI_MeshDlg.cxx index f3a2719d4..a381acde0 100644 --- a/src/SMESHGUI/SMESHGUI_MeshDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshDlg.cxx @@ -171,6 +171,7 @@ void SMESHGUI_MeshTab::addItem( const QString& txt, const int type, const int in if ( type <= AddHyp ) { myHypCombo[ type ]->addItem( txt, QVariant( index )); + myHypCombo[ type ]->setMaxVisibleItems( qMax( 10, myHypCombo[ type ]->count() ) ); } else {