--- a/eric6/Tools/TRPreviewer.py Sun Apr 12 18:46:08 2020 +0200 +++ b/eric6/Tools/TRPreviewer.py Sun Apr 12 19:07:49 2020 +0200 @@ -62,7 +62,7 @@ self.resize(QSize(800, 600).expandedTo(self.minimumSizeHint())) self.statusBar() - self.setWindowIcon(UI.PixmapCache.getIcon("eric.png")) + self.setWindowIcon(UI.PixmapCache.getIcon("eric")) self.setWindowTitle(self.tr("Translations Previewer")) self.cw = QWidget(self) @@ -162,7 +162,7 @@ Private method to define the user interface actions. """ self.openUIAct = QAction( - UI.PixmapCache.getIcon("openUI.png"), + UI.PixmapCache.getIcon("openUI"), self.tr('&Open UI Files...'), self) self.openUIAct.setStatusTip(self.tr('Open UI files for display')) self.openUIAct.setWhatsThis(self.tr( @@ -172,7 +172,7 @@ self.openUIAct.triggered.connect(self.__openWidget) self.openQMAct = QAction( - UI.PixmapCache.getIcon("openQM.png"), + UI.PixmapCache.getIcon("openQM"), self.tr('Open &Translation Files...'), self) self.openQMAct.setStatusTip(self.tr( 'Open Translation files for display')) @@ -183,7 +183,7 @@ self.openQMAct.triggered.connect(self.__openTranslation) self.reloadAct = QAction( - UI.PixmapCache.getIcon("reload.png"), + UI.PixmapCache.getIcon("reload"), self.tr('&Reload Translations'), self) self.reloadAct.setStatusTip(self.tr( 'Reload the loaded translations')) @@ -195,7 +195,7 @@ self.reloadAct.triggered.connect(self.translations.reload) self.exitAct = QAction( - UI.PixmapCache.getIcon("exit.png"), self.tr('&Quit'), self) + UI.PixmapCache.getIcon("exit"), self.tr('&Quit'), self) self.exitAct.setShortcut(QKeySequence( self.tr("Ctrl+Q", "File|Quit"))) self.exitAct.setStatusTip(self.tr('Quit the application')) @@ -206,7 +206,7 @@ self.exitAct.triggered.connect(qApp.closeAllWindows) self.whatsThisAct = QAction( - UI.PixmapCache.getIcon("whatsThis.png"), + UI.PixmapCache.getIcon("whatsThis"), self.tr('&What\'s This?'), self) self.whatsThisAct.setShortcut(QKeySequence(self.tr("Shift+F1"))) self.whatsThisAct.setStatusTip(self.tr('Context sensitive help')) @@ -257,7 +257,7 @@ self.cascadeAct.triggered.connect(self.preview.cascadeSubWindows) self.closeAct = QAction( - UI.PixmapCache.getIcon("close.png"), self.tr('&Close'), self) + UI.PixmapCache.getIcon("close"), self.tr('&Close'), self) self.closeAct.setShortcut(QKeySequence(self.tr( "Ctrl+W", "File|Close"))) self.closeAct.setStatusTip(self.tr('Close the current window'))