From f5e96c0be6e6ee8553e40086339f6c109c726558 Mon Sep 17 00:00:00 2001 From: Renaud Barate Date: Mon, 31 Oct 2011 16:12:53 +0000 Subject: [PATCH] Fix preferences menu --- src/GENERICSOLVERGUI/GENERICSOLVERGUI.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/GENERICSOLVERGUI/GENERICSOLVERGUI.py b/src/GENERICSOLVERGUI/GENERICSOLVERGUI.py index 352ba70..f31cab1 100644 --- a/src/GENERICSOLVERGUI/GENERICSOLVERGUI.py +++ b/src/GENERICSOLVERGUI/GENERICSOLVERGUI.py @@ -218,16 +218,16 @@ def createPreferences(): "GENERICSOLVER", "def_case_name" ) pid = sgPyQt.addPreference( "Default creation mode", gid, SalomePyQt.PT_Selector, "GENERICSOLVER", "creation_mode" ) - strings = QStringList() + strings = QtCore.QStringList() strings.append( "Default name" ) strings.append( "Generate name" ) strings.append( "Ask name" ) indexes = [] - indexes.append( QVariant(0) ) - indexes.append( QVariant(1) ) - indexes.append( QVariant(2) ) - sgPyQt.setPreferenceProperty( pid, "strings", QVariant( strings ) ) - sgPyQt.setPreferenceProperty( pid, "indexes", QVariant( indexes ) ) + indexes.append( QtCore.QVariant(0) ) + indexes.append( QtCore.QVariant(1) ) + indexes.append( QtCore.QVariant(2) ) + sgPyQt.setPreferenceProperty( pid, "strings", QtCore.QVariant( strings ) ) + sgPyQt.setPreferenceProperty( pid, "indexes", QtCore.QVariant( indexes ) ) pass # called when module is activated -- 2.39.2