Fix combo box model problems

This commit is contained in:
vsr 2008-07-28 13:47:42 +00:00
parent 1f02bc8fb3
commit a8e590fdc3
2 changed files with 7 additions and 11 deletions

View File

@ -38,8 +38,8 @@
#include <SalomeApp_Tools.h> #include <SalomeApp_Tools.h>
#include <QtxDoubleSpinBox.h> #include <QtxDoubleSpinBox.h>
#include <QtxComboBox.h>
#include <QComboBox>
#include <QLabel> #include <QLabel>
#include <QGroupBox> #include <QGroupBox>
#include <QFrame> #include <QFrame>
@ -117,15 +117,11 @@ QFrame* NETGENPluginGUI_HypothesisCreator::buildFrame()
row++; row++;
aGroupLayout->addWidget( new QLabel( tr( "NETGEN_FINENESS" ), GroupC1 ), row, 0 ); aGroupLayout->addWidget( new QLabel( tr( "NETGEN_FINENESS" ), GroupC1 ), row, 0 );
myFineness = new QtxComboBox( GroupC1 ); myFineness = new QComboBox( GroupC1 );
QStringList types; QStringList types;
types.append( QObject::tr( "NETGEN_VERYCOARSE" ) ); types << tr( "NETGEN_VERYCOARSE" ) << tr( "NETGEN_COARSE" ) << tr( "NETGEN_MODERATE" ) <<
types.append( QObject::tr( "NETGEN_COARSE" ) ); tr( "NETGEN_FINE" ) << tr( "NETGEN_VERYFINE" ) << tr( "NETGEN_CUSTOM" );
types.append( QObject::tr( "NETGEN_MODERATE" ) ); myFineness->addItems( types );
types.append( QObject::tr( "NETGEN_FINE" ) );
types.append( QObject::tr( "NETGEN_VERYFINE" ) );
types.append( QObject::tr( "NETGEN_CUSTOM" ) );
myFineness->insertItems( myFineness->count(), types );
aGroupLayout->addWidget( myFineness, row, 1 ); aGroupLayout->addWidget( myFineness, row, 1 );
row++; row++;

View File

@ -41,7 +41,7 @@
#include <SMESHGUI_Hypotheses.h> #include <SMESHGUI_Hypotheses.h>
class QtxDoubleSpinBox; class QtxDoubleSpinBox;
class QtxComboBox; class QComboBox;
class QCheckBox; class QCheckBox;
class QLineEdit; class QLineEdit;
@ -89,7 +89,7 @@ private:
QtxDoubleSpinBox* myMaxSize; QtxDoubleSpinBox* myMaxSize;
QCheckBox* mySecondOrder; QCheckBox* mySecondOrder;
QCheckBox* myOptimize; QCheckBox* myOptimize;
QtxComboBox* myFineness; QComboBox* myFineness;
QtxDoubleSpinBox* myGrowthRate; QtxDoubleSpinBox* myGrowthRate;
QtxDoubleSpinBox* myNbSegPerEdge; QtxDoubleSpinBox* myNbSegPerEdge;
QtxDoubleSpinBox* myNbSegPerRadius; QtxDoubleSpinBox* myNbSegPerRadius;