Fix combo box model problems
This commit is contained in:
parent
1f02bc8fb3
commit
a8e590fdc3
@ -38,8 +38,8 @@
|
||||
#include <SalomeApp_Tools.h>
|
||||
|
||||
#include <QtxDoubleSpinBox.h>
|
||||
#include <QtxComboBox.h>
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QLabel>
|
||||
#include <QGroupBox>
|
||||
#include <QFrame>
|
||||
@ -117,15 +117,11 @@ QFrame* NETGENPluginGUI_HypothesisCreator::buildFrame()
|
||||
row++;
|
||||
|
||||
aGroupLayout->addWidget( new QLabel( tr( "NETGEN_FINENESS" ), GroupC1 ), row, 0 );
|
||||
myFineness = new QtxComboBox( GroupC1 );
|
||||
myFineness = new QComboBox( GroupC1 );
|
||||
QStringList types;
|
||||
types.append( QObject::tr( "NETGEN_VERYCOARSE" ) );
|
||||
types.append( QObject::tr( "NETGEN_COARSE" ) );
|
||||
types.append( QObject::tr( "NETGEN_MODERATE" ) );
|
||||
types.append( QObject::tr( "NETGEN_FINE" ) );
|
||||
types.append( QObject::tr( "NETGEN_VERYFINE" ) );
|
||||
types.append( QObject::tr( "NETGEN_CUSTOM" ) );
|
||||
myFineness->insertItems( myFineness->count(), types );
|
||||
types << tr( "NETGEN_VERYCOARSE" ) << tr( "NETGEN_COARSE" ) << tr( "NETGEN_MODERATE" ) <<
|
||||
tr( "NETGEN_FINE" ) << tr( "NETGEN_VERYFINE" ) << tr( "NETGEN_CUSTOM" );
|
||||
myFineness->addItems( types );
|
||||
aGroupLayout->addWidget( myFineness, row, 1 );
|
||||
row++;
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
#include <SMESHGUI_Hypotheses.h>
|
||||
|
||||
class QtxDoubleSpinBox;
|
||||
class QtxComboBox;
|
||||
class QComboBox;
|
||||
class QCheckBox;
|
||||
class QLineEdit;
|
||||
|
||||
@ -89,7 +89,7 @@ private:
|
||||
QtxDoubleSpinBox* myMaxSize;
|
||||
QCheckBox* mySecondOrder;
|
||||
QCheckBox* myOptimize;
|
||||
QtxComboBox* myFineness;
|
||||
QComboBox* myFineness;
|
||||
QtxDoubleSpinBox* myGrowthRate;
|
||||
QtxDoubleSpinBox* myNbSegPerEdge;
|
||||
QtxDoubleSpinBox* myNbSegPerRadius;
|
||||
|
Loading…
Reference in New Issue
Block a user