CoTech action 66.2: Rename algorithms in Create Mesh dialog box:

- part 1: Resize combo-box to show all items (no scroll bar)
This commit is contained in:
vsr 2014-10-13 17:38:09 +04:00
parent 65efd98e77
commit b525692cdf

View File

@ -171,6 +171,7 @@ void SMESHGUI_MeshTab::addItem( const QString& txt, const int type, const int in
if ( type <= AddHyp ) if ( type <= AddHyp )
{ {
myHypCombo[ type ]->addItem( txt, QVariant( index )); myHypCombo[ type ]->addItem( txt, QVariant( index ));
myHypCombo[ type ]->setMaxVisibleItems( qMax( 10, myHypCombo[ type ]->count() ) );
} }
else else
{ {