Convert text to Qt::tr

This commit is contained in:
gdd 2011-09-14 08:42:44 +00:00
parent 9d3b3bf258
commit 9b32250146

View File

@ -4364,10 +4364,10 @@ void SMESHGUI::createPreferences()
setPreferenceProperty( dispgroup, "columns", 2 ); setPreferenceProperty( dispgroup, "columns", 2 );
int dispmode = addPreference( tr( "PREF_DISPLAY_MODE" ), dispgroup, LightApp_Preferences::Selector, "SMESH", "display_mode" ); int dispmode = addPreference( tr( "PREF_DISPLAY_MODE" ), dispgroup, LightApp_Preferences::Selector, "SMESH", "display_mode" );
QStringList modes; QStringList modes;
modes.append( "Wireframe" ); modes.append( tr("MEN_WIRE") );
modes.append( "Shading" ); modes.append( tr("MEN_SHADE") );
modes.append( "Nodes" ); modes.append( tr("MEN_NODES") );
modes.append( "Shrink" ); modes.append( tr("MEN_SHRINK") );
QList<QVariant> indices; QList<QVariant> indices;
indices.append( 0 ); indices.append( 0 );
indices.append( 1 ); indices.append( 1 );
@ -4380,8 +4380,8 @@ void SMESHGUI::createPreferences()
setPreferenceProperty( arcgroup, "columns", 2 ); setPreferenceProperty( arcgroup, "columns", 2 );
int quadraticmode = addPreference( tr( "QUADRATIC_REPRESENT_MODE" ), arcgroup, LightApp_Preferences::Selector, "SMESH", "quadratic_mode" ); int quadraticmode = addPreference( tr( "QUADRATIC_REPRESENT_MODE" ), arcgroup, LightApp_Preferences::Selector, "SMESH", "quadratic_mode" );
QStringList quadraticModes; QStringList quadraticModes;
quadraticModes.append("Lines"); quadraticModes.append(tr("MEN_LINE_REPRESENTATION"));
quadraticModes.append("Arcs"); quadraticModes.append(tr("MEN_ARC_REPRESENTATION"));
indices.clear(); indices.clear();
indices.append( 0 ); indices.append( 0 );
indices.append( 1 ); indices.append( 1 );