]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
*** empty log message ***
authorPascale Noyret <pascale.noyret@edf.fr>
Mon, 9 Mar 2009 11:28:23 +0000 (11:28 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Mon, 9 Mar 2009 11:28:23 +0000 (11:28 +0000)
InterfaceQT4/qtEficas.py

index b79ae3380f0e83458ef730b66a56e5bbc4ccf99b..3dd682572d6eadb98176c92306fbbf7103165487 100644 (file)
@@ -41,6 +41,7 @@ class Appli(Ui_Eficas,QMainWindow):
         QMainWindow.__init__(self)
         Ui_Eficas.__init__(self)
         self.setupUi(self)
+        self.ajoutIcones()
         self.viewmanager = MyTabview(self) 
         self.recentMenu=self.menuFichier.addMenu(self.trUtf8('&Recents'))
         self.connecterSignaux() 
@@ -64,6 +65,21 @@ class Appli(Ui_Eficas,QMainWindow):
         self.MenuBar.removeItem(6)
         self.MenuBar.removeItem(7)
 
+    def ajoutIcones(self) :
+        # Pour pallier les soucis de repertoire d icone
+        icon = QIcon(self.RepIcon+"/New24.png")
+        self.action_Nouveau.setIcon(icon)
+        icon1 = QIcon(self.RepIcon+"/Open24.png")
+        self.action_Ouvrir.setIcon(icon1)
+        icon2 = QIcon(self.RepIcon+"/Save24.png")
+        self.actionEnregistrer.setIcon(icon2)
+        icon3 = QIcon(self.RepIcon+"/Cut24.png")
+        self.actionCouper.setIcon(icon3)
+        icon4 = QIcon(self.RepIcon+"/Copy24.png")
+        self.actionCopier.setIcon(icon4)
+        icon5 = QIcon(self.RepIcon+"/Paste24.png")
+        self.actionColler.setIcon(icon5)
+
 
     def connecterSignaux(self) :
         self.connect(self.recentMenu,SIGNAL('aboutToShow()'),self.handleShowRecentMenu)