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 <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++;

View File

@ -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;