eric6/Cooperation/ChatWidget.py

changeset 7533
88261c96484b
parent 7360
9190402e4505
child 7780
41420f82c0ac
--- a/eric6/Cooperation/ChatWidget.py	Sun Apr 12 18:46:08 2020 +0200
+++ b/eric6/Cooperation/ChatWidget.py	Sun Apr 12 19:07:49 2020 +0200
@@ -59,13 +59,13 @@
         self.setupUi(self)
         
         self.shareButton.setIcon(
-            UI.PixmapCache.getIcon("sharedEditDisconnected.png"))
+            UI.PixmapCache.getIcon("sharedEditDisconnected"))
         self.startEditButton.setIcon(
-            UI.PixmapCache.getIcon("sharedEditStart.png"))
+            UI.PixmapCache.getIcon("sharedEditStart"))
         self.sendEditButton.setIcon(
-            UI.PixmapCache.getIcon("sharedEditSend.png"))
+            UI.PixmapCache.getIcon("sharedEditSend"))
         self.cancelEditButton.setIcon(
-            UI.PixmapCache.getIcon("sharedEditCancel.png"))
+            UI.PixmapCache.getIcon("sharedEditCancel"))
         
         self.__ui = ui
         self.__client = CooperationClient(self)
@@ -177,7 +177,7 @@
         
         QListWidgetItem(
             UI.PixmapCache.getIcon(
-                "chatUser{0}.png".format(1 + self.usersList.count() % 6)),
+                "chatUser{0}".format(1 + self.usersList.count() % 6)),
             nick, self.usersList)
         
         if not self.__connected:
@@ -185,7 +185,7 @@
         
         if not self.isVisible():
             self.__ui.showNotification(
-                UI.PixmapCache.getPixmap("cooperation48.png"),
+                UI.PixmapCache.getPixmap("cooperation48"),
                 self.tr("New User"), self.tr("{0} has joined.")
                     .format(nick))
 
@@ -216,7 +216,7 @@
         
         if not self.isVisible():
             self.__ui.showNotification(
-                UI.PixmapCache.getPixmap("cooperation48.png"),
+                UI.PixmapCache.getPixmap("cooperation48"),
                 self.tr("User Left"), self.tr("{0} has left.")
                     .format(nick))
     
@@ -239,7 +239,7 @@
         
         if not self.isVisible():
             self.__ui.showNotification(
-                UI.PixmapCache.getPixmap("cooperation48.png"),
+                UI.PixmapCache.getPixmap("cooperation48"),
                 self.tr("Message from <{0}>").format(from_), message)
     
     @pyqtSlot(str)
@@ -417,10 +417,10 @@
         """
         if checked:
             self.shareButton.setIcon(
-                UI.PixmapCache.getIcon("sharedEditConnected.png"))
+                UI.PixmapCache.getIcon("sharedEditConnected"))
         else:
             self.shareButton.setIcon(
-                UI.PixmapCache.getIcon("sharedEditDisconnected.png"))
+                UI.PixmapCache.getIcon("sharedEditDisconnected"))
         self.startEditButton.setEnabled(checked)
         
         self.shareEditor.emit(checked)
@@ -477,10 +477,10 @@
         self.shareButton.setChecked(sharing)
         if sharing:
             self.shareButton.setIcon(
-                UI.PixmapCache.getIcon("sharedEditConnected.png"))
+                UI.PixmapCache.getIcon("sharedEditConnected"))
         else:
             self.shareButton.setIcon(
-                UI.PixmapCache.getIcon("sharedEditDisconnected.png"))
+                UI.PixmapCache.getIcon("sharedEditDisconnected"))
         self.startEditButton.setChecked(editing)
         
         self.shareButton.setEnabled(shareable and not editing)
@@ -495,22 +495,22 @@
         """
         self.__chatMenu = QMenu(self)
         self.__copyChatAct = self.__chatMenu.addAction(
-            UI.PixmapCache.getIcon("editCopy.png"),
+            UI.PixmapCache.getIcon("editCopy"),
             self.tr("Copy"), self.__copyChat)
         self.__chatMenu.addSeparator()
         self.__cutAllChatAct = self.__chatMenu.addAction(
-            UI.PixmapCache.getIcon("editCut.png"),
+            UI.PixmapCache.getIcon("editCut"),
             self.tr("Cut all"), self.__cutAllChat)
         self.__copyAllChatAct = self.__chatMenu.addAction(
-            UI.PixmapCache.getIcon("editCopy.png"),
+            UI.PixmapCache.getIcon("editCopy"),
             self.tr("Copy all"), self.__copyAllChat)
         self.__chatMenu.addSeparator()
         self.__clearChatAct = self.__chatMenu.addAction(
-            UI.PixmapCache.getIcon("editDelete.png"),
+            UI.PixmapCache.getIcon("editDelete"),
             self.tr("Clear"), self.__clearChat)
         self.__chatMenu.addSeparator()
         self.__saveChatAct = self.__chatMenu.addAction(
-            UI.PixmapCache.getIcon("fileSave.png"),
+            UI.PixmapCache.getIcon("fileSave"),
             self.tr("Save"), self.__saveChat)
         
         self.on_chatEdit_copyAvailable(False)
@@ -617,13 +617,13 @@
         """
         self.__usersMenu = QMenu(self)
         self.__kickUserAct = self.__usersMenu.addAction(
-            UI.PixmapCache.getIcon("chatKickUser.png"),
+            UI.PixmapCache.getIcon("chatKickUser"),
             self.tr("Kick User"), self.__kickUser)
         self.__banUserAct = self.__usersMenu.addAction(
-            UI.PixmapCache.getIcon("chatBanUser.png"),
+            UI.PixmapCache.getIcon("chatBanUser"),
             self.tr("Ban User"), self.__banUser)
         self.__banKickUserAct = self.__usersMenu.addAction(
-            UI.PixmapCache.getIcon("chatBanKickUser.png"),
+            UI.PixmapCache.getIcon("chatBanKickUser"),
             self.tr("Ban and Kick User"), self.__banKickUser)
     
     @pyqtSlot(QPoint)

eric ide

mercurial