X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FTools%2FVerima%2FBase%2FtableGroupeTailles.py;h=6f37bd70d51475081b8836f9dac75a080979e50a;hb=6883e45c6b4bf088fa71d0299d3a35383f283fbe;hp=6c2763c2a813dab4c374eb04af9a027e2b4677fc;hpb=75d61804dc733ab5c810e416dec646406af11422;p=modules%2Fsmesh.git diff --git a/src/Tools/Verima/Base/tableGroupeTailles.py b/src/Tools/Verima/Base/tableGroupeTailles.py index 6c2763c2a..6f37bd70d 100644 --- a/src/Tools/Verima/Base/tableGroupeTailles.py +++ b/src/Tools/Verima/Base/tableGroupeTailles.py @@ -1,4 +1,4 @@ -from PyQt4 import QtSql, QtCore +from qtsalome import QSqlQuery from tableDeBase import TableDeBase class TableGroupeTailles (TableDeBase): @@ -8,7 +8,7 @@ class TableGroupeTailles (TableDeBase): self.setTypeField(('int','int','str','float','float','float','float','float','float'),('idMaillage','idVersion')) def createSqlTable(self): - query=QtSql.QSqlQuery() + query=QSqlQuery() texteQuery ="create table GroupeTailles(idMaillage int, idVersion int, " texteQuery+="Groupe varchar(40),TailleMax float, TailleMin float, " @@ -24,7 +24,7 @@ class TableGroupeTailles (TableDeBase): print "Creation de TableGroupeTailles : " , query.exec_(texteQuery) def getVal(self,idMaillage, idVersion, Groupe, Entite): - query=QtSql.QSqlQuery() + query=QSqlQuery() texteQuery ='select '+ str(Entite) + ' from GroupeTailles where idMaillage='+str(idMaillage) texteQuery+=' and idVersion='+str(idVersion) texteQuery+=" and Groupe='" + str(Groupe) +"';"