From 9ca3c47445cafdbbb48ce5f7db45ca5d1268382c Mon Sep 17 00:00:00 2001 From: Pascale Noyret Date: Mon, 9 Mar 2009 11:28:23 +0000 Subject: [PATCH] *** empty log message *** --- InterfaceQT4/qtEficas.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index b79ae338..3dd68257 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -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) -- 2.39.2