Sat, 08 Mar 2014 20:09:41 +0100
Changed signal/slot usage to not use constructs like 'triggered[()].connect(...)' anymore.
--- a/Debugger/DebugServer.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Debugger/DebugServer.py Sat Mar 08 20:09:41 2014 +0100 @@ -186,7 +186,7 @@ self.clientClearBreak.connect(self.__clientClearBreakPoint) self.clientClearWatch.connect(self.__clientClearWatchPoint) - self.newConnection[()].connect(self.__newConnection) + self.newConnection.connect(self.__newConnection) self.breakpointModel.rowsAboutToBeRemoved.connect( self.__deleteBreakPoints)
--- a/Debugger/DebugUI.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Debugger/DebugUI.py Sat Mar 08 20:09:41 2014 +0100 @@ -180,7 +180,7 @@ """ the debugger. If the file has unsaved changes it may be""" """ saved first.</p>""" )) - self.runAct.triggered[()].connect(self.__runScript) + self.runAct.triggered.connect(self.__runScript) self.actions.append(self.runAct) self.runProjectAct = E5Action( @@ -196,7 +196,7 @@ """ If files of the current project have unsaved changes they""" """ may be saved first.</p>""" )) - self.runProjectAct.triggered[()].connect(self.__runProject) + self.runProjectAct.triggered.connect(self.__runProject) self.actions.append(self.runProjectAct) self.coverageAct = E5Action( @@ -212,7 +212,7 @@ """ the control of a coverage analysis tool. If the file has""" """ unsaved changes it may be saved first.</p>""" )) - self.coverageAct.triggered[()].connect(self.__coverageScript) + self.coverageAct.triggered.connect(self.__coverageScript) self.actions.append(self.coverageAct) self.coverageProjectAct = E5Action( @@ -229,7 +229,7 @@ """ If files of the current project have unsaved changes""" """ they may be saved first.</p>""" )) - self.coverageProjectAct.triggered[()].connect(self.__coverageProject) + self.coverageProjectAct.triggered.connect(self.__coverageProject) self.actions.append(self.coverageProjectAct) self.profileAct = E5Action( @@ -242,7 +242,7 @@ """<p>Set the command line arguments and profile the script.""" """ If the file has unsaved changes it may be saved first.</p>""" )) - self.profileAct.triggered[()].connect(self.__profileScript) + self.profileAct.triggered.connect(self.__profileScript) self.actions.append(self.profileAct) self.profileProjectAct = E5Action( @@ -258,7 +258,7 @@ """ project. If files of the current project have unsaved""" """ changes they may be saved first.</p>""" )) - self.profileProjectAct.triggered[()].connect(self.__profileProject) + self.profileProjectAct.triggered.connect(self.__profileProject) self.actions.append(self.profileProjectAct) self.debugAct = E5Action( @@ -274,7 +274,7 @@ """ editor window. If the file has unsaved changes it may be""" """ saved first.</p>""" )) - self.debugAct.triggered[()].connect(self.__debugScript) + self.debugAct.triggered.connect(self.__debugScript) self.actions.append(self.debugAct) self.debugProjectAct = E5Action( @@ -291,7 +291,7 @@ """ script of the current project. If files of the current""" """ project have unsaved changes they may be saved first.</p>""" )) - self.debugProjectAct.triggered[()].connect(self.__debugProject) + self.debugProjectAct.triggered.connect(self.__debugProject) self.actions.append(self.debugProjectAct) self.restartAct = E5Action( @@ -307,7 +307,7 @@ """ that was debugged last. If there are unsaved changes, they""" """ may be saved first.</p>""" )) - self.restartAct.triggered[()].connect(self.__doRestart) + self.restartAct.triggered.connect(self.__doRestart) self.actions.append(self.restartAct) self.stopAct = E5Action( @@ -320,7 +320,7 @@ """<b>Stop</b>""" """<p>This stops the script running in the debugger backend.</p>""" )) - self.stopAct.triggered[()].connect(self.__stopScript) + self.stopAct.triggered.connect(self.__stopScript) self.actions.append(self.stopAct) self.debugActGrp = createActionGroup(self) @@ -338,7 +338,7 @@ """ program will stop when it terminates or when a breakpoint""" """ is reached.</p>""" )) - act.triggered[()].connect(self.__continue) + act.triggered.connect(self.__continue) self.actions.append(act) act = E5Action( @@ -354,7 +354,7 @@ """<p>Continue running the program from the current line to the""" """ current cursor position.</p>""" )) - act.triggered[()].connect(self.__runToCursor) + act.triggered.connect(self.__runToCursor) self.actions.append(act) act = E5Action( @@ -370,7 +370,7 @@ """ method or function call then control is returned to the""" """ debugger at the next statement.</p>""" )) - act.triggered[()].connect(self.__step) + act.triggered.connect(self.__step) self.actions.append(act) act = E5Action( @@ -389,7 +389,7 @@ """ control is returned to the debugger after the statement""" """ has completed.</p>""" )) - act.triggered[()].connect(self.__stepOver) + act.triggered.connect(self.__stepOver) self.actions.append(act) act = E5Action( @@ -408,7 +408,7 @@ """ call then control is returned to the debugger after the""" """ current frame has been left.</p>""" )) - act.triggered[()].connect(self.__stepOut) + act.triggered.connect(self.__stepOut) self.actions.append(act) act = E5Action( @@ -421,7 +421,7 @@ """<b>Stop</b>""" """<p>Stop the running debugging session.</p>""" )) - act.triggered[()].connect(self.__stepQuit) + act.triggered.connect(self.__stepQuit) self.actions.append(act) self.debugActGrp2 = createActionGroup(self) @@ -437,7 +437,7 @@ """ debugged program. The result is displayed in the""" """ shell window.</p>""" )) - act.triggered[()].connect(self.__eval) + act.triggered.connect(self.__eval) self.actions.append(act) act = E5Action( @@ -451,7 +451,7 @@ """<p>Execute a one line statement in the current context""" """ of the debugged program.</p>""" )) - act.triggered[()].connect(self.__exec) + act.triggered.connect(self.__exec) self.actions.append(act) self.dbgFilterAct = E5Action( @@ -466,7 +466,7 @@ """ that are not selected are displayed in the global or local""" """ variables window during a debugging session.</p>""" )) - self.dbgFilterAct.triggered[()].connect( + self.dbgFilterAct.triggered.connect( self.__configureVariablesFilters) self.actions.append(self.dbgFilterAct) @@ -483,7 +483,7 @@ """ session.</p><p>Please note, that all unhandled exceptions""" """ are highlighted indepent from the filter list.</p>""" )) - self.excFilterAct.triggered[()].connect( + self.excFilterAct.triggered.connect( self.__configureExceptionsFilter) self.actions.append(self.excFilterAct) @@ -500,7 +500,7 @@ """ session.</p><p>Please note, that unhandled exceptions""" """ cannot be ignored.</p>""" )) - self.excIgnoreFilterAct.triggered[()].connect( + self.excIgnoreFilterAct.triggered.connect( self.__configureIgnoredExceptions) self.actions.append(self.excIgnoreFilterAct) @@ -518,7 +518,7 @@ """<p>Toggles a breakpoint at the current line of the""" """ current editor.</p>""" )) - self.dbgToggleBpAct.triggered[()].connect(self.__toggleBreakpoint) + self.dbgToggleBpAct.triggered.connect(self.__toggleBreakpoint) self.actions.append(self.dbgToggleBpAct) self.dbgEditBpAct = E5Action( @@ -533,7 +533,7 @@ """<p>Opens a dialog to edit the breakpoints properties.""" """ It works at the current line of the current editor.</p>""" )) - self.dbgEditBpAct.triggered[()].connect(self.__editBreakpoint) + self.dbgEditBpAct.triggered.connect(self.__editBreakpoint) self.actions.append(self.dbgEditBpAct) self.dbgNextBpAct = E5Action( @@ -548,7 +548,7 @@ """<b>Next Breakpoint</b>""" """<p>Go to next breakpoint of the current editor.</p>""" )) - self.dbgNextBpAct.triggered[()].connect(self.__nextBreakpoint) + self.dbgNextBpAct.triggered.connect(self.__nextBreakpoint) self.actions.append(self.dbgNextBpAct) self.dbgPrevBpAct = E5Action( @@ -563,7 +563,7 @@ """<b>Previous Breakpoint</b>""" """<p>Go to previous breakpoint of the current editor.</p>""" )) - self.dbgPrevBpAct.triggered[()].connect(self.__previousBreakpoint) + self.dbgPrevBpAct.triggered.connect(self.__previousBreakpoint) self.actions.append(self.dbgPrevBpAct) act = E5Action( @@ -577,7 +577,7 @@ """<b>Clear Breakpoints</b>""" """<p>Clear breakpoints of all editors.</p>""" )) - act.triggered[()].connect(self.__clearBreakpoints) + act.triggered.connect(self.__clearBreakpoints) self.actions.append(act) self.debugActGrp.setEnabled(False)
--- a/Debugger/DebugViewer.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Debugger/DebugViewer.py Sat Mar 08 20:09:41 2014 +0100 @@ -135,7 +135,7 @@ UI.PixmapCache.getIcon("globalVariables.png"), '') self.__tabWidget.setTabToolTip(index, self.globalsViewer.windowTitle()) - self.setGlobalsFilterButton.clicked[()].connect( + self.setGlobalsFilterButton.clicked.connect( self.__setGlobalsFilter) self.globalsFilterEdit.returnPressed.connect(self.__setGlobalsFilter) @@ -189,10 +189,10 @@ UI.PixmapCache.getIcon("localVariables.png"), '') self.__tabWidget.setTabToolTip(index, self.localsViewer.windowTitle()) - self.sourceButton.clicked[()].connect(self.__showSource) + self.sourceButton.clicked.connect(self.__showSource) self.stackComboBox.currentIndexChanged[int].connect( self.__frameSelected) - self.setLocalsFilterButton.clicked[()].connect(self.__setLocalsFilter) + self.setLocalsFilterButton.clicked.connect(self.__setLocalsFilter) self.localsFilterEdit.returnPressed.connect(self.__setLocalsFilter) from .CallStackViewer import CallStackViewer
--- a/Debugger/DebuggerInterfacePython.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Debugger/DebuggerInterfacePython.py Sat Mar 08 20:09:41 2014 +0100 @@ -384,8 +384,8 @@ if self.qsock is not None: return False - sock.disconnected[()].connect(self.debugServer.startClient) - sock.readyRead[()].connect(self.__parseClientLine) + sock.disconnected.connect(self.debugServer.startClient) + sock.readyRead.connect(self.__parseClientLine) self.qsock = sock @@ -415,7 +415,7 @@ # do not want any slots called during shutdown self.qsock.disconnected.disconnect(self.debugServer.startClient) - self.qsock.readyRead[()].disconnect(self.__parseClientLine) + self.qsock.readyRead.disconnect(self.__parseClientLine) # close down socket, and shut down client as well. self.__sendCommand('{0}\n'.format(DebugProtocol.RequestShutdown))
--- a/Debugger/DebuggerInterfacePython3.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Debugger/DebuggerInterfacePython3.py Sat Mar 08 20:09:41 2014 +0100 @@ -379,8 +379,8 @@ if self.qsock is not None: return False - sock.disconnected[()].connect(self.debugServer.startClient) - sock.readyRead[()].connect(self.__parseClientLine) + sock.disconnected.connect(self.debugServer.startClient) + sock.readyRead.connect(self.__parseClientLine) self.qsock = sock @@ -410,7 +410,7 @@ # do not want any slots called during shutdown self.qsock.disconnected.disconnect(self.debugServer.startClient) - self.qsock.readyRead[()].disconnect(self.__parseClientLine) + self.qsock.readyRead.disconnect(self.__parseClientLine) # close down socket, and shut down client as well. self.__sendCommand('{0}\n'.format(DebugProtocol.RequestShutdown))
--- a/Debugger/DebuggerInterfaceRuby.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Debugger/DebuggerInterfaceRuby.py Sat Mar 08 20:09:41 2014 +0100 @@ -349,8 +349,8 @@ if self.qsock is not None: return False - sock.disconnected[()].connect(self.debugServer.startClient) - sock.readyRead[()].connect(self.__parseClientLine) + sock.disconnected.connect(self.debugServer.startClient) + sock.readyRead.connect(self.__parseClientLine) self.qsock = sock @@ -380,7 +380,7 @@ # do not want any slots called during shutdown self.qsock.disconnected.disconnect(self.debugServer.startClient) - self.qsock.readyRead[()].disconnect(self.__parseClientLine) + self.qsock.readyRead.disconnect(self.__parseClientLine) # close down socket, and shut down client as well. self.__sendCommand('{0}\n'.format(DebugProtocol.RequestShutdown))
--- a/E5Gui/E5ErrorMessageFilterDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/E5Gui/E5ErrorMessageFilterDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -39,8 +39,8 @@ self.searchEdit.textChanged.connect( self.__proxyModel.setFilterFixedString) - self.removeButton.clicked[()].connect(self.filterList.removeSelected) - self.removeAllButton.clicked[()].connect(self.filterList.removeAll) + self.removeButton.clicked.connect(self.filterList.removeSelected) + self.removeAllButton.clicked.connect(self.filterList.removeAll) @pyqtSlot() def on_addButton_clicked(self):
--- a/E5Gui/E5LineEdit.py Fri Mar 07 19:20:36 2014 +0100 +++ b/E5Gui/E5LineEdit.py Sat Mar 08 20:09:41 2014 +0100 @@ -297,7 +297,7 @@ self.addWidget(self.__clearButton, side) self.__clearButton.setVisible(False) - self.__clearButton.clicked[()].connect(self.clear) + self.__clearButton.clicked.connect(self.clear) self.textChanged.connect(self.__textChanged) def __textChanged(self, txt):
--- a/E5Gui/E5LineEditButton.py Fri Mar 07 19:20:36 2014 +0100 +++ b/E5Gui/E5LineEditButton.py Sat Mar 08 20:09:41 2014 +0100 @@ -30,7 +30,7 @@ self.setCursor(Qt.ArrowCursor) self.setMinimumSize(16, 16) - self.clicked[()].connect(self.__clicked) + self.clicked.connect(self.__clicked) def setMenu(self, menu): """
--- a/E5Gui/E5ModelToolBar.py Fri Mar 07 19:20:36 2014 +0100 +++ b/E5Gui/E5ModelToolBar.py Sat Mar 08 20:09:41 2014 +0100 @@ -54,7 +54,7 @@ @param model reference to the model (QAbstractItemModel) """ if self.__model is not None: - self.__model.modelReset[()].disconnect(self._build) + self.__model.modelReset.disconnect(self._build) self.__model.rowsInserted[QModelIndex, int, int].disconnect( self._build) self.__model.rowsRemoved[QModelIndex, int, int].disconnect( @@ -65,7 +65,7 @@ self.__model = model if self.__model is not None: - self.__model.modelReset[()].connect(self._build) + self.__model.modelReset.connect(self._build) self.__model.rowsInserted[QModelIndex, int, int].connect( self._build) self.__model.rowsRemoved[QModelIndex, int, int].connect(
--- a/E5Gui/E5PassivePopup.py Fri Mar 07 19:20:36 2014 +0100 +++ b/E5Gui/E5PassivePopup.py Sat Mar 08 20:09:41 2014 +0100 @@ -42,7 +42,7 @@ self.setFrameStyle(QFrame.Box | QFrame.Plain) self.setLineWidth(2) self.__hideTimer.timeout.connect(self.hide) - self.clicked[()].connect(self.hide) + self.clicked.connect(self.hide) def setView(self, child): """ @@ -133,8 +133,8 @@ @param evt reference to the mouse event (QMouseEvent) """ - self.clicked[()].emit() - self.clicked[(QPoint, )].emit(evt.pos()) + self.clicked.emit() + self.clicked.emit(evt.pos()) def hideEvent(self, evt): """
--- a/E5Network/E5NetworkMonitor.py Fri Mar 07 19:20:36 2014 +0100 +++ b/E5Network/E5NetworkMonitor.py Sat Mar 08 20:09:41 2014 +0100 @@ -95,8 +95,8 @@ self.searchEdit.textChanged.connect( self.__proxyModel.setFilterFixedString) - self.removeButton.clicked[()].connect(self.requestsList.removeSelected) - self.removeAllButton.clicked[()].connect(self.requestsList.removeAll) + self.removeButton.clicked.connect(self.requestsList.removeSelected) + self.removeAllButton.clicked.connect(self.requestsList.removeAll) self.__model = E5RequestModel(networkAccessManager, self) self.__proxyModel.setSourceModel(self.__model) @@ -255,7 +255,7 @@ self.beginInsertRows( QModelIndex(), len(self.requests), len(self.requests)) self.requests.append(req) - req.reply.finished[()].connect(self.__addReply) + req.reply.finished.connect(self.__addReply) self.endInsertRows() def __addReply(self):
--- a/Graphics/PixmapDiagram.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Graphics/PixmapDiagram.py Sat Mar 08 20:09:41 2014 +0100 @@ -91,17 +91,17 @@ self.closeAct = \ QAction(UI.PixmapCache.getIcon("close.png"), self.tr("Close"), self) - self.closeAct.triggered[()].connect(self.close) + self.closeAct.triggered.connect(self.close) self.printAct = \ QAction(UI.PixmapCache.getIcon("print.png"), self.tr("Print"), self) - self.printAct.triggered[()].connect(self.__printDiagram) + self.printAct.triggered.connect(self.__printDiagram) self.printPreviewAct = \ QAction(UI.PixmapCache.getIcon("printPreview.png"), self.tr("Print Preview"), self) - self.printPreviewAct.triggered[()].connect(self.__printPreviewDiagram) + self.printPreviewAct.triggered.connect(self.__printPreviewDiagram) def __initContextMenu(self): """
--- a/Graphics/SvgDiagram.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Graphics/SvgDiagram.py Sat Mar 08 20:09:41 2014 +0100 @@ -90,17 +90,17 @@ self.closeAct = \ QAction(UI.PixmapCache.getIcon("close.png"), self.tr("Close"), self) - self.closeAct.triggered[()].connect(self.close) + self.closeAct.triggered.connect(self.close) self.printAct = \ QAction(UI.PixmapCache.getIcon("print.png"), self.tr("Print"), self) - self.printAct.triggered[()].connect(self.__printDiagram) + self.printAct.triggered.connect(self.__printDiagram) self.printPreviewAct = \ QAction(UI.PixmapCache.getIcon("printPreview.png"), self.tr("Print Preview"), self) - self.printPreviewAct.triggered[()].connect(self.__printPreviewDiagram) + self.printPreviewAct.triggered.connect(self.__printPreviewDiagram) def __initContextMenu(self): """
--- a/Graphics/UMLDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Graphics/UMLDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -7,7 +7,7 @@ Module implementing a dialog showing UML like diagrams. """ -from PyQt4.QtCore import Qt, QFileInfo +from PyQt4.QtCore import pyqtSlot, Qt, QFileInfo from PyQt4.QtGui import QAction, QToolBar, QGraphicsScene from E5Gui import E5MessageBox, E5FileDialog @@ -75,37 +75,37 @@ self.closeAct = \ QAction(UI.PixmapCache.getIcon("close.png"), self.tr("Close"), self) - self.closeAct.triggered[()].connect(self.close) + self.closeAct.triggered.connect(self.close) self.openAct = \ QAction(UI.PixmapCache.getIcon("open.png"), self.tr("Load"), self) - self.openAct.triggered[()].connect(self.load) + self.openAct.triggered.connect(self.load) self.saveAct = \ QAction(UI.PixmapCache.getIcon("fileSave.png"), self.tr("Save"), self) - self.saveAct.triggered[()].connect(self.__save) + self.saveAct.triggered.connect(self.__save) self.saveAsAct = \ QAction(UI.PixmapCache.getIcon("fileSaveAs.png"), self.tr("Save As..."), self) - self.saveAsAct.triggered[()].connect(self.__saveAs) + self.saveAsAct.triggered.connect(self.__saveAs) self.saveImageAct = \ QAction(UI.PixmapCache.getIcon("fileSavePixmap.png"), self.tr("Save as Image"), self) - self.saveImageAct.triggered[()].connect(self.umlView.saveImage) + self.saveImageAct.triggered.connect(self.umlView.saveImage) self.printAct = \ QAction(UI.PixmapCache.getIcon("print.png"), self.tr("Print"), self) - self.printAct.triggered[()].connect(self.umlView.printDiagram) + self.printAct.triggered.connect(self.umlView.printDiagram) self.printPreviewAct = \ QAction(UI.PixmapCache.getIcon("printPreview.png"), self.tr("Print Preview"), self) - self.printPreviewAct.triggered[()].connect( + self.printPreviewAct.triggered.connect( self.umlView.printPreviewDiagram) def __initToolBars(self): @@ -208,6 +208,7 @@ """ self.__saveAs(self.__fileName) + @pyqtSlot() def __saveAs(self, filename=""): """ Private slot to save the diagram.
--- a/Graphics/UMLGraphicsView.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Graphics/UMLGraphicsView.py Sat Mar 08 20:09:41 2014 +0100 @@ -77,86 +77,86 @@ self.deleteShapeAct = \ QAction(UI.PixmapCache.getIcon("deleteShape.png"), self.tr("Delete shapes"), self) - self.deleteShapeAct.triggered[()].connect(self.__deleteShape) + self.deleteShapeAct.triggered.connect(self.__deleteShape) self.incWidthAct = \ QAction(UI.PixmapCache.getIcon("sceneWidthInc.png"), self.tr("Increase width by {0} points").format( self.deltaSize), self) - self.incWidthAct.triggered[()].connect(self.__incWidth) + self.incWidthAct.triggered.connect(self.__incWidth) self.incHeightAct = \ QAction(UI.PixmapCache.getIcon("sceneHeightInc.png"), self.tr("Increase height by {0} points").format( self.deltaSize), self) - self.incHeightAct.triggered[()].connect(self.__incHeight) + self.incHeightAct.triggered.connect(self.__incHeight) self.decWidthAct = \ QAction(UI.PixmapCache.getIcon("sceneWidthDec.png"), self.tr("Decrease width by {0} points").format( self.deltaSize), self) - self.decWidthAct.triggered[()].connect(self.__decWidth) + self.decWidthAct.triggered.connect(self.__decWidth) self.decHeightAct = \ QAction(UI.PixmapCache.getIcon("sceneHeightDec.png"), self.tr("Decrease height by {0} points").format( self.deltaSize), self) - self.decHeightAct.triggered[()].connect(self.__decHeight) + self.decHeightAct.triggered.connect(self.__decHeight) self.setSizeAct = \ QAction(UI.PixmapCache.getIcon("sceneSize.png"), self.tr("Set size"), self) - self.setSizeAct.triggered[()].connect(self.__setSize) + self.setSizeAct.triggered.connect(self.__setSize) self.rescanAct = \ QAction(UI.PixmapCache.getIcon("rescan.png"), self.tr("Re-Scan"), self) - self.rescanAct.triggered[()].connect(self.__rescan) + self.rescanAct.triggered.connect(self.__rescan) self.relayoutAct = \ QAction(UI.PixmapCache.getIcon("relayout.png"), self.tr("Re-Layout"), self) - self.relayoutAct.triggered[()].connect(self.__relayout) + self.relayoutAct.triggered.connect(self.__relayout) self.alignLeftAct = \ QAction(UI.PixmapCache.getIcon("shapesAlignLeft.png"), self.tr("Align Left"), self) self.alignMapper.setMapping(self.alignLeftAct, Qt.AlignLeft) - self.alignLeftAct.triggered[()].connect(self.alignMapper.map) + self.alignLeftAct.triggered.connect(self.alignMapper.map) self.alignHCenterAct = \ QAction(UI.PixmapCache.getIcon("shapesAlignHCenter.png"), self.tr("Align Center Horizontal"), self) self.alignMapper.setMapping(self.alignHCenterAct, Qt.AlignHCenter) - self.alignHCenterAct.triggered[()].connect(self.alignMapper.map) + self.alignHCenterAct.triggered.connect(self.alignMapper.map) self.alignRightAct = \ QAction(UI.PixmapCache.getIcon("shapesAlignRight.png"), self.tr("Align Right"), self) self.alignMapper.setMapping(self.alignRightAct, Qt.AlignRight) - self.alignRightAct.triggered[()].connect(self.alignMapper.map) + self.alignRightAct.triggered.connect(self.alignMapper.map) self.alignTopAct = \ QAction(UI.PixmapCache.getIcon("shapesAlignTop.png"), self.tr("Align Top"), self) self.alignMapper.setMapping(self.alignTopAct, Qt.AlignTop) - self.alignTopAct.triggered[()].connect(self.alignMapper.map) + self.alignTopAct.triggered.connect(self.alignMapper.map) self.alignVCenterAct = \ QAction(UI.PixmapCache.getIcon("shapesAlignVCenter.png"), self.tr("Align Center Vertical"), self) self.alignMapper.setMapping(self.alignVCenterAct, Qt.AlignVCenter) - self.alignVCenterAct.triggered[()].connect(self.alignMapper.map) + self.alignVCenterAct.triggered.connect(self.alignMapper.map) self.alignBottomAct = \ QAction(UI.PixmapCache.getIcon("shapesAlignBottom.png"), self.tr("Align Bottom"), self) self.alignMapper.setMapping(self.alignBottomAct, Qt.AlignBottom) - self.alignBottomAct.triggered[()].connect(self.alignMapper.map) + self.alignBottomAct.triggered.connect(self.alignMapper.map) def __checkSizeActions(self): """
--- a/Helpviewer/AdBlock/AdBlockSubscription.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/AdBlock/AdBlockSubscription.py Sat Mar 08 20:09:41 2014 +0100 @@ -358,7 +358,7 @@ self.__downloading = FollowRedirectReply( self.location(), Helpviewer.HelpWindow.HelpWindow.networkAccessManager()) - self.__downloading.finished[()].connect(self.__rulesDownloaded) + self.__downloading.finished.connect(self.__rulesDownloaded) def __rulesDownloaded(self): """
--- a/Helpviewer/Bookmarks/BookmarksDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Bookmarks/BookmarksDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -62,9 +62,9 @@ self.bookmarksTree.customContextMenuRequested.connect( self.__customContextMenuRequested) - self.removeButton.clicked[()].connect( + self.removeButton.clicked.connect( self.bookmarksTree.removeSelected) - self.addFolderButton.clicked[()].connect(self.__newFolder) + self.addFolderButton.clicked.connect(self.__newFolder) self.__expandNodes(self.__bookmarksManager.bookmarks())
--- a/Helpviewer/Bookmarks/BookmarksMenu.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Bookmarks/BookmarksMenu.py Sat Mar 08 20:09:41 2014 +0100 @@ -93,7 +93,7 @@ self.addSeparator() act = self.addAction(self.tr("Open all in Tabs")) - act.triggered[()].connect(self.openAll) + act.triggered.connect(self.openAll) def openAll(self): """ @@ -276,13 +276,13 @@ self.addSeparator() act = self.addAction(self.tr("Default Home Page")) act.setData("eric:home") - act.triggered[()].connect(self.__defaultBookmarkTriggered) + act.triggered.connect(self.__defaultBookmarkTriggered) act = self.addAction(self.tr("Speed Dial")) act.setData("eric:speeddial") - act.triggered[()].connect(self.__defaultBookmarkTriggered) + act.triggered.connect(self.__defaultBookmarkTriggered) self.addSeparator() act = self.addAction(self.tr("Open all in Tabs")) - act.triggered[()].connect(self.openAll) + act.triggered.connect(self.openAll) def setInitialActions(self, actions): """
--- a/Helpviewer/CookieJar/CookiesDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/CookieJar/CookiesDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -33,8 +33,8 @@ self.__cookieJar = cookieJar - self.removeButton.clicked[()].connect(self.cookiesTable.removeSelected) - self.removeAllButton.clicked[()].connect(self.cookiesTable.removeAll) + self.removeButton.clicked.connect(self.cookiesTable.removeSelected) + self.removeAllButton.clicked.connect(self.cookiesTable.removeAll) self.cookiesTable.verticalHeader().hide() model = CookieModel(cookieJar, self)
--- a/Helpviewer/CookieJar/CookiesExceptionsDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/CookieJar/CookiesExceptionsDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -33,9 +33,9 @@ self.__cookieJar = cookieJar - self.removeButton.clicked[()].connect( + self.removeButton.clicked.connect( self.exceptionsTable.removeSelected) - self.removeAllButton.clicked[()].connect( + self.removeAllButton.clicked.connect( self.exceptionsTable.removeAll) self.exceptionsTable.verticalHeader().hide()
--- a/Helpviewer/Download/DownloadItem.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Download/DownloadItem.py Sat Mar 08 20:09:41 2014 +0100 @@ -134,11 +134,11 @@ self.__url = self.__reply.url() self.__reply.setParent(self) self.__reply.setReadBufferSize(16 * 1024 * 1024) - self.__reply.readyRead[()].connect(self.__readyRead) + self.__reply.readyRead.connect(self.__readyRead) self.__reply.error.connect(self.__networkError) self.__reply.downloadProgress.connect(self.__downloadProgress) self.__reply.metaDataChanged.connect(self.__metaDataChanged) - self.__reply.finished[()].connect(self.__finished) + self.__reply.finished.connect(self.__finished) # reset info self.infoLabel.clear() @@ -348,10 +348,10 @@ @param checked flag indicating the state of the button (boolean) """ if checked: - self.__reply.readyRead[()].disconnect(self.__readyRead) + self.__reply.readyRead.disconnect(self.__readyRead) self.__reply.setReadBufferSize(16 * 1024) else: - self.__reply.readyRead[()].connect(self.__readyRead) + self.__reply.readyRead.connect(self.__readyRead) self.__reply.setReadBufferSize(16 * 1024 * 1024) self.__readyRead()
--- a/Helpviewer/Feeds/FeedsDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Feeds/FeedsDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -47,7 +47,7 @@ label.setText(feed[0]) self.feedsLayout.addWidget(label, row, 0) self.feedsLayout.addWidget(button, row, 1) - button.clicked[()].connect(self.__addFeed) + button.clicked.connect(self.__addFeed) def __addFeed(self): """
--- a/Helpviewer/Feeds/FeedsManager.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Feeds/FeedsManager.py Sat Mar 08 20:09:41 2014 +0100 @@ -256,7 +256,7 @@ request = QNetworkRequest(QUrl(urlString)) reply = Helpviewer.HelpWindow.HelpWindow.networkAccessManager()\ .get(request) - reply.finished[()].connect(self.__feedLoaded) + reply.finished.connect(self.__feedLoaded) self.__replies[id(reply)] = (reply, itm) def __feedLoaded(self):
--- a/Helpviewer/HelpTabWidget.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/HelpTabWidget.py Sat Mar 08 20:09:41 2014 +0100 @@ -9,7 +9,7 @@ import os -from PyQt4.QtCore import pyqtSignal, Qt, QUrl +from PyQt4.QtCore import pyqtSignal, pyqtSlot, Qt, QUrl from PyQt4.QtGui import QWidget, QHBoxLayout, QMenu, QToolButton, QPrinter, \ QPrintDialog, QDialog, QIcon from PyQt4.QtNetwork import QNetworkAccessManager, QNetworkRequest @@ -495,6 +495,7 @@ li.append(self.widget(index)) return li + @pyqtSlot() def printBrowser(self, browser=None): """ Public slot called to print the displayed page. @@ -545,6 +546,7 @@ """ PyQt4. Please upgrade.</p>""")) return + @pyqtSlot() def printBrowserPdf(self, browser=None): """ Public slot called to print the displayed page to PDF. @@ -590,6 +592,7 @@ """ PyQt4. Please upgrade.</p>""")) return + @pyqtSlot() def printPreviewBrowser(self, browser=None): """ Public slot called to show a print preview of the displayed file.
--- a/Helpviewer/HelpWebSearchWidget.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/HelpWebSearchWidget.py Sat Mar 08 20:09:41 2014 +0100 @@ -63,9 +63,9 @@ QCompleter.UnfilteredPopupCompletion) self.__completer.setWidget(self) - self.__searchButton.clicked[()].connect(self.__searchButtonClicked) + self.__searchButton.clicked.connect(self.__searchButtonClicked) self.textEdited.connect(self.__textEdited) - self.returnPressed[()].connect(self.__searchNow) + self.returnPressed.connect(self.__searchNow) self.__completer.activated[QModelIndex].connect( self.__completerActivated) self.__completer.highlighted[QModelIndex].connect( @@ -237,7 +237,7 @@ engine = self.__openSearchManager.engine(engineName) action = OpenSearchEngineAction(engine, self.__enginesMenu) action.setData(engineName) - action.triggered[()].connect(self.__changeCurrentEngine) + action.triggered.connect(self.__changeCurrentEngine) self.__enginesMenu.addAction(action) if self.__openSearchManager.currentEngineName() == engineName:
--- a/Helpviewer/HelpWindow.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/HelpWindow.py Sat Mar 08 20:09:41 2014 +0100 @@ -442,7 +442,7 @@ """<p>This opens a new help window tab.</p>""" )) if not self.initShortcutsOnly: - self.newTabAct.triggered[()].connect(self.newTab) + self.newTabAct.triggered.connect(self.newTab) self.__actions.append(self.newTabAct) self.newAct = E5Action( @@ -457,7 +457,7 @@ """<p>This opens a new help browser window.</p>""" )) if not self.initShortcutsOnly: - self.newAct.triggered[()].connect(self.newWindow) + self.newAct.triggered.connect(self.newWindow) self.__actions.append(self.newAct) self.openAct = E5Action( @@ -473,7 +473,7 @@ """ It pops up a file selection dialog.</p>""" )) if not self.initShortcutsOnly: - self.openAct.triggered[()].connect(self.__openFile) + self.openAct.triggered.connect(self.__openFile) self.__actions.append(self.openAct) self.openTabAct = E5Action( @@ -490,7 +490,7 @@ """ It pops up a file selection dialog.</p>""" )) if not self.initShortcutsOnly: - self.openTabAct.triggered[()].connect(self.__openFileNewTab) + self.openTabAct.triggered.connect(self.__openFileNewTab) self.__actions.append(self.openTabAct) self.saveAsAct = E5Action( @@ -506,7 +506,7 @@ """<p>Saves the current page to disk.</p>""" )) if not self.initShortcutsOnly: - self.saveAsAct.triggered[()].connect(self.__savePageAs) + self.saveAsAct.triggered.connect(self.__savePageAs) self.__actions.append(self.saveAsAct) self.savePageScreenAct = E5Action( @@ -521,7 +521,7 @@ """<p>Saves the current page as a screen shot.</p>""" )) if not self.initShortcutsOnly: - self.savePageScreenAct.triggered[()].connect(self.__savePageScreen) + self.savePageScreenAct.triggered.connect(self.__savePageScreen) self.__actions.append(self.savePageScreenAct) self.saveVisiblePageScreenAct = E5Action( @@ -538,7 +538,7 @@ """ screen shot.</p>""" )) if not self.initShortcutsOnly: - self.saveVisiblePageScreenAct.triggered[()].connect( + self.saveVisiblePageScreenAct.triggered.connect( self.__saveVisiblePageScreen) self.__actions.append(self.saveVisiblePageScreenAct) @@ -554,7 +554,7 @@ """<p>Import bookmarks from other browsers.</p>""" )) if not self.initShortcutsOnly: - self.importBookmarksAct.triggered[()].connect( + self.importBookmarksAct.triggered.connect( bookmarksManager.importBookmarks) self.__actions.append(self.importBookmarksAct) @@ -569,7 +569,7 @@ """<p>Export the bookmarks into a file.</p>""" )) if not self.initShortcutsOnly: - self.exportBookmarksAct.triggered[()].connect( + self.exportBookmarksAct.triggered.connect( bookmarksManager.exportBookmarks) self.__actions.append(self.exportBookmarksAct) @@ -585,7 +585,7 @@ """<p>Print the displayed help text.</p>""" )) if not self.initShortcutsOnly: - self.printAct.triggered[()].connect(self.tabWidget.printBrowser) + self.printAct.triggered.connect(self.tabWidget.printBrowser) self.__actions.append(self.printAct) self.printPdfAct = E5Action( @@ -600,7 +600,7 @@ """<p>Print the displayed help text as a PDF file.</p>""" )) if not self.initShortcutsOnly: - self.printPdfAct.triggered[()].connect( + self.printPdfAct.triggered.connect( self.tabWidget.printBrowserPdf) self.__actions.append(self.printPdfAct) @@ -616,7 +616,7 @@ """<p>Print preview of the displayed help text.</p>""" )) if not self.initShortcutsOnly: - self.printPreviewAct.triggered[()].connect( + self.printPreviewAct.triggered.connect( self.tabWidget.printPreviewBrowser) self.__actions.append(self.printPreviewAct) @@ -633,7 +633,7 @@ """<p>Closes the current help window.</p>""" )) if not self.initShortcutsOnly: - self.closeAct.triggered[()].connect(self.tabWidget.closeBrowser) + self.closeAct.triggered.connect(self.tabWidget.closeBrowser) self.__actions.append(self.closeAct) self.closeAllAct = E5Action( @@ -646,7 +646,7 @@ """<p>Closes all help windows except the first one.</p>""" )) if not self.initShortcutsOnly: - self.closeAllAct.triggered[()].connect( + self.closeAllAct.triggered.connect( self.tabWidget.closeAllBrowsers) self.__actions.append(self.closeAllAct) @@ -662,7 +662,7 @@ """ recorded anymore.</p>""" )) if not self.initShortcutsOnly: - self.privateBrowsingAct.triggered[()].connect( + self.privateBrowsingAct.triggered.connect( self.__privateBrowsing) self.privateBrowsingAct.setCheckable(True) self.__actions.append(self.privateBrowsingAct) @@ -680,9 +680,9 @@ )) if not self.initShortcutsOnly: if self.fromEric: - self.exitAct.triggered[()].connect(self.close) + self.exitAct.triggered.connect(self.close) else: - self.exitAct.triggered[()].connect(self.__closeAllWindows) + self.exitAct.triggered.connect(self.__closeAllWindows) self.__actions.append(self.exitAct) self.backAct = E5Action( @@ -699,7 +699,7 @@ """ available, this action is disabled.</p>""" )) if not self.initShortcutsOnly: - self.backAct.triggered[()].connect(self.__backward) + self.backAct.triggered.connect(self.__backward) self.__actions.append(self.backAct) self.forwardAct = E5Action( @@ -717,7 +717,7 @@ """ available, this action is disabled.</p>""" )) if not self.initShortcutsOnly: - self.forwardAct.triggered[()].connect(self.__forward) + self.forwardAct.triggered.connect(self.__forward) self.__actions.append(self.forwardAct) self.homeAct = E5Action( @@ -733,7 +733,7 @@ """<p>Moves to the initial help screen.</p>""" )) if not self.initShortcutsOnly: - self.homeAct.triggered[()].connect(self.__home) + self.homeAct.triggered.connect(self.__home) self.__actions.append(self.homeAct) self.reloadAct = E5Action( @@ -750,7 +750,7 @@ """<p>Reloads the current help screen.</p>""" )) if not self.initShortcutsOnly: - self.reloadAct.triggered[()].connect(self.__reload) + self.reloadAct.triggered.connect(self.__reload) self.__actions.append(self.reloadAct) self.stopAct = E5Action( @@ -766,7 +766,7 @@ """<p>Stops loading of the current tab.</p>""" )) if not self.initShortcutsOnly: - self.stopAct.triggered[()].connect(self.__stopLoading) + self.stopAct.triggered.connect(self.__stopLoading) self.__actions.append(self.stopAct) self.copyAct = E5Action( @@ -781,7 +781,7 @@ """<p>Copy the selected text to the clipboard.</p>""" )) if not self.initShortcutsOnly: - self.copyAct.triggered[()].connect(self.__copy) + self.copyAct.triggered.connect(self.__copy) self.__actions.append(self.copyAct) self.findAct = E5Action( @@ -796,7 +796,7 @@ """<p>Find text in the current page.</p>""" )) if not self.initShortcutsOnly: - self.findAct.triggered[()].connect(self.__find) + self.findAct.triggered.connect(self.__find) self.__actions.append(self.findAct) self.findNextAct = E5Action( @@ -812,7 +812,7 @@ """<p>Find the next occurrence of text in the current page.</p>""" )) if not self.initShortcutsOnly: - self.findNextAct.triggered[()].connect(self.findDlg.findNext) + self.findNextAct.triggered.connect(self.findDlg.findNext) self.__actions.append(self.findNextAct) self.findPrevAct = E5Action( @@ -829,7 +829,7 @@ """ page.</p>""" )) if not self.initShortcutsOnly: - self.findPrevAct.triggered[()].connect(self.findDlg.findPrevious) + self.findPrevAct.triggered.connect(self.findDlg.findPrevious) self.__actions.append(self.findPrevAct) self.bookmarksManageAct = E5Action( @@ -844,7 +844,7 @@ """<p>Open a dialog to manage the bookmarks.</p>""" )) if not self.initShortcutsOnly: - self.bookmarksManageAct.triggered[()].connect( + self.bookmarksManageAct.triggered.connect( self.__showBookmarksDialog) self.__actions.append(self.bookmarksManageAct) @@ -862,7 +862,7 @@ """<p>Open a dialog to add the current URL as a bookmark.</p>""" )) if not self.initShortcutsOnly: - self.bookmarksAddAct.triggered[()].connect(self.__addBookmark) + self.bookmarksAddAct.triggered.connect(self.__addBookmark) self.__actions.append(self.bookmarksAddAct) self.bookmarksAddFolderAct = E5Action( @@ -876,7 +876,7 @@ """<p>Open a dialog to add a new bookmarks folder.</p>""" )) if not self.initShortcutsOnly: - self.bookmarksAddFolderAct.triggered[()].connect( + self.bookmarksAddFolderAct.triggered.connect( self.__addBookmarkFolder) self.__actions.append(self.bookmarksAddFolderAct) @@ -892,7 +892,7 @@ """ all open tabs.</p>""" )) if not self.initShortcutsOnly: - self.bookmarksAllTabsAct.triggered[()].connect(self.bookmarkAll) + self.bookmarksAllTabsAct.triggered.connect(self.bookmarkAll) self.__actions.append(self.bookmarksAllTabsAct) self.whatsThisAct = E5Action( @@ -911,7 +911,7 @@ """ the context help button in the titlebar.</p>""" )) if not self.initShortcutsOnly: - self.whatsThisAct.triggered[()].connect(self.__whatsThis) + self.whatsThisAct.triggered.connect(self.__whatsThis) self.__actions.append(self.whatsThisAct) self.aboutAct = E5Action( @@ -925,7 +925,7 @@ """<p>Display some information about this software.</p>""" )) if not self.initShortcutsOnly: - self.aboutAct.triggered[()].connect(self.__about) + self.aboutAct.triggered.connect(self.__about) self.__actions.append(self.aboutAct) self.aboutQtAct = E5Action( @@ -939,7 +939,7 @@ """<p>Display some information about the Qt toolkit.</p>""" )) if not self.initShortcutsOnly: - self.aboutQtAct.triggered[()].connect(self.__aboutQt) + self.aboutQtAct.triggered.connect(self.__aboutQt) self.__actions.append(self.aboutQtAct) self.zoomInAct = E5Action( @@ -955,7 +955,7 @@ """<p>Zoom in on the text. This makes the text bigger.</p>""" )) if not self.initShortcutsOnly: - self.zoomInAct.triggered[()].connect(self.__zoomIn) + self.zoomInAct.triggered.connect(self.__zoomIn) self.__actions.append(self.zoomInAct) self.zoomOutAct = E5Action( @@ -971,7 +971,7 @@ """<p>Zoom out on the text. This makes the text smaller.</p>""" )) if not self.initShortcutsOnly: - self.zoomOutAct.triggered[()].connect(self.__zoomOut) + self.zoomOutAct.triggered.connect(self.__zoomOut) self.__actions.append(self.zoomOutAct) self.zoomResetAct = E5Action( @@ -988,7 +988,7 @@ """This sets the zoom factor to 100%.</p>""" )) if not self.initShortcutsOnly: - self.zoomResetAct.triggered[()].connect(self.__zoomReset) + self.zoomResetAct.triggered.connect(self.__zoomReset) self.__actions.append(self.zoomResetAct) if hasattr(QWebSettings, 'ZoomTextOnly'): @@ -1022,7 +1022,7 @@ """<p>Show the page source in an editor.</p>""" )) if not self.initShortcutsOnly: - self.pageSourceAct.triggered[()].connect(self.__showPageSource) + self.pageSourceAct.triggered.connect(self.__showPageSource) self.__actions.append(self.pageSourceAct) self.addAction(self.pageSourceAct) @@ -1033,7 +1033,7 @@ QKeySequence(self.tr('F11')), 0, self, 'help_view_full_scree') if not self.initShortcutsOnly: - self.fullScreenAct.triggered[()].connect(self.__viewFullScreen) + self.fullScreenAct.triggered.connect(self.__viewFullScreen) self.__actions.append(self.fullScreenAct) self.addAction(self.fullScreenAct) @@ -1043,7 +1043,7 @@ QKeySequence(self.tr('Ctrl+Alt+Tab')), 0, self, 'help_view_next_tab') if not self.initShortcutsOnly: - self.nextTabAct.triggered[()].connect(self.__nextTab) + self.nextTabAct.triggered.connect(self.__nextTab) self.__actions.append(self.nextTabAct) self.addAction(self.nextTabAct) @@ -1053,7 +1053,7 @@ QKeySequence(self.tr('Shift+Ctrl+Alt+Tab')), 0, self, 'help_view_previous_tab') if not self.initShortcutsOnly: - self.prevTabAct.triggered[()].connect(self.__prevTab) + self.prevTabAct.triggered.connect(self.__prevTab) self.__actions.append(self.prevTabAct) self.addAction(self.prevTabAct) @@ -1063,7 +1063,7 @@ QKeySequence(self.tr('Ctrl+1')), 0, self, 'help_switch_tabs') if not self.initShortcutsOnly: - self.switchTabAct.triggered[()].connect(self.__switchTab) + self.switchTabAct.triggered.connect(self.__switchTab) self.__actions.append(self.switchTabAct) self.addAction(self.switchTabAct) @@ -1079,7 +1079,7 @@ """ with your prefered values.</p>""" )) if not self.initShortcutsOnly: - self.prefAct.triggered[()].connect(self.__showPreferences) + self.prefAct.triggered.connect(self.__showPreferences) self.__actions.append(self.prefAct) self.acceptedLanguagesAct = E5Action( @@ -1094,7 +1094,7 @@ """<p>Configure the accepted languages for web pages.</p>""" )) if not self.initShortcutsOnly: - self.acceptedLanguagesAct.triggered[()].connect( + self.acceptedLanguagesAct.triggered.connect( self.__showAcceptedLanguages) self.__actions.append(self.acceptedLanguagesAct) @@ -1109,7 +1109,7 @@ """<p>Configure cookies handling.</p>""" )) if not self.initShortcutsOnly: - self.cookiesAct.triggered[()].connect( + self.cookiesAct.triggered.connect( self.__showCookiesConfiguration) self.__actions.append(self.cookiesAct) @@ -1125,7 +1125,7 @@ """<p>Opens a dialog to configure offline storage.</p>""" )) if not self.initShortcutsOnly: - self.offlineStorageAct.triggered[()].connect( + self.offlineStorageAct.triggered.connect( self.__showOfflineStorageConfiguration) self.__actions.append(self.offlineStorageAct) @@ -1143,7 +1143,7 @@ """ used for completing form fields.</p>""" )) if not self.initShortcutsOnly: - self.personalDataAct.triggered[()].connect( + self.personalDataAct.triggered.connect( self.__showPersonalInformationDialog) self.__actions.append(self.personalDataAct) @@ -1161,7 +1161,7 @@ """ Scripts.</p>""" )) if not self.initShortcutsOnly: - self.greaseMonkeyAct.triggered[()].connect( + self.greaseMonkeyAct.triggered.connect( self.__showGreaseMonkeyConfigDialog) self.__actions.append(self.greaseMonkeyAct) @@ -1179,7 +1179,7 @@ """ window.</p>""" )) if not self.initShortcutsOnly: - self.editMessageFilterAct.triggered[()].connect( + self.editMessageFilterAct.triggered.connect( E5ErrorMessage.editMessageFilters) self.__actions.append(self.editMessageFilterAct) @@ -1197,7 +1197,7 @@ """ page.</p>""" )) if not self.initShortcutsOnly: - self.syncTocAct.triggered[()].connect(self.__syncTOC) + self.syncTocAct.triggered.connect(self.__syncTOC) self.__actions.append(self.syncTocAct) self.showTocAct = E5Action( @@ -1211,7 +1211,7 @@ """<p>Shows the table of contents window.</p>""" )) if not self.initShortcutsOnly: - self.showTocAct.triggered[()].connect(self.__showTocWindow) + self.showTocAct.triggered.connect(self.__showTocWindow) self.__actions.append(self.showTocAct) self.showIndexAct = E5Action( @@ -1225,7 +1225,7 @@ """<p>Shows the index window.</p>""" )) if not self.initShortcutsOnly: - self.showIndexAct.triggered[()].connect(self.__showIndexWindow) + self.showIndexAct.triggered.connect(self.__showIndexWindow) self.__actions.append(self.showIndexAct) self.showSearchAct = E5Action( @@ -1239,7 +1239,7 @@ """<p>Shows the search window.</p>""" )) if not self.initShortcutsOnly: - self.showSearchAct.triggered[()].connect( + self.showSearchAct.triggered.connect( self.__showSearchWindow) self.__actions.append(self.showSearchAct) @@ -1255,7 +1255,7 @@ """ set.</p>""" )) if not self.initShortcutsOnly: - self.manageQtHelpDocsAct.triggered[()].connect( + self.manageQtHelpDocsAct.triggered.connect( self.__manageQtHelpDocumentation) self.__actions.append(self.manageQtHelpDocsAct) @@ -1270,7 +1270,7 @@ """<p>Shows a dialog to manage the QtHelp filters.</p>""" )) if not self.initShortcutsOnly: - self.manageQtHelpFiltersAct.triggered[()].connect( + self.manageQtHelpFiltersAct.triggered.connect( self.__manageQtHelpFilters) self.__actions.append(self.manageQtHelpFiltersAct) @@ -1285,7 +1285,7 @@ """<p>Reindexes the documentation set.</p>""" )) if not self.initShortcutsOnly: - self.reindexDocumentationAct.triggered[()].connect( + self.reindexDocumentationAct.triggered.connect( self.__searchEngine.reindexDocumentation) self.__actions.append(self.reindexDocumentationAct) @@ -1302,7 +1302,7 @@ """ history or the favicons database.</p>""" )) if not self.initShortcutsOnly: - self.clearPrivateDataAct.triggered[()].connect( + self.clearPrivateDataAct.triggered.connect( self.__clearPrivateData) self.__actions.append(self.clearPrivateDataAct) @@ -1319,7 +1319,7 @@ """ URLs.</p>""" )) if not self.initShortcutsOnly: - self.clearIconsAct.triggered[()].connect(self.__clearIconsDatabase) + self.clearIconsAct.triggered.connect(self.__clearIconsDatabase) self.__actions.append(self.clearIconsAct) self.searchEnginesAct = E5Action( @@ -1335,7 +1335,7 @@ """ engines.</p>""" )) if not self.initShortcutsOnly: - self.searchEnginesAct.triggered[()].connect( + self.searchEnginesAct.triggered.connect( self.__showEnginesConfigurationDialog) self.__actions.append(self.searchEnginesAct) @@ -1352,7 +1352,7 @@ """<p>Opens a dialog to manage the saved passwords.</p>""" )) if not self.initShortcutsOnly: - self.passwordsAct.triggered[()].connect(self.__showPasswordsDialog) + self.passwordsAct.triggered.connect(self.__showPasswordsDialog) self.__actions.append(self.passwordsAct) self.adblockAct = E5Action( @@ -1369,7 +1369,7 @@ """ rules.</p>""" )) if not self.initShortcutsOnly: - self.adblockAct.triggered[()].connect(self.__showAdBlockDialog) + self.adblockAct.triggered.connect(self.__showAdBlockDialog) self.__actions.append(self.adblockAct) self.flashblockAct = E5Action( @@ -1386,7 +1386,7 @@ """ whitelist.</p>""" )) if not self.initShortcutsOnly: - self.flashblockAct.triggered[()].connect( + self.flashblockAct.triggered.connect( self.__showClickToFlashDialog) self.__actions.append(self.flashblockAct) @@ -1405,7 +1405,7 @@ """ certificates.</p>""" )) if not self.initShortcutsOnly: - self.certificatesAct.triggered[()].connect( + self.certificatesAct.triggered.connect( self.__showCertificatesDialog) self.__actions.append(self.certificatesAct) @@ -1421,7 +1421,7 @@ """<p>Shows the network monitor dialog.</p>""" )) if not self.initShortcutsOnly: - self.toolsMonitorAct.triggered[()].connect( + self.toolsMonitorAct.triggered.connect( self.__showNetworkMonitor) self.__actions.append(self.toolsMonitorAct) @@ -1436,7 +1436,7 @@ """<p>Shows the downloads window.</p>""" )) if not self.initShortcutsOnly: - self.showDownloadManagerAct.triggered[()].connect( + self.showDownloadManagerAct.triggered.connect( self.__showDownloadsWindow) self.__actions.append(self.showDownloadManagerAct) @@ -1455,7 +1455,7 @@ """ contents.</p>""" )) if not self.initShortcutsOnly: - self.feedsManagerAct.triggered[()].connect(self.__showFeedsManager) + self.feedsManagerAct.triggered.connect(self.__showFeedsManager) self.__actions.append(self.feedsManagerAct) self.siteInfoAct = E5Action( @@ -1472,7 +1472,7 @@ """ site.</p>""" )) if not self.initShortcutsOnly: - self.siteInfoAct.triggered[()].connect(self.__showSiteinfoDialog) + self.siteInfoAct.triggered.connect(self.__showSiteinfoDialog) self.__actions.append(self.siteInfoAct) self.userAgentManagerAct = E5Action( @@ -1486,7 +1486,7 @@ """<p>Shows a dialog to manage the User Agent settings.</p>""" )) if not self.initShortcutsOnly: - self.userAgentManagerAct.triggered[()].connect( + self.userAgentManagerAct.triggered.connect( self.__showUserAgentsDialog) self.__actions.append(self.userAgentManagerAct) @@ -1503,7 +1503,7 @@ """ network.</p>""" )) if not self.initShortcutsOnly: - self.synchronizationAct.triggered[()].connect( + self.synchronizationAct.triggered.connect( self.__showSyncDialog) self.__actions.append(self.synchronizationAct) @@ -1934,6 +1934,7 @@ self.historyManager().updateHistoryEntry( browser.url().toString(), title) + @pyqtSlot() def newTab(self, link=None, requestData=None, addNextTo=None): """ Public slot called to open a new help window tab. @@ -1949,6 +1950,7 @@ else: self.tabWidget.newBrowser(link, requestData) + @pyqtSlot() def newWindow(self, link=None): """ Public slot called to open a new help browser dialog. @@ -2035,7 +2037,8 @@ browser = self.currentBrowser() if browser is not None: browser.saveAs() - + + @pyqtSlot() def __savePageScreen(self, visibleOnly=False): """ Private slot to save the current page as a screen shot. @@ -2343,7 +2346,7 @@ QWebSettings.ZoomTextOnly, textOnly) self.zoomTextOnlyChanged.emit(textOnly) - def __viewFullScreen(self,): + def __viewFullScreen(self): """ Private slot called to toggle fullscreen mode. """
--- a/Helpviewer/History/HistoryDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/History/HistoryDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -62,8 +62,8 @@ self.searchEdit.textChanged.connect( self.__proxyModel.setFilterFixedString) - self.removeButton.clicked[()].connect(self.historyTree.removeSelected) - self.removeAllButton.clicked[()].connect(self.__historyManager.clear) + self.removeButton.clicked.connect(self.historyTree.removeSelected) + self.removeAllButton.clicked.connect(self.__historyManager.clear) self.__proxyModel.modelReset.connect(self.__modelReset)
--- a/Helpviewer/History/HistoryManager.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/History/HistoryManager.py Sat Mar 08 20:09:41 2014 +0100 @@ -9,8 +9,9 @@ import os -from PyQt4.QtCore import pyqtSignal, QFileInfo, QDateTime, QDate, QTime, \ - QUrl, QTimer, QFile, QIODevice, QByteArray, QDataStream, QTemporaryFile +from PyQt4.QtCore import pyqtSignal, pyqtSlot, QFileInfo, QDateTime, QDate, \ + QTime, QUrl, QTimer, QFile, QIODevice, QByteArray, QDataStream, \ + QTemporaryFile from PyQt4.QtWebKit import QWebHistoryInterface, QWebSettings from E5Gui import E5MessageBox @@ -339,6 +340,7 @@ """ self.setDaysToExpire(Preferences.getHelp("HistoryLimit")) + @pyqtSlot() def clear(self, period=0): """ Public slot to clear the complete history.
--- a/Helpviewer/History/HistoryMenu.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/History/HistoryMenu.py Sat Mar 08 20:09:41 2014 +0100 @@ -343,10 +343,10 @@ act = self.addAction(UI.PixmapCache.getIcon("history.png"), self.tr("Show All History...")) - act.triggered[()].connect(self.__showHistoryDialog) + act.triggered.connect(self.__showHistoryDialog) act = self.addAction(UI.PixmapCache.getIcon("historyClear.png"), self.tr("Clear History...")) - act.triggered[()].connect(self.__clearHistoryDialog) + act.triggered.connect(self.__clearHistoryDialog) def setInitialActions(self, actions): """
--- a/Helpviewer/Network/FollowRedirectReply.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Network/FollowRedirectReply.py Sat Mar 08 20:09:41 2014 +0100 @@ -33,7 +33,7 @@ self.__redirectCount = 0 self.__reply = self.__manager.get(QNetworkRequest(url)) - self.__reply.finished[()].connect(self.__replyFinished) + self.__reply.finished.connect(self.__replyFinished) def reply(self): """ @@ -109,4 +109,4 @@ self.__reply = None self.__reply = self.__manager.get(QNetworkRequest(redirectUrl)) - self.__reply.finished[()].connect(self.__replyFinished) + self.__reply.finished.connect(self.__replyFinished)
--- a/Helpviewer/Network/NetworkProtocolUnknownErrorReply.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Network/NetworkProtocolUnknownErrorReply.py Sat Mar 08 20:09:41 2014 +0100 @@ -35,7 +35,7 @@ Private method to send some signals to end the connection. """ self.error.emit(QNetworkReply.ProtocolUnknownError) - self.finished[()].emit() + self.finished.emit() def abort(self): """
--- a/Helpviewer/Network/NoCacheHostsDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Network/NoCacheHostsDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -40,8 +40,8 @@ self.searchEdit.textChanged.connect( self.__proxyModel.setFilterFixedString) - self.removeButton.clicked[()].connect(self.noCacheList.removeSelected) - self.removeAllButton.clicked[()].connect(self.noCacheList.removeAll) + self.removeButton.clicked.connect(self.noCacheList.removeSelected) + self.removeAllButton.clicked.connect(self.noCacheList.removeAll) @pyqtSlot() def on_addButton_clicked(self):
--- a/Helpviewer/Network/SendRefererWhitelistDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Network/SendRefererWhitelistDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -40,8 +40,8 @@ self.searchEdit.textChanged.connect( self.__proxyModel.setFilterFixedString) - self.removeButton.clicked[()].connect(self.whitelist.removeSelected) - self.removeAllButton.clicked[()].connect(self.whitelist.removeAll) + self.removeButton.clicked.connect(self.whitelist.removeSelected) + self.removeAllButton.clicked.connect(self.whitelist.removeAll) @pyqtSlot() def on_addButton_clicked(self):
--- a/Helpviewer/OpenSearch/OpenSearchEngine.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/OpenSearch/OpenSearchEngine.py Sat Mar 08 20:09:41 2014 +0100 @@ -315,7 +315,7 @@ reply = self.__networkAccessManager.get( QNetworkRequest(QUrl.fromEncoded(self._imageUrl))) - reply.finished[()].connect(self.__imageObtained) + reply.finished.connect(self.__imageObtained) self.__replies.append(reply) def __imageObtained(self): @@ -439,7 +439,7 @@ data = "&".join(parameters) self.__suggestionsReply = self.networkAccessManager().post( QNetworkRequest(self.suggestionsUrl(searchTerm)), data) - self.__suggestionsReply.finished[()].connect( + self.__suggestionsReply.finished.connect( self.__suggestionsObtained) def __suggestionsObtained(self):
--- a/Helpviewer/OpenSearch/OpenSearchManager.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/OpenSearch/OpenSearchManager.py Sat Mar 08 20:09:41 2014 +0100 @@ -171,7 +171,7 @@ from Helpviewer.HelpWindow import HelpWindow reply = HelpWindow.networkAccessManager().get(QNetworkRequest(url)) - reply.finished[()].connect(self.__engineFromUrlAvailable) + reply.finished.connect(self.__engineFromUrlAvailable) reply.setParent(self) self.__replies.append(reply)
--- a/Helpviewer/Passwords/PasswordsDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/Passwords/PasswordsDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -32,9 +32,9 @@ self.__hidePasswordsText = self.tr("Hide Passwords") self.passwordsButton.setText(self.__showPasswordsText) - self.removeButton.clicked[()].connect( + self.removeButton.clicked.connect( self.passwordsTable.removeSelected) - self.removeAllButton.clicked[()].connect(self.passwordsTable.removeAll) + self.removeAllButton.clicked.connect(self.passwordsTable.removeAll) import Helpviewer.HelpWindow from .PasswordModel import PasswordModel
--- a/Helpviewer/UrlBar/UrlBar.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/UrlBar/UrlBar.py Sat Mar 08 20:09:41 2014 +0100 @@ -80,10 +80,10 @@ self.addWidget(self.__clearButton, E5LineEdit.RightSide) self.__clearButton.setVisible(False) - self.__bookmarkButton.clicked[()].connect(self.__showBookmarkInfo) - self.__privacyButton.clicked[()].connect(self.__privacyClicked) - self.__rssButton.clicked[()].connect(self.__rssClicked) - self.__clearButton.clicked[()].connect(self.clear) + self.__bookmarkButton.clicked.connect(self.__showBookmarkInfo) + self.__privacyButton.clicked.connect(self.__privacyClicked) + self.__rssButton.clicked.connect(self.__rssClicked) + self.__clearButton.clicked.connect(self.clear) self.__mw.privacyChanged.connect(self.__privacyButton.setVisible) self.textChanged.connect(self.__textChanged)
--- a/Helpviewer/UserAgent/UserAgentMenu.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/UserAgent/UserAgentMenu.py Sat Mar 08 20:09:41 2014 +0100 @@ -51,7 +51,7 @@ self.__defaultUserAgent = QAction(self) self.__defaultUserAgent.setText(self.tr("Default")) self.__defaultUserAgent.setCheckable(True) - self.__defaultUserAgent.triggered[()].connect( + self.__defaultUserAgent.triggered.connect( self.__switchToDefaultUserAgent) if self.__url: self.__defaultUserAgent.setChecked( @@ -71,7 +71,7 @@ self.__otherUserAgent = QAction(self) self.__otherUserAgent.setText(self.tr("Other...")) self.__otherUserAgent.setCheckable(True) - self.__otherUserAgent.triggered[()].connect( + self.__otherUserAgent.triggered.connect( self.__switchToOtherUserAgent) self.addAction(self.__otherUserAgent) self.__actionGroup.addAction(self.__otherUserAgent) @@ -154,7 +154,7 @@ act.setToolTip(userAgent) act.setCheckable(True) act.setChecked(userAgent == currentUserAgentString) - act.triggered[()].connect(self.__changeUserAgent) + act.triggered.connect(self.__changeUserAgent) if menuStack: menuStack[-1].addAction(act) else:
--- a/Helpviewer/UserAgent/UserAgentsDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/UserAgent/UserAgentsDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -29,9 +29,9 @@ super().__init__(parent) self.setupUi(self) - self.removeButton.clicked[()].connect( + self.removeButton.clicked.connect( self.userAgentsTable.removeSelected) - self.removeAllButton.clicked[()].connect( + self.removeAllButton.clicked.connect( self.userAgentsTable.removeAll) self.userAgentsTable.verticalHeader().hide()
--- a/Helpviewer/WebPlugins/ClickToFlash/ClickToFlashWhitelistDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Helpviewer/WebPlugins/ClickToFlash/ClickToFlashWhitelistDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -42,8 +42,8 @@ self.searchEdit.textChanged.connect( self.__proxyModel.setFilterFixedString) - self.removeButton.clicked[()].connect(self.whitelist.removeSelected) - self.removeAllButton.clicked[()].connect(self.whitelist.removeAll) + self.removeButton.clicked.connect(self.whitelist.removeSelected) + self.removeAllButton.clicked.connect(self.whitelist.removeAll) @pyqtSlot() def on_addButton_clicked(self):
--- a/IconEditor/IconEditorGrid.py Fri Mar 07 19:20:36 2014 +0100 +++ b/IconEditor/IconEditorGrid.py Sat Mar 08 20:09:41 2014 +0100 @@ -7,7 +7,7 @@ Module implementing the icon editor grid. """ -from PyQt4.QtCore import pyqtSignal, Qt, QPoint, QRect, QSize +from PyQt4.QtCore import pyqtSignal, pyqtSlot, Qt, QPoint, QRect, QSize from PyQt4.QtGui import QUndoCommand, QImage, QWidget, QColor, QPixmap, \ QSizePolicy, QUndoStack, qRgba, QPainter, QApplication, QCursor, \ QBrush, QDialog, qGray, qAlpha @@ -879,6 +879,7 @@ img = self.__getSelectionImage(True) QApplication.clipboard().setImage(img) + @pyqtSlot() def editPaste(self, pasting=False): """ Public slot to paste an image from the clipboard.
--- a/IconEditor/IconEditorPalette.py Fri Mar 07 19:20:36 2014 +0100 +++ b/IconEditor/IconEditorPalette.py Sat Mar 08 20:09:41 2014 +0100 @@ -74,7 +74,7 @@ """<p>Select the current drawing color via a color selection""" """ dialog.</p>""" )) - self.__colorButton.clicked[()].connect(self.__selectColor) + self.__colorButton.clicked.connect(self.__selectColor) self.__layout.addWidget(self.__colorButton) self.__colorAlpha = QSpinBox(self)
--- a/IconEditor/IconEditorWindow.py Fri Mar 07 19:20:36 2014 +0100 +++ b/IconEditor/IconEditorWindow.py Sat Mar 08 20:09:41 2014 +0100 @@ -193,7 +193,7 @@ """<b>New</b>""" """<p>This creates a new icon.</p>""" )) - self.newAct.triggered[()].connect(self.__newIcon) + self.newAct.triggered.connect(self.__newIcon) self.__actions.append(self.newAct) self.newWindowAct = E5Action( @@ -207,7 +207,7 @@ """<b>New Window</b>""" """<p>This opens a new icon editor window.</p>""" )) - self.newWindowAct.triggered[()].connect(self.__newWindow) + self.newWindowAct.triggered.connect(self.__newWindow) self.__actions.append(self.newWindowAct) self.openAct = E5Action( @@ -222,7 +222,7 @@ """<p>This opens a new icon file for editing.""" """ It pops up a file selection dialog.</p>""" )) - self.openAct.triggered[()].connect(self.__openIcon) + self.openAct.triggered.connect(self.__openIcon) self.__actions.append(self.openAct) self.saveAct = E5Action( @@ -236,7 +236,7 @@ """<b>Save File</b>""" """<p>Save the contents of the icon editor window.</p>""" )) - self.saveAct.triggered[()].connect(self.__saveIcon) + self.saveAct.triggered.connect(self.__saveIcon) self.__actions.append(self.saveAct) self.saveAsAct = E5Action( @@ -251,7 +251,7 @@ """<b>Save As...</b>""" """<p>Saves the current icon to a new file.</p>""" )) - self.saveAsAct.triggered[()].connect(self.__saveIconAs) + self.saveAsAct.triggered.connect(self.__saveIconAs) self.__actions.append(self.saveAsAct) self.closeAct = E5Action( @@ -266,7 +266,7 @@ """<b>Close</b>""" """<p>Closes the current icon editor window.</p>""" )) - self.closeAct.triggered[()].connect(self.close) + self.closeAct.triggered.connect(self.close) self.__actions.append(self.closeAct) self.closeAllAct = E5Action( @@ -279,7 +279,7 @@ """<b>Close All</b>""" """<p>Closes all icon editor windows except the first one.</p>""" )) - self.closeAllAct.triggered[()].connect(self.__closeAll) + self.closeAllAct.triggered.connect(self.__closeAll) self.__actions.append(self.closeAllAct) self.exitAct = E5Action( @@ -294,7 +294,7 @@ """<p>Quit the icon editor.</p>""" )) if not self.fromEric: - self.exitAct.triggered[()].connect(self.__closeAll) + self.exitAct.triggered.connect(self.__closeAll) self.__actions.append(self.exitAct) def __initEditActions(self): @@ -313,7 +313,7 @@ """<b>Undo</b>""" """<p>Undo the last change done.</p>""" )) - self.undoAct.triggered[()].connect(self.__editor.editUndo) + self.undoAct.triggered.connect(self.__editor.editUndo) self.__actions.append(self.undoAct) self.redoAct = E5Action( @@ -327,7 +327,7 @@ """<b>Redo</b>""" """<p>Redo the last change done.</p>""" )) - self.redoAct.triggered[()].connect(self.__editor.editRedo) + self.redoAct.triggered.connect(self.__editor.editRedo) self.__actions.append(self.redoAct) self.cutAct = E5Action( @@ -342,7 +342,7 @@ """<b>Cut</b>""" """<p>Cut the selected image area to the clipboard.</p>""" )) - self.cutAct.triggered[()].connect(self.__editor.editCut) + self.cutAct.triggered.connect(self.__editor.editCut) self.__actions.append(self.cutAct) self.copyAct = E5Action( @@ -357,7 +357,7 @@ """<b>Copy</b>""" """<p>Copy the selected image area to the clipboard.</p>""" )) - self.copyAct.triggered[()].connect(self.__editor.editCopy) + self.copyAct.triggered.connect(self.__editor.editCopy) self.__actions.append(self.copyAct) self.pasteAct = E5Action( @@ -372,7 +372,7 @@ """<b>Paste</b>""" """<p>Paste the clipboard image.</p>""" )) - self.pasteAct.triggered[()].connect(self.__editor.editPaste) + self.pasteAct.triggered.connect(self.__editor.editPaste) self.__actions.append(self.pasteAct) self.pasteNewAct = E5Action( @@ -385,7 +385,7 @@ """<b>Paste as New</b>""" """<p>Paste the clipboard image replacing the current one.</p>""" )) - self.pasteNewAct.triggered[()].connect(self.__editor.editPasteAsNew) + self.pasteNewAct.triggered.connect(self.__editor.editPasteAsNew) self.__actions.append(self.pasteNewAct) self.deleteAct = E5Action( @@ -401,7 +401,7 @@ """<p>Clear the icon image and set it to be completely""" """ transparent.</p>""" )) - self.deleteAct.triggered[()].connect(self.__editor.editClear) + self.deleteAct.triggered.connect(self.__editor.editClear) self.__actions.append(self.deleteAct) self.selectAllAct = E5Action( @@ -416,7 +416,7 @@ """<b>Select All</b>""" """<p>Selects the complete icon image.</p>""" )) - self.selectAllAct.triggered[()].connect(self.__editor.editSelectAll) + self.selectAllAct.triggered.connect(self.__editor.editSelectAll) self.__actions.append(self.selectAllAct) self.resizeAct = E5Action( @@ -430,7 +430,7 @@ """<b>Change Size...</b>""" """<p>Changes the icon size.</p>""" )) - self.resizeAct.triggered[()].connect(self.__editor.editResize) + self.resizeAct.triggered.connect(self.__editor.editResize) self.__actions.append(self.resizeAct) self.grayscaleAct = E5Action( @@ -445,7 +445,7 @@ """<b>Grayscale</b>""" """<p>Changes the icon to grayscale.</p>""" )) - self.grayscaleAct.triggered[()].connect(self.__editor.grayScale) + self.grayscaleAct.triggered.connect(self.__editor.grayScale) self.__actions.append(self.grayscaleAct) self.redoAct.setEnabled(False) @@ -481,7 +481,7 @@ """<b>Zoom in</b>""" """<p>Zoom in on the icon. This makes the grid bigger.</p>""" )) - self.zoomInAct.triggered[()].connect(self.__zoomIn) + self.zoomInAct.triggered.connect(self.__zoomIn) self.__actions.append(self.zoomInAct) self.zoomOutAct = E5Action( @@ -495,7 +495,7 @@ """<b>Zoom out</b>""" """<p>Zoom out on the icon. This makes the grid smaller.</p>""" )) - self.zoomOutAct.triggered[()].connect(self.__zoomOut) + self.zoomOutAct.triggered.connect(self.__zoomOut) self.__actions.append(self.zoomOutAct) self.zoomResetAct = E5Action( @@ -511,7 +511,7 @@ """<p>Reset the zoom of the icon. """ """This sets the zoom factor to 100%.</p>""" )) - self.zoomResetAct.triggered[()].connect(self.__zoomReset) + self.zoomResetAct.triggered.connect(self.__zoomReset) self.__actions.append(self.zoomResetAct) self.showGridAct = E5Action( @@ -553,7 +553,7 @@ )) self.drawPencilAct.setCheckable(True) self.esm.setMapping(self.drawPencilAct, IconEditorGrid.Pencil) - self.drawPencilAct.triggered[()].connect(self.esm.map) + self.drawPencilAct.triggered.connect(self.esm.map) self.__actions.append(self.drawPencilAct) self.drawColorPickerAct = E5Action( @@ -570,7 +570,7 @@ self.drawColorPickerAct.setCheckable(True) self.esm.setMapping(self.drawColorPickerAct, IconEditorGrid.ColorPicker) - self.drawColorPickerAct.triggered[()].connect(self.esm.map) + self.drawColorPickerAct.triggered.connect(self.esm.map) self.__actions.append(self.drawColorPickerAct) self.drawRectangleAct = E5Action( @@ -585,7 +585,7 @@ )) self.drawRectangleAct.setCheckable(True) self.esm.setMapping(self.drawRectangleAct, IconEditorGrid.Rectangle) - self.drawRectangleAct.triggered[()].connect(self.esm.map) + self.drawRectangleAct.triggered.connect(self.esm.map) self.__actions.append(self.drawRectangleAct) self.drawFilledRectangleAct = E5Action( @@ -601,7 +601,7 @@ self.drawFilledRectangleAct.setCheckable(True) self.esm.setMapping(self.drawFilledRectangleAct, IconEditorGrid.FilledRectangle) - self.drawFilledRectangleAct.triggered[()].connect(self.esm.map) + self.drawFilledRectangleAct.triggered.connect(self.esm.map) self.__actions.append(self.drawFilledRectangleAct) self.drawCircleAct = E5Action( @@ -616,7 +616,7 @@ )) self.drawCircleAct.setCheckable(True) self.esm.setMapping(self.drawCircleAct, IconEditorGrid.Circle) - self.drawCircleAct.triggered[()].connect(self.esm.map) + self.drawCircleAct.triggered.connect(self.esm.map) self.__actions.append(self.drawCircleAct) self.drawFilledCircleAct = E5Action( @@ -632,7 +632,7 @@ self.drawFilledCircleAct.setCheckable(True) self.esm.setMapping(self.drawFilledCircleAct, IconEditorGrid.FilledCircle) - self.drawFilledCircleAct.triggered[()].connect(self.esm.map) + self.drawFilledCircleAct.triggered.connect(self.esm.map) self.__actions.append(self.drawFilledCircleAct) self.drawEllipseAct = E5Action( @@ -647,7 +647,7 @@ )) self.drawEllipseAct.setCheckable(True) self.esm.setMapping(self.drawEllipseAct, IconEditorGrid.Ellipse) - self.drawEllipseAct.triggered[()].connect(self.esm.map) + self.drawEllipseAct.triggered.connect(self.esm.map) self.__actions.append(self.drawEllipseAct) self.drawFilledEllipseAct = E5Action( @@ -663,7 +663,7 @@ self.drawFilledEllipseAct.setCheckable(True) self.esm.setMapping(self.drawFilledEllipseAct, IconEditorGrid.FilledEllipse) - self.drawFilledEllipseAct.triggered[()].connect(self.esm.map) + self.drawFilledEllipseAct.triggered.connect(self.esm.map) self.__actions.append(self.drawFilledEllipseAct) self.drawFloodFillAct = E5Action( @@ -679,7 +679,7 @@ )) self.drawFloodFillAct.setCheckable(True) self.esm.setMapping(self.drawFloodFillAct, IconEditorGrid.Fill) - self.drawFloodFillAct.triggered[()].connect(self.esm.map) + self.drawFloodFillAct.triggered.connect(self.esm.map) self.__actions.append(self.drawFloodFillAct) self.drawLineAct = E5Action( @@ -694,7 +694,7 @@ )) self.drawLineAct.setCheckable(True) self.esm.setMapping(self.drawLineAct, IconEditorGrid.Line) - self.drawLineAct.triggered[()].connect(self.esm.map) + self.drawLineAct.triggered.connect(self.esm.map) self.__actions.append(self.drawLineAct) self.drawEraserAct = E5Action( @@ -709,7 +709,7 @@ )) self.drawEraserAct.setCheckable(True) self.esm.setMapping(self.drawEraserAct, IconEditorGrid.Rubber) - self.drawEraserAct.triggered[()].connect(self.esm.map) + self.drawEraserAct.triggered.connect(self.esm.map) self.__actions.append(self.drawEraserAct) self.drawRectangleSelectionAct = E5Action( @@ -726,7 +726,7 @@ self.drawRectangleSelectionAct.setCheckable(True) self.esm.setMapping(self.drawRectangleSelectionAct, IconEditorGrid.RectangleSelection) - self.drawRectangleSelectionAct.triggered[()].connect(self.esm.map) + self.drawRectangleSelectionAct.triggered.connect(self.esm.map) self.__actions.append(self.drawRectangleSelectionAct) self.drawCircleSelectionAct = E5Action( @@ -743,7 +743,7 @@ self.drawCircleSelectionAct.setCheckable(True) self.esm.setMapping(self.drawCircleSelectionAct, IconEditorGrid.CircleSelection) - self.drawCircleSelectionAct.triggered[()].connect(self.esm.map) + self.drawCircleSelectionAct.triggered.connect(self.esm.map) self.__actions.append(self.drawCircleSelectionAct) self.drawPencilAct.setChecked(True) @@ -761,7 +761,7 @@ self.aboutAct.setWhatsThis(self.tr( """<b>About</b>""" """<p>Display some information about this software.</p>""")) - self.aboutAct.triggered[()].connect(self.__about) + self.aboutAct.triggered.connect(self.__about) self.__actions.append(self.aboutAct) self.aboutQtAct = E5Action( @@ -774,7 +774,7 @@ """<b>About Qt</b>""" """<p>Display some information about the Qt toolkit.</p>""" )) - self.aboutQtAct.triggered[()].connect(self.__aboutQt) + self.aboutQtAct.triggered.connect(self.__aboutQt) self.__actions.append(self.aboutQtAct) self.whatsThisAct = E5Action( @@ -792,7 +792,7 @@ """ how to use them. In dialogs, this feature can be accessed""" """ using the context help button in the titlebar.</p>""" )) - self.whatsThisAct.triggered[()].connect(self.__whatsThis) + self.whatsThisAct.triggered.connect(self.__whatsThis) self.__actions.append(self.whatsThisAct) def __initMenus(self): @@ -811,8 +811,9 @@ menu.addAction(self.saveAsAct) menu.addSeparator() menu.addAction(self.closeAct) - menu.addAction(self.closeAllAct) - if not self.fromEric: + if self.fromEric: + menu.addAction(self.closeAllAct) + else: menu.addSeparator() menu.addAction(self.exitAct)
--- a/MultiProject/MultiProject.py Fri Mar 07 19:20:36 2014 +0100 +++ b/MultiProject/MultiProject.py Sat Mar 08 20:09:41 2014 +0100 @@ -9,7 +9,8 @@ import os -from PyQt4.QtCore import pyqtSignal, Qt, QFileInfo, QFile, QIODevice, QObject +from PyQt4.QtCore import pyqtSignal, pyqtSlot, Qt, QFileInfo, QFile, \ + QIODevice, QObject from PyQt4.QtGui import QMenu, QApplication, QDialog, QCursor, QToolBar from Globals import recentNameMultiProject @@ -288,6 +289,7 @@ return res + @pyqtSlot() def addProject(self, startdir=None): """ Public slot used to add files to the project. @@ -430,6 +432,8 @@ self.setDirty(True) self.multiProjectPropertiesChanged.emit() + @pyqtSlot() + @pyqtSlot(str) def openMultiProject(self, fn=None, openMaster=True): """ Public slot to open a multi project. @@ -612,7 +616,7 @@ """<p>This opens a dialog for entering the info for a""" """ new multiproject.</p>""" )) - act.triggered[()].connect(self.__newMultiProject) + act.triggered.connect(self.__newMultiProject) self.actions.append(act) act = E5Action( @@ -625,7 +629,7 @@ """<b>Open...</b>""" """<p>This opens an existing multiproject.</p>""" )) - act.triggered[()].connect(self.openMultiProject) + act.triggered.connect(self.openMultiProject) self.actions.append(act) self.closeAct = E5Action( @@ -638,7 +642,7 @@ """<b>Close</b>""" """<p>This closes the current multiproject.</p>""" )) - self.closeAct.triggered[()].connect(self.closeMultiProject) + self.closeAct.triggered.connect(self.closeMultiProject) self.actions.append(self.closeAct) self.saveAct = E5Action( @@ -650,7 +654,7 @@ """<b>Save</b>""" """<p>This saves the current multiproject.</p>""" )) - self.saveAct.triggered[()].connect(self.saveMultiProject) + self.saveAct.triggered.connect(self.saveMultiProject) self.actions.append(self.saveAct) self.saveasAct = E5Action( @@ -664,7 +668,7 @@ """<b>Save as</b>""" """<p>This saves the current multiproject to a new file.</p>""" )) - self.saveasAct.triggered[()].connect(self.saveMultiProjectAs) + self.saveasAct.triggered.connect(self.saveMultiProjectAs) self.actions.append(self.saveasAct) self.addProjectAct = E5Action( @@ -679,7 +683,7 @@ """<p>This opens a dialog for adding a project""" """ to the current multiproject.</p>""" )) - self.addProjectAct.triggered[()].connect(self.addProject) + self.addProjectAct.triggered.connect(self.addProject) self.actions.append(self.addProjectAct) self.propsAct = E5Action( @@ -694,7 +698,7 @@ """<p>This shows a dialog to edit the multiproject""" """ properties.</p>""" )) - self.propsAct.triggered[()].connect(self.__showProperties) + self.propsAct.triggered.connect(self.__showProperties) self.actions.append(self.propsAct) self.closeAct.setEnabled(False)
--- a/Network/IRC/IrcWidget.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Network/IRC/IrcWidget.py Sat Mar 08 20:09:41 2014 +0100 @@ -61,7 +61,7 @@ UI.PixmapCache.getIcon("ircCloseChannel.png")) self.__leaveButton.setToolTip( self.tr("Press to leave the current channel")) - self.__leaveButton.clicked[()].connect(self.__leaveChannel) + self.__leaveButton.clicked.connect(self.__leaveChannel) self.__leaveButton.setEnabled(False) self.channelsWidget.setCornerWidget( self.__leaveButton, Qt.BottomRightCorner)
--- a/PluginManager/PluginInstallDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/PluginManager/PluginInstallDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -580,8 +580,8 @@ self.resize(size) self.setWindowTitle(self.cw.windowTitle()) - self.cw.buttonBox.accepted[()].connect(self.accept) - self.cw.buttonBox.rejected[()].connect(self.reject) + self.cw.buttonBox.accepted.connect(self.accept) + self.cw.buttonBox.rejected.connect(self.reject) def restartNeeded(self): """ @@ -614,5 +614,5 @@ self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) - self.cw.buttonBox.accepted[()].connect(self.close) - self.cw.buttonBox.rejected[()].connect(self.close) + self.cw.buttonBox.accepted.connect(self.close) + self.cw.buttonBox.rejected.connect(self.close)
--- a/PluginManager/PluginManager.py Fri Mar 07 19:20:36 2014 +0100 +++ b/PluginManager/PluginManager.py Sat Mar 08 20:09:41 2014 +0100 @@ -1078,7 +1078,7 @@ request.setAttribute(QNetworkRequest.CacheLoadControlAttribute, QNetworkRequest.AlwaysNetwork) reply = self.__networkManager.get(request) - reply.finished[()].connect(self.__downloadRepositoryFileDone) + reply.finished.connect(self.__downloadRepositoryFileDone) self.__replies.append(reply) def __downloadRepositoryFileDone(self):
--- a/PluginManager/PluginRepositoryDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/PluginManager/PluginRepositoryDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -410,7 +410,7 @@ request.setAttribute(QNetworkRequest.CacheLoadControlAttribute, QNetworkRequest.AlwaysNetwork) reply = self.__networkManager.get(request) - reply.finished[()].connect(self.__downloadFileDone) + reply.finished.connect(self.__downloadFileDone) reply.downloadProgress.connect(self.__downloadProgress) self.__replies.append(reply) @@ -744,8 +744,8 @@ self.resize(size) self.setWindowTitle(self.cw.windowTitle()) - self.cw.buttonBox.accepted[()].connect(self.accept) - self.cw.buttonBox.rejected[()].connect(self.reject) + self.cw.buttonBox.accepted.connect(self.accept) + self.cw.buttonBox.rejected.connect(self.reject) self.cw.closeAndInstall.connect(self.__closeAndInstall) def __closeAndInstall(self): @@ -783,8 +783,8 @@ self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) - self.cw.buttonBox.accepted[()].connect(self.close) - self.cw.buttonBox.rejected[()].connect(self.close) + self.cw.buttonBox.accepted.connect(self.close) + self.cw.buttonBox.rejected.connect(self.close) self.cw.closeAndInstall.connect(self.__startPluginInstall) def __startPluginInstall(self):
--- a/PluginManager/PluginUninstallDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/PluginManager/PluginUninstallDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -220,8 +220,8 @@ self.resize(size) self.setWindowTitle(self.cw.windowTitle()) - self.cw.buttonBox.accepted[()].connect(self.accept) - self.cw.buttonBox.rejected[()].connect(self.reject) + self.cw.buttonBox.accepted.connect(self.accept) + self.cw.buttonBox.rejected.connect(self.reject) class PluginUninstallWindow(E5MainWindow): @@ -244,5 +244,5 @@ self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) - self.cw.buttonBox.accepted[()].connect(self.close) - self.cw.buttonBox.rejected[()].connect(self.close) + self.cw.buttonBox.accepted.connect(self.close) + self.cw.buttonBox.rejected.connect(self.close)
--- a/Plugins/PluginAbout.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginAbout.py Sat Mar 08 20:09:41 2014 +0100 @@ -84,7 +84,7 @@ """<b>About {0}</b>""" """<p>Display some information about this software.</p>""" ).format(UI.Info.Program)) - self.aboutAct.triggered[()].connect(self.__about) + self.aboutAct.triggered.connect(self.__about) self.aboutAct.setMenuRole(QAction.AboutRole) acts.append(self.aboutAct) @@ -98,7 +98,7 @@ """<b>About Qt</b>""" """<p>Display some information about the Qt toolkit.</p>""" )) - self.aboutQtAct.triggered[()].connect(self.__aboutQt) + self.aboutQtAct.triggered.connect(self.__aboutQt) self.aboutQtAct.setMenuRole(QAction.AboutQtRole) acts.append(self.aboutQtAct)
--- a/Plugins/PluginCodeStyleChecker.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginCodeStyleChecker.py Sat Mar 08 20:09:41 2014 +0100 @@ -87,7 +87,7 @@ """<p>This checks Python files for compliance to the""" """ code style conventions given in various PEPs.</p>""" )) - self.__projectAct.triggered[()].connect( + self.__projectAct.triggered.connect( self.__projectCodeStyleCheck) e5App().getObject("Project").addE5Actions([self.__projectAct]) menu.addAction(self.__projectAct) @@ -101,7 +101,7 @@ """<p>This checks Python files for compliance to the""" """ code style conventions given in various PEPs.</p>""" )) - self.__editorAct.triggered[()].connect(self.__editorCodeStyleCheck) + self.__editorAct.triggered.connect(self.__editorCodeStyleCheck) e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) e5App().getObject("ProjectBrowser").getProjectBrowser("sources")\ @@ -181,7 +181,7 @@ """<p>This checks Python files for compliance to the""" """ code style conventions given in various PEPs.</p>""" )) - self.__projectBrowserAct.triggered[()].connect( + self.__projectBrowserAct.triggered.connect( self.__projectBrowserCodeStyleCheck) if not self.__projectBrowserAct in menu.actions(): menu.addAction(self.__projectBrowserAct)
--- a/Plugins/PluginEricapi.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginEricapi.py Sat Mar 08 20:09:41 2014 +0100 @@ -102,7 +102,7 @@ """<b>Generate API file</b>""" """<p>Generate an API file using eric5_api.</p>""" )) - self.__projectAct.triggered[()].connect(self.__doEricapi) + self.__projectAct.triggered.connect(self.__doEricapi) e5App().getObject("Project").addE5Actions([self.__projectAct]) menu.addAction(self.__projectAct)
--- a/Plugins/PluginEricdoc.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginEricdoc.py Sat Mar 08 20:09:41 2014 +0100 @@ -137,7 +137,7 @@ """<b>Generate documentation</b>""" """<p>Generate API documentation using eric5_doc.</p>""" )) - self.__projectAct.triggered[()].connect(self.__doEricdoc) + self.__projectAct.triggered.connect(self.__doEricdoc) e5App().getObject("Project").addE5Actions([self.__projectAct]) menu.addAction(self.__projectAct)
--- a/Plugins/PluginSyntaxChecker.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginSyntaxChecker.py Sat Mar 08 20:09:41 2014 +0100 @@ -82,7 +82,7 @@ """<b>Check Syntax...</b>""" """<p>This checks Python files for syntax errors.</p>""" )) - self.__projectAct.triggered[()].connect(self.__projectSyntaxCheck) + self.__projectAct.triggered.connect(self.__projectSyntaxCheck) e5App().getObject("Project").addE5Actions([self.__projectAct]) menu.addAction(self.__projectAct) @@ -94,7 +94,7 @@ """<b>Check Syntax...</b>""" """<p>This checks Python files for syntax errors.</p>""" )) - self.__editorAct.triggered[()].connect(self.__editorSyntaxCheck) + self.__editorAct.triggered.connect(self.__editorSyntaxCheck) e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) e5App().getObject("ProjectBrowser").getProjectBrowser("sources")\ @@ -173,7 +173,7 @@ """<b>Check Syntax...</b>""" """<p>This checks Python files for syntax errors.</p>""" )) - self.__projectBrowserAct.triggered[()].connect( + self.__projectBrowserAct.triggered.connect( self.__projectBrowserSyntaxCheck) if not self.__projectBrowserAct in menu.actions(): menu.addAction(self.__projectBrowserAct)
--- a/Plugins/PluginTabnanny.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginTabnanny.py Sat Mar 08 20:09:41 2014 +0100 @@ -83,7 +83,7 @@ """<p>This checks Python files""" """ for bad indentations using tabnanny.</p>""" )) - self.__projectAct.triggered[()].connect(self.__projectTabnanny) + self.__projectAct.triggered.connect(self.__projectTabnanny) e5App().getObject("Project").addE5Actions([self.__projectAct]) menu.addAction(self.__projectAct) @@ -96,7 +96,7 @@ """<p>This checks Python files""" """ for bad indentations using tabnanny.</p>""" )) - self.__editorAct.triggered[()].connect(self.__editorTabnanny) + self.__editorAct.triggered.connect(self.__editorTabnanny) e5App().getObject("Project").showMenu.connect(self.__projectShowMenu) e5App().getObject("ProjectBrowser").getProjectBrowser("sources")\ @@ -176,7 +176,7 @@ """<p>This checks Python files""" """ for bad indentations using tabnanny.</p>""" )) - self.__projectBrowserAct.triggered[()].connect( + self.__projectBrowserAct.triggered.connect( self.__projectBrowserTabnanny) if not self.__projectBrowserAct in menu.actions(): menu.addAction(self.__projectBrowserAct)
--- a/Plugins/PluginWizardE5MessageBox.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginWizardE5MessageBox.py Sat Mar 08 20:09:41 2014 +0100 @@ -78,7 +78,7 @@ """ needed to create an E5MessageBox. The generated code is""" """ inserted at the current cursor position.</p>""" )) - self.action.triggered[()].connect(self.__handle) + self.action.triggered.connect(self.__handle) self.__ui.addE5Actions([self.action], 'wizards')
--- a/Plugins/PluginWizardPyRegExp.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginWizardPyRegExp.py Sat Mar 08 20:09:41 2014 +0100 @@ -78,7 +78,7 @@ """ needed to create a Python re string. The generated code is""" """ inserted at the current cursor position.</p>""" )) - self.action.triggered[()].connect(self.__handle) + self.action.triggered.connect(self.__handle) self.__ui.addE5Actions([self.action], 'wizards')
--- a/Plugins/PluginWizardQColorDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginWizardQColorDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -78,7 +78,7 @@ """ needed to create a QColorDialog. The generated code is""" """ inserted at the current cursor position.</p>""" )) - self.action.triggered[()].connect(self.__handle) + self.action.triggered.connect(self.__handle) self.__ui.addE5Actions([self.action], 'wizards')
--- a/Plugins/PluginWizardQFileDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginWizardQFileDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -82,7 +82,7 @@ """ needed to create a QFileDialog. The generated code is""" """ inserted at the current cursor position.</p>""" )) - self.action.triggered[()].connect(self.__handle) + self.action.triggered.connect(self.__handle) self.__ui.addE5Actions([self.action], 'wizards')
--- a/Plugins/PluginWizardQFontDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginWizardQFontDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -78,7 +78,7 @@ """ needed to create a QFontDialog. The generated code is""" """ inserted at the current cursor position.</p>""" )) - self.action.triggered[()].connect(self.__handle) + self.action.triggered.connect(self.__handle) self.__ui.addE5Actions([self.action], 'wizards')
--- a/Plugins/PluginWizardQInputDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginWizardQInputDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -78,7 +78,7 @@ """ needed to create a QInputDialog. The generated code is""" """ inserted at the current cursor position.</p>""" )) - self.action.triggered[()].connect(self.__handle) + self.action.triggered.connect(self.__handle) self.__ui.addE5Actions([self.action], 'wizards')
--- a/Plugins/PluginWizardQMessageBox.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginWizardQMessageBox.py Sat Mar 08 20:09:41 2014 +0100 @@ -78,7 +78,7 @@ """ needed to create a QMessageBox. The generated code is""" """ inserted at the current cursor position.</p>""" )) - self.action.triggered[()].connect(self.__handle) + self.action.triggered.connect(self.__handle) self.__ui.addE5Actions([self.action], 'wizards')
--- a/Plugins/PluginWizardQRegExp.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginWizardQRegExp.py Sat Mar 08 20:09:41 2014 +0100 @@ -78,7 +78,7 @@ """ needed to create a QRegExp. The generated code is inserted""" """ at the current cursor position.</p>""" )) - self.action.triggered[()].connect(self.__handle) + self.action.triggered.connect(self.__handle) self.__ui.addE5Actions([self.action], 'wizards')
--- a/Plugins/PluginWizardQRegularExpression.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/PluginWizardQRegularExpression.py Sat Mar 08 20:09:41 2014 +0100 @@ -78,7 +78,7 @@ """ needed to create a QRegularExpression string. The generated""" """ code is inserted at the current cursor position.</p>""" )) - self.action.triggered[()].connect(self.__handle) + self.action.triggered.connect(self.__handle) self.__ui.addE5Actions([self.action], 'wizards')
--- a/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/BookmarksExtension/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -42,7 +42,7 @@ """<b>List bookmarks</b>""" """<p>This lists the bookmarks of the project.</p>""" )) - self.hgBookmarksListAct.triggered[()].connect(self.__hgBookmarksList) + self.hgBookmarksListAct.triggered.connect(self.__hgBookmarksList) self.actions.append(self.hgBookmarksListAct) self.hgBookmarkDefineAct = E5Action( @@ -57,7 +57,7 @@ """<b>Define bookmark</b>""" """<p>This defines a bookmark for the project.</p>""" )) - self.hgBookmarkDefineAct.triggered[()].connect(self.__hgBookmarkDefine) + self.hgBookmarkDefineAct.triggered.connect(self.__hgBookmarkDefine) self.actions.append(self.hgBookmarkDefineAct) self.hgBookmarkDeleteAct = E5Action( @@ -72,7 +72,7 @@ """<b>Delete bookmark</b>""" """<p>This deletes a bookmark of the project.</p>""" )) - self.hgBookmarkDeleteAct.triggered[()].connect(self.__hgBookmarkDelete) + self.hgBookmarkDeleteAct.triggered.connect(self.__hgBookmarkDelete) self.actions.append(self.hgBookmarkDeleteAct) self.hgBookmarkRenameAct = E5Action( @@ -87,7 +87,7 @@ """<b>Rename bookmark</b>""" """<p>This renames a bookmark of the project.</p>""" )) - self.hgBookmarkRenameAct.triggered[()].connect(self.__hgBookmarkRename) + self.hgBookmarkRenameAct.triggered.connect(self.__hgBookmarkRename) self.actions.append(self.hgBookmarkRenameAct) self.hgBookmarkMoveAct = E5Action( @@ -103,7 +103,7 @@ """<p>This moves a bookmark of the project to another""" """ changeset.</p>""" )) - self.hgBookmarkMoveAct.triggered[()].connect(self.__hgBookmarkMove) + self.hgBookmarkMoveAct.triggered.connect(self.__hgBookmarkMove) self.actions.append(self.hgBookmarkMoveAct) self.hgBookmarkIncomingAct = E5Action( @@ -119,7 +119,7 @@ """<p>This shows a list of new bookmarks available at the remote""" """ repository.</p>""" )) - self.hgBookmarkIncomingAct.triggered[()].connect( + self.hgBookmarkIncomingAct.triggered.connect( self.__hgBookmarkIncoming) self.actions.append(self.hgBookmarkIncomingAct) @@ -136,7 +136,7 @@ """<p>This pulls a bookmark from a remote repository into the """ """local repository.</p>""" )) - self.hgBookmarkPullAct.triggered[()].connect(self.__hgBookmarkPull) + self.hgBookmarkPullAct.triggered.connect(self.__hgBookmarkPull) self.actions.append(self.hgBookmarkPullAct) self.hgBookmarkOutgoingAct = E5Action( @@ -152,7 +152,7 @@ """<p>This shows a list of new bookmarks available at the local""" """ repository.</p>""" )) - self.hgBookmarkOutgoingAct.triggered[()].connect( + self.hgBookmarkOutgoingAct.triggered.connect( self.__hgBookmarkOutgoing) self.actions.append(self.hgBookmarkOutgoingAct) @@ -169,7 +169,7 @@ """<p>This pushes a bookmark from the local repository to a """ """remote repository.</p>""" )) - self.hgBookmarkPushAct.triggered[()].connect(self.__hgBookmarkPush) + self.hgBookmarkPushAct.triggered.connect(self.__hgBookmarkPush) self.actions.append(self.hgBookmarkPushAct) def initMenu(self, mainMenu):
--- a/Plugins/VcsPlugins/vcsMercurial/FetchExtension/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/FetchExtension/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -47,7 +47,7 @@ """ the merge is committed. Otherwise, the working directory""" """ is updated to include the new changes.</p>""" )) - self.hgFetchAct.triggered[()].connect(self.__hgFetch) + self.hgFetchAct.triggered.connect(self.__hgFetch) self.actions.append(self.hgFetchAct) def initMenu(self, mainMenu):
--- a/Plugins/VcsPlugins/vcsMercurial/GpgExtension/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/GpgExtension/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -42,7 +42,7 @@ """<b>List Signed Changesets</b>""" """<p>This opens a dialog listing all signed changesets.</p>""" )) - self.hgGpgListAct.triggered[()].connect(self.__hgGpgSignatures) + self.hgGpgListAct.triggered.connect(self.__hgGpgSignatures) self.actions.append(self.hgGpgListAct) self.hgGpgVerifyAct = E5Action( @@ -58,7 +58,7 @@ """<p>This verifies all signatures there may be for a particular""" """ revision.</p>""" )) - self.hgGpgVerifyAct.triggered[()].connect(self.__hgGpgVerifySignatures) + self.hgGpgVerifyAct.triggered.connect(self.__hgGpgVerifySignatures) self.actions.append(self.hgGpgVerifyAct) self.hgGpgSignAct = E5Action( @@ -73,7 +73,7 @@ """<b>Sign Revision</b>""" """<p>This adds a signature for a selected revision.</p>""" )) - self.hgGpgSignAct.triggered[()].connect(self.__hgGpgSign) + self.hgGpgSignAct.triggered.connect(self.__hgGpgSign) self.actions.append(self.hgGpgSignAct) def initMenu(self, mainMenu):
--- a/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/HgServeDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -48,17 +48,17 @@ os.path.join("VcsPlugins", "vcsMercurial", "icons", "startServer.png")), self.tr("Start Server"), self) - self.__startAct.triggered[()].connect(self.__startServer) + self.__startAct.triggered.connect(self.__startServer) self.__stopAct = QAction( UI.PixmapCache.getIcon( os.path.join("VcsPlugins", "vcsMercurial", "icons", "stopServer.png")), self.tr("Stop Server"), self) - self.__stopAct.triggered[()].connect(self.__stopServer) + self.__stopAct.triggered.connect(self.__stopServer) self.__browserAct = QAction( UI.PixmapCache.getIcon("home.png"), self.tr("Start Browser"), self) - self.__browserAct.triggered[()].connect(self.__startBrowser) + self.__browserAct.triggered.connect(self.__startBrowser) self.__portSpin = QSpinBox(self) self.__portSpin.setMinimum(2048)
--- a/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/LargefilesExtension/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -43,7 +43,7 @@ """ largefiles repository. A new project is created. The""" """ current one is kept as a backup.</p>""" )) - self.hgConvertToLargefilesAct.triggered[()].connect( + self.hgConvertToLargefilesAct.triggered.connect( lambda: self.__hgLfconvert("largefiles")) self.actions.append(self.hgConvertToLargefilesAct) @@ -60,7 +60,7 @@ """ normal repository. A new project is created. The current""" """ one is kept as a backup.</p>""" )) - self.hgConvertToNormalAct.triggered[()].connect( + self.hgConvertToNormalAct.triggered.connect( lambda: self.__hgLfconvert("normal")) self.actions.append(self.hgConvertToNormalAct) @@ -77,7 +77,7 @@ """<p>This pulls missing large files from a remote repository""" """ into the local repository.</p>""" )) - self.hgLfPullAct.triggered[()].connect(self.__hgLfPull) + self.hgLfPullAct.triggered.connect(self.__hgLfPull) self.actions.append(self.hgLfPullAct) self.hgLfSummaryAct = E5Action( @@ -93,7 +93,7 @@ """<p>This shows some summary information of the working""" """ directory status.</p>""" )) - self.hgLfSummaryAct.triggered[()].connect(self.__hgLfSummary) + self.hgLfSummaryAct.triggered.connect(self.__hgLfSummary) self.actions.append(self.hgLfSummaryAct) self.hgVerifyLargeAct = E5Action( @@ -108,7 +108,7 @@ """<p>This verifies that all large files in the current""" """ revision exist.</p>""" )) - self.hgVerifyLargeAct.triggered[()].connect( + self.hgVerifyLargeAct.triggered.connect( lambda: self.__hgLfVerify("large")) self.actions.append(self.hgVerifyLargeAct) @@ -124,7 +124,7 @@ """<p>This verifies that all large files in all""" """ revisions exist.</p>""" )) - self.hgVerifyLfaAct.triggered[()].connect( + self.hgVerifyLfaAct.triggered.connect( lambda: self.__hgLfVerify("lfa")) self.actions.append(self.hgVerifyLfaAct) @@ -139,7 +139,7 @@ """<b>Verify large files contents</b>""" """<p>This verifies the contents of all large files.</p>""" )) - self.hgVerifyLfcAct.triggered[()].connect( + self.hgVerifyLfcAct.triggered.connect( lambda: self.__hgLfVerify("lfc")) self.actions.append(self.hgVerifyLfcAct)
--- a/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -113,7 +113,7 @@ """<p>This creates (clones) a new local project from """ """a Mercurial repository.</p>""" )) - self.vcsNewAct.triggered[()].connect(self._vcsCheckout) + self.vcsNewAct.triggered.connect(self._vcsCheckout) self.actions.append(self.vcsNewAct) self.hgIncomingAct = E5Action( @@ -129,7 +129,7 @@ """<p>This shows the log of changes coming into the""" """ repository.</p>""" )) - self.hgIncomingAct.triggered[()].connect(self.__hgIncoming) + self.hgIncomingAct.triggered.connect(self.__hgIncoming) self.actions.append(self.hgIncomingAct) self.hgPullAct = E5Action( @@ -145,7 +145,7 @@ """<p>This pulls changes from a remote repository into the """ """local repository.</p>""" )) - self.hgPullAct.triggered[()].connect(self.__hgPull) + self.hgPullAct.triggered.connect(self.__hgPull) self.actions.append(self.hgPullAct) self.vcsUpdateAct = E5Action( @@ -161,7 +161,7 @@ """<p>This updates the local project from the Mercurial""" """ repository.</p>""" )) - self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate) + self.vcsUpdateAct.triggered.connect(self._vcsUpdate) self.actions.append(self.vcsUpdateAct) self.vcsCommitAct = E5Action( @@ -177,7 +177,7 @@ """<p>This commits changes to the local project to the """ """Mercurial repository.</p>""" )) - self.vcsCommitAct.triggered[()].connect(self._vcsCommit) + self.vcsCommitAct.triggered.connect(self._vcsCommit) self.actions.append(self.vcsCommitAct) self.hgOutgoingAct = E5Action( @@ -193,7 +193,7 @@ """<p>This shows the log of changes outgoing out of the""" """ repository.</p>""" )) - self.hgOutgoingAct.triggered[()].connect(self.__hgOutgoing) + self.hgOutgoingAct.triggered.connect(self.__hgOutgoing) self.actions.append(self.hgOutgoingAct) self.hgPushAct = E5Action( @@ -209,7 +209,7 @@ """<p>This pushes changes from the local repository to a """ """remote repository.</p>""" )) - self.hgPushAct.triggered[()].connect(self.__hgPush) + self.hgPushAct.triggered.connect(self.__hgPush) self.actions.append(self.hgPushAct) self.hgPushForcedAct = E5Action( @@ -225,7 +225,7 @@ """<p>This pushes changes from the local repository to a """ """remote repository using the 'force' option.</p>""" )) - self.hgPushForcedAct.triggered[()].connect(self.__hgPushForced) + self.hgPushForcedAct.triggered.connect(self.__hgPushForced) self.actions.append(self.hgPushForcedAct) self.vcsExportAct = E5Action( @@ -240,7 +240,7 @@ """<b>Export from repository</b>""" """<p>This exports a project from the repository.</p>""" )) - self.vcsExportAct.triggered[()].connect(self._vcsExport) + self.vcsExportAct.triggered.connect(self._vcsExport) self.actions.append(self.vcsExportAct) self.vcsLogAct = E5Action( @@ -255,7 +255,7 @@ """<b>Show log</b>""" """<p>This shows the log of the local project.</p>""" )) - self.vcsLogAct.triggered[()].connect(self._vcsLog) + self.vcsLogAct.triggered.connect(self._vcsLog) self.actions.append(self.vcsLogAct) self.hgLogBrowserAct = E5Action( @@ -272,7 +272,7 @@ """ project. A limited number of entries is shown first.""" """ More can be retrieved later on.</p>""" )) - self.hgLogBrowserAct.triggered[()].connect(self.__hgLogBrowser) + self.hgLogBrowserAct.triggered.connect(self.__hgLogBrowser) self.actions.append(self.hgLogBrowserAct) self.vcsDiffAct = E5Action( @@ -288,7 +288,7 @@ """<p>This shows the difference of the local project to the""" """ repository.</p>""" )) - self.vcsDiffAct.triggered[()].connect(self._vcsDiff) + self.vcsDiffAct.triggered.connect(self._vcsDiff) self.actions.append(self.vcsDiffAct) self.hgExtDiffAct = E5Action( @@ -304,7 +304,7 @@ """<p>This shows the difference of selectable revisions of the""" """ project.</p>""" )) - self.hgExtDiffAct.triggered[()].connect(self.__hgExtendedDiff) + self.hgExtDiffAct.triggered.connect(self.__hgExtendedDiff) self.actions.append(self.hgExtDiffAct) self.vcsStatusAct = E5Action( @@ -319,7 +319,7 @@ """<b>Show status</b>""" """<p>This shows the status of the local project.</p>""" )) - self.vcsStatusAct.triggered[()].connect(self._vcsStatus) + self.vcsStatusAct.triggered.connect(self._vcsStatus) self.actions.append(self.vcsStatusAct) self.hgSummaryAct = E5Action( @@ -335,7 +335,7 @@ """<p>This shows some summary information of the working""" """ directory status.</p>""" )) - self.hgSummaryAct.triggered[()].connect(self.__hgSummary) + self.hgSummaryAct.triggered.connect(self.__hgSummary) self.actions.append(self.hgSummaryAct) self.hgHeadsAct = E5Action( @@ -349,7 +349,7 @@ """<b>Show heads</b>""" """<p>This shows the heads of the repository.</p>""" )) - self.hgHeadsAct.triggered[()].connect(self.__hgHeads) + self.hgHeadsAct.triggered.connect(self.__hgHeads) self.actions.append(self.hgHeadsAct) self.hgParentsAct = E5Action( @@ -363,7 +363,7 @@ """<b>Show parents</b>""" """<p>This shows the parents of the repository.</p>""" )) - self.hgParentsAct.triggered[()].connect(self.__hgParents) + self.hgParentsAct.triggered.connect(self.__hgParents) self.actions.append(self.hgParentsAct) self.hgTipAct = E5Action( @@ -377,7 +377,7 @@ """<b>Show tip</b>""" """<p>This shows the tip of the repository.</p>""" )) - self.hgTipAct.triggered[()].connect(self.__hgTip) + self.hgTipAct.triggered.connect(self.__hgTip) self.actions.append(self.hgTipAct) self.vcsRevertAct = E5Action( @@ -392,7 +392,7 @@ """<b>Revert changes</b>""" """<p>This reverts all changes made to the local project.</p>""" )) - self.vcsRevertAct.triggered[()].connect(self.__hgRevert) + self.vcsRevertAct.triggered.connect(self.__hgRevert) self.actions.append(self.vcsRevertAct) self.vcsMergeAct = E5Action( @@ -408,7 +408,7 @@ """<p>This merges changes of a revision into the local""" """ project.</p>""" )) - self.vcsMergeAct.triggered[()].connect(self._vcsMerge) + self.vcsMergeAct.triggered.connect(self._vcsMerge) self.actions.append(self.vcsMergeAct) self.vcsResolveAct = E5Action( @@ -423,7 +423,7 @@ """<p>This marks all conflicts of the local project as""" """ resolved.</p>""" )) - self.vcsResolveAct.triggered[()].connect(self.__hgResolve) + self.vcsResolveAct.triggered.connect(self.__hgResolve) self.actions.append(self.vcsResolveAct) self.vcsTagAct = E5Action( @@ -438,7 +438,7 @@ """<b>Tag in repository</b>""" """<p>This tags the local project in the repository.</p>""" )) - self.vcsTagAct.triggered[()].connect(self._vcsTag) + self.vcsTagAct.triggered.connect(self._vcsTag) self.actions.append(self.vcsTagAct) self.hgTagListAct = E5Action( @@ -452,7 +452,7 @@ """<b>List tags</b>""" """<p>This lists the tags of the project.</p>""" )) - self.hgTagListAct.triggered[()].connect(self.__hgTagList) + self.hgTagListAct.triggered.connect(self.__hgTagList) self.actions.append(self.hgTagListAct) self.hgBranchListAct = E5Action( @@ -466,7 +466,7 @@ """<b>List branches</b>""" """<p>This lists the branches of the project.</p>""" )) - self.hgBranchListAct.triggered[()].connect(self.__hgBranchList) + self.hgBranchListAct.triggered.connect(self.__hgBranchList) self.actions.append(self.hgBranchListAct) self.hgBranchAct = E5Action( @@ -482,7 +482,7 @@ """<p>This creates a new branch for the local project """ """in the repository.</p>""" )) - self.hgBranchAct.triggered[()].connect(self.__hgBranch) + self.hgBranchAct.triggered.connect(self.__hgBranch) self.actions.append(self.hgBranchAct) self.hgPushBranchAct = E5Action( @@ -498,7 +498,7 @@ """<p>This pushes the current branch of the local project""" """ as a new named branch.</p>""" )) - self.hgPushBranchAct.triggered[()].connect(self.__hgPushNewBranch) + self.hgPushBranchAct.triggered.connect(self.__hgPushNewBranch) self.actions.append(self.hgPushBranchAct) self.hgCloseBranchAct = E5Action( @@ -512,7 +512,7 @@ """<b>Close branch</b>""" """<p>This closes the current branch of the local project.</p>""" )) - self.hgCloseBranchAct.triggered[()].connect(self.__hgCloseBranch) + self.hgCloseBranchAct.triggered.connect(self.__hgCloseBranch) self.actions.append(self.hgCloseBranchAct) self.hgShowBranchAct = E5Action( @@ -526,7 +526,7 @@ """<b>Show current branch</b>""" """<p>This shows the current branch of the project.</p>""" )) - self.hgShowBranchAct.triggered[()].connect(self.__hgShowBranch) + self.hgShowBranchAct.triggered.connect(self.__hgShowBranch) self.actions.append(self.hgShowBranchAct) self.vcsSwitchAct = E5Action( @@ -542,7 +542,7 @@ """<p>This switches the working directory to another""" """ revision.</p>""" )) - self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) + self.vcsSwitchAct.triggered.connect(self._vcsSwitch) self.actions.append(self.vcsSwitchAct) self.vcsCleanupAct = E5Action( @@ -556,7 +556,7 @@ """<b>Cleanup</b>""" """<p>This performs a cleanup of the local project.</p>""" )) - self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) + self.vcsCleanupAct.triggered.connect(self._vcsCleanup) self.actions.append(self.vcsCleanupAct) self.vcsCommandAct = E5Action( @@ -571,7 +571,7 @@ """<p>This opens a dialog to enter an arbitrary Mercurial""" """ command.</p>""" )) - self.vcsCommandAct.triggered[()].connect(self._vcsCommand) + self.vcsCommandAct.triggered.connect(self._vcsCommand) self.actions.append(self.vcsCommandAct) self.hgConfigAct = E5Action( @@ -586,7 +586,7 @@ """<p>Show the configuration dialog with the Mercurial page""" """ selected.</p>""" )) - self.hgConfigAct.triggered[()].connect(self.__hgConfigure) + self.hgConfigAct.triggered.connect(self.__hgConfigure) self.actions.append(self.hgConfigAct) self.hgEditUserConfigAct = E5Action( @@ -600,7 +600,7 @@ """<b>Edit user configuration</b>""" """<p>Show an editor to edit the user configuration file.</p>""" )) - self.hgEditUserConfigAct.triggered[()].connect(self.__hgEditUserConfig) + self.hgEditUserConfigAct.triggered.connect(self.__hgEditUserConfig) self.actions.append(self.hgEditUserConfigAct) self.hgRepoConfigAct = E5Action( @@ -615,7 +615,7 @@ """<p>Show an editor to edit the repository configuration""" """ file.</p>""" )) - self.hgRepoConfigAct.triggered[()].connect(self.__hgEditRepoConfig) + self.hgRepoConfigAct.triggered.connect(self.__hgEditRepoConfig) self.actions.append(self.hgRepoConfigAct) self.hgShowConfigAct = E5Action( @@ -631,7 +631,7 @@ """<p>This shows the combined configuration settings""" """ from all configuration files.</p>""" )) - self.hgShowConfigAct.triggered[()].connect(self.__hgShowConfig) + self.hgShowConfigAct.triggered.connect(self.__hgShowConfig) self.actions.append(self.hgShowConfigAct) self.hgShowPathsAct = E5Action( @@ -645,7 +645,7 @@ """<b>Show paths</b>""" """<p>This shows the aliases for remote repositories.</p>""" )) - self.hgShowPathsAct.triggered[()].connect(self.__hgShowPaths) + self.hgShowPathsAct.triggered.connect(self.__hgShowPaths) self.actions.append(self.hgShowPathsAct) self.hgVerifyAct = E5Action( @@ -659,7 +659,7 @@ """<b>Verify repository</b>""" """<p>This verifies the integrity of the repository.</p>""" )) - self.hgVerifyAct.triggered[()].connect(self.__hgVerify) + self.hgVerifyAct.triggered.connect(self.__hgVerify) self.actions.append(self.hgVerifyAct) self.hgRecoverAct = E5Action( @@ -673,7 +673,7 @@ """<b>Recover</b>""" """<p>This recovers from an interrupted transaction.</p>""" )) - self.hgRecoverAct.triggered[()].connect(self.__hgRecover) + self.hgRecoverAct.triggered.connect(self.__hgRecover) self.actions.append(self.hgRecoverAct) self.hgIdentifyAct = E5Action( @@ -687,7 +687,7 @@ """<b>Identify</b>""" """<p>This identifies the project directory.</p>""" )) - self.hgIdentifyAct.triggered[()].connect(self.__hgIdentify) + self.hgIdentifyAct.triggered.connect(self.__hgIdentify) self.actions.append(self.hgIdentifyAct) self.hgCreateIgnoreAct = E5Action( @@ -701,7 +701,7 @@ """<b>Create .hgignore</b>""" """<p>This creates a .hgignore file with default values.</p>""" )) - self.hgCreateIgnoreAct.triggered[()].connect(self.__hgCreateIgnore) + self.hgCreateIgnoreAct.triggered.connect(self.__hgCreateIgnore) self.actions.append(self.hgCreateIgnoreAct) self.hgBundleAct = E5Action( @@ -716,7 +716,7 @@ """<p>This creates a changegroup file collecting selected""" """ changesets (hg bundle).</p>""" )) - self.hgBundleAct.triggered[()].connect(self.__hgBundle) + self.hgBundleAct.triggered.connect(self.__hgBundle) self.actions.append(self.hgBundleAct) self.hgPreviewBundleAct = E5Action( @@ -731,7 +731,7 @@ """<p>This previews a changegroup file containing a collection""" """ of changesets.</p>""" )) - self.hgPreviewBundleAct.triggered[()].connect(self.__hgPreviewBundle) + self.hgPreviewBundleAct.triggered.connect(self.__hgPreviewBundle) self.actions.append(self.hgPreviewBundleAct) self.hgIdentifyBundleAct = E5Action( @@ -746,7 +746,7 @@ """<p>This identifies a changegroup file containing a""" """ collection of changesets.</p>""" )) - self.hgIdentifyBundleAct.triggered[()].connect(self.__hgIdentifyBundle) + self.hgIdentifyBundleAct.triggered.connect(self.__hgIdentifyBundle) self.actions.append(self.hgIdentifyBundleAct) self.hgUnbundleAct = E5Action( @@ -761,7 +761,7 @@ """<p>This applies one or several changegroup files generated by""" """ the 'Create changegroup' action (hg unbundle).</p>""" )) - self.hgUnbundleAct.triggered[()].connect(self.__hgUnbundle) + self.hgUnbundleAct.triggered.connect(self.__hgUnbundle) self.actions.append(self.hgUnbundleAct) self.hgBisectGoodAct = E5Action( @@ -775,7 +775,7 @@ """<b>Mark as good</b>""" """<p>This marks a selectable changeset as good.</p>""" )) - self.hgBisectGoodAct.triggered[()].connect(self.__hgBisectGood) + self.hgBisectGoodAct.triggered.connect(self.__hgBisectGood) self.actions.append(self.hgBisectGoodAct) self.hgBisectBadAct = E5Action( @@ -789,7 +789,7 @@ """<b>Mark as bad</b>""" """<p>This marks a selectable changeset as bad.</p>""" )) - self.hgBisectBadAct.triggered[()].connect(self.__hgBisectBad) + self.hgBisectBadAct.triggered.connect(self.__hgBisectBad) self.actions.append(self.hgBisectBadAct) self.hgBisectSkipAct = E5Action( @@ -803,7 +803,7 @@ """<b>Skip</b>""" """<p>This skips a selectable changeset.</p>""" )) - self.hgBisectSkipAct.triggered[()].connect(self.__hgBisectSkip) + self.hgBisectSkipAct.triggered.connect(self.__hgBisectSkip) self.actions.append(self.hgBisectSkipAct) self.hgBisectResetAct = E5Action( @@ -817,7 +817,7 @@ """<b>Reset</b>""" """<p>This resets the bisect search data.</p>""" )) - self.hgBisectResetAct.triggered[()].connect(self.__hgBisectReset) + self.hgBisectResetAct.triggered.connect(self.__hgBisectReset) self.actions.append(self.hgBisectResetAct) self.hgBackoutAct = E5Action( @@ -831,7 +831,7 @@ """<b>Back out changeset</b>""" """<p>This backs out changes of an earlier changeset.</p>""" )) - self.hgBackoutAct.triggered[()].connect(self.__hgBackout) + self.hgBackoutAct.triggered.connect(self.__hgBackout) self.actions.append(self.hgBackoutAct) self.hgRollbackAct = E5Action( @@ -858,7 +858,7 @@ """</p><p><strong>This command is dangerous. Please use with""" """ care. </strong></p>""" )) - self.hgRollbackAct.triggered[()].connect(self.__hgRollback) + self.hgRollbackAct.triggered.connect(self.__hgRollback) self.actions.append(self.hgRollbackAct) self.hgServeAct = E5Action( @@ -872,7 +872,7 @@ """<b>Serve project repository</b>""" """<p>This serves the project repository.</p>""" )) - self.hgServeAct.triggered[()].connect(self.__hgServe) + self.hgServeAct.triggered.connect(self.__hgServe) self.actions.append(self.hgServeAct) self.hgImportAct = E5Action( @@ -887,7 +887,7 @@ """<p>This imports a patch from a patch file into the""" """ project.</p>""" )) - self.hgImportAct.triggered[()].connect(self.__hgImport) + self.hgImportAct.triggered.connect(self.__hgImport) self.actions.append(self.hgImportAct) self.hgExportAct = E5Action( @@ -901,7 +901,7 @@ """<b>Export Patches</b>""" """<p>This exports revisions of the project to patch files.</p>""" )) - self.hgExportAct.triggered[()].connect(self.__hgExport) + self.hgExportAct.triggered.connect(self.__hgExport) self.actions.append(self.hgExportAct) self.hgPhaseAct = E5Action( @@ -915,7 +915,7 @@ """<b>Change Phase</b>""" """<p>This changes the phase of revisions.</p>""" )) - self.hgPhaseAct.triggered[()].connect(self.__hgPhase) + self.hgPhaseAct.triggered.connect(self.__hgPhase) self.actions.append(self.hgPhaseAct) self.hgGraftAct = E5Action( @@ -932,7 +932,7 @@ """ current working directory with the user, date and""" """ description of the original changeset.</p>""" )) - self.hgGraftAct.triggered[()].connect(self.__hgGraft) + self.hgGraftAct.triggered.connect(self.__hgGraft) self.actions.append(self.hgGraftAct) self.hgGraftContinueAct = E5Action( @@ -947,7 +947,7 @@ """<p>This continues the last copying session after conflicts""" """ were resolved.</p>""" )) - self.hgGraftContinueAct.triggered[()].connect(self.__hgGraftContinue) + self.hgGraftContinueAct.triggered.connect(self.__hgGraftContinue) self.actions.append(self.hgGraftContinueAct) self.hgAddSubrepoAct = E5Action( @@ -962,7 +962,7 @@ """<b>Add...</b>""" """<p>Add a sub-repository to the project.</p>""" )) - self.hgAddSubrepoAct.triggered[()].connect(self.__hgAddSubrepository) + self.hgAddSubrepoAct.triggered.connect(self.__hgAddSubrepository) self.actions.append(self.hgAddSubrepoAct) self.hgRemoveSubreposAct = E5Action( @@ -977,7 +977,7 @@ """<b>Remove...</b>""" """<p>Remove sub-repositories from the project.</p>""" )) - self.hgRemoveSubreposAct.triggered[()].connect( + self.hgRemoveSubreposAct.triggered.connect( self.__hgRemoveSubrepositories) self.actions.append(self.hgRemoveSubreposAct) @@ -994,7 +994,7 @@ """<p>This creates an unversioned archive from the""" """ repository.</p>""" )) - self.hgArchiveAct.triggered[()].connect(self.__hgArchive) + self.hgArchiveAct.triggered.connect(self.__hgArchive) self.actions.append(self.hgArchiveAct) def initMenu(self, menu):
--- a/Plugins/VcsPlugins/vcsMercurial/PurgeExtension/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/PurgeExtension/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -47,7 +47,7 @@ """<li>empty directories</li>""" """</ul>Note that ignored files will be left untouched.</p>""" )) - self.hgPurgeAct.triggered[()].connect(self.__hgPurge) + self.hgPurgeAct.triggered.connect(self.__hgPurge) self.actions.append(self.hgPurgeAct) self.hgPurgeAllAct = E5Action( @@ -68,7 +68,7 @@ """<li>ignored files and directories</li>""" """</ul></p>""" )) - self.hgPurgeAllAct.triggered[()].connect(self.__hgPurgeAll) + self.hgPurgeAllAct.triggered.connect(self.__hgPurgeAll) self.actions.append(self.hgPurgeAllAct) self.hgPurgeListAct = E5Action( @@ -84,7 +84,7 @@ """<p>This lists files and directories not known to Mercurial.""" """ These would be deleted by the "Purge Files" menu entry.</p>""" )) - self.hgPurgeListAct.triggered[()].connect(self.__hgPurgeList) + self.hgPurgeListAct.triggered.connect(self.__hgPurgeList) self.actions.append(self.hgPurgeListAct) self.hgPurgeAllListAct = E5Action( @@ -101,7 +101,7 @@ """ including ignored ones. These would be deleted by the""" """ "Purge All Files" menu entry.</p>""" )) - self.hgPurgeAllListAct.triggered[()].connect(self.__hgPurgeAllList) + self.hgPurgeAllListAct.triggered.connect(self.__hgPurgeAllList) self.actions.append(self.hgPurgeAllListAct) def initMenu(self, mainMenu):
--- a/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -43,7 +43,7 @@ """<p>This initializes a new versioned queue repository inside""" """ the current repository.</p>""" )) - self.hgQueueInitAct.triggered[()].connect(self.__hgQueueInit) + self.hgQueueInitAct.triggered.connect(self.__hgQueueInit) self.actions.append(self.hgQueueInitAct) self.hgQueueCommitAct = E5Action( @@ -57,7 +57,7 @@ """<b>Commit changes...</b>""" """<p>This commits changes in the queue repository.</p>""" )) - self.hgQueueCommitAct.triggered[()].connect(self.__hgQueueCommit) + self.hgQueueCommitAct.triggered.connect(self.__hgQueueCommit) self.actions.append(self.hgQueueCommitAct) self.hgQueueNewAct = E5Action( @@ -71,7 +71,7 @@ """<b>New Patch</b>""" """<p>This creates a new named patch.</p>""" )) - self.hgQueueNewAct.triggered[()].connect(self.__hgQueueNewPatch) + self.hgQueueNewAct.triggered.connect(self.__hgQueueNewPatch) self.actions.append(self.hgQueueNewAct) self.hgQueueRefreshAct = E5Action( @@ -85,7 +85,7 @@ """<b>Update Current Patch</b>""" """<p>This updates the current patch.</p>""" )) - self.hgQueueRefreshAct.triggered[()].connect( + self.hgQueueRefreshAct.triggered.connect( self.__hgQueueRefreshPatch) self.actions.append(self.hgQueueRefreshAct) @@ -101,7 +101,7 @@ """<p>This updates the current patch after giving the chance""" """ to change the current commit message.</p>""" )) - self.hgQueueRefreshMessageAct.triggered[()].connect( + self.hgQueueRefreshMessageAct.triggered.connect( self.__hgQueueRefreshPatchMessage) self.actions.append(self.hgQueueRefreshMessageAct) @@ -118,7 +118,7 @@ """ any changes which have been made in the working directory""" """ since the last refresh.</p>""" )) - self.hgQueueDiffAct.triggered[()].connect(self.__hgQueueShowPatch) + self.hgQueueDiffAct.triggered.connect(self.__hgQueueShowPatch) self.actions.append(self.hgQueueDiffAct) self.hgQueueHeaderAct = E5Action( @@ -132,7 +132,7 @@ """<b>Show Current Message</b>""" """<p>This shows the commit message of the current patch.</p>""" )) - self.hgQueueHeaderAct.triggered[()].connect(self.__hgQueueShowHeader) + self.hgQueueHeaderAct.triggered.connect(self.__hgQueueShowHeader) self.actions.append(self.hgQueueHeaderAct) self.hgQueueListAct = E5Action( @@ -146,7 +146,7 @@ """<b>List Patches</b>""" """<p>This lists all applied and unapplied patches.</p>""" )) - self.hgQueueListAct.triggered[()].connect(self.__hgQueueListPatches) + self.hgQueueListAct.triggered.connect(self.__hgQueueListPatches) self.actions.append(self.hgQueueListAct) self.hgQueueFinishAct = E5Action( @@ -161,7 +161,7 @@ """<p>This finishes the applied patches by moving them out of""" """ mq control into regular repository history.</p>""" )) - self.hgQueueFinishAct.triggered[()].connect( + self.hgQueueFinishAct.triggered.connect( self.__hgQueueFinishAppliedPatches) self.actions.append(self.hgQueueFinishAct) @@ -176,7 +176,7 @@ """<b>Rename Patch</b>""" """<p>This renames the current or a named patch.</p>""" )) - self.hgQueueRenameAct.triggered[()].connect(self.__hgQueueRenamePatch) + self.hgQueueRenameAct.triggered.connect(self.__hgQueueRenamePatch) self.actions.append(self.hgQueueRenameAct) self.hgQueueDeleteAct = E5Action( @@ -190,7 +190,7 @@ """<b>Delete Patch</b>""" """<p>This deletes an unapplied patch.</p>""" )) - self.hgQueueDeleteAct.triggered[()].connect(self.__hgQueueDeletePatch) + self.hgQueueDeleteAct.triggered.connect(self.__hgQueueDeletePatch) self.actions.append(self.hgQueueDeleteAct) self.hgQueueFoldAct = E5Action( @@ -204,7 +204,7 @@ """<b>Fold Patches</b>""" """<p>This folds unapplied patches into the current patch.</p>""" )) - self.hgQueueFoldAct.triggered[()].connect( + self.hgQueueFoldAct.triggered.connect( self.__hgQueueFoldUnappliedPatches) self.actions.append(self.hgQueueFoldAct) @@ -219,7 +219,7 @@ """<b>Show Status</b>""" """<p>This shows the status of the queue repository.</p>""" )) - self.hgQueueStatusAct.triggered[()].connect(self.__hgQueueStatus) + self.hgQueueStatusAct.triggered.connect(self.__hgQueueStatus) self.actions.append(self.hgQueueStatusAct) # TODO: add support for hg summary --mq @@ -245,7 +245,7 @@ """<p>This pushes the next patch onto the stack of applied""" """ patches.</p>""" )) - self.hgQueuePushAct.triggered[()].connect(self.__hgQueuePushPatch) + self.hgQueuePushAct.triggered.connect(self.__hgQueuePushPatch) self.actions.append(self.hgQueuePushAct) self.hgQueuePushAllAct = E5Action( @@ -260,7 +260,7 @@ """<p>This pushes all patches onto the stack of applied""" """ patches.</p>""" )) - self.hgQueuePushAllAct.triggered[()].connect( + self.hgQueuePushAllAct.triggered.connect( self.__hgQueuePushAllPatches) self.actions.append(self.hgQueuePushAllAct) @@ -276,7 +276,7 @@ """<p>This pushes patches onto the stack of applied patches""" """ until a named patch is at the top of the stack.</p>""" )) - self.hgQueuePushUntilAct.triggered[()].connect( + self.hgQueuePushUntilAct.triggered.connect( self.__hgQueuePushPatches) self.actions.append(self.hgQueuePushUntilAct) @@ -292,7 +292,7 @@ """<p>This pops the current patch off the stack of applied""" """ patches.</p>""" )) - self.hgQueuePopAct.triggered[()].connect(self.__hgQueuePopPatch) + self.hgQueuePopAct.triggered.connect(self.__hgQueuePopPatch) self.actions.append(self.hgQueuePopAct) self.hgQueuePopAllAct = E5Action( @@ -307,7 +307,7 @@ """<p>This pops all patches off the stack of applied""" """ patches.</p>""" )) - self.hgQueuePopAllAct.triggered[()].connect( + self.hgQueuePopAllAct.triggered.connect( self.__hgQueuePopAllPatches) self.actions.append(self.hgQueuePopAllAct) @@ -323,7 +323,7 @@ """<p>This pops patches off the stack of applied patches""" """ until a named patch is at the top of the stack.</p>""" )) - self.hgQueuePopUntilAct.triggered[()].connect(self.__hgQueuePopPatches) + self.hgQueuePopUntilAct.triggered.connect(self.__hgQueuePopPatches) self.actions.append(self.hgQueuePopUntilAct) self.hgQueueGotoAct = E5Action( @@ -338,7 +338,7 @@ """<p>This pushes or pops patches until a named patch is at the""" """ top of the stack.</p>""" )) - self.hgQueueGotoAct.triggered[()].connect(self.__hgQueueGotoPatch) + self.hgQueueGotoAct.triggered.connect(self.__hgQueueGotoPatch) self.actions.append(self.hgQueueGotoAct) def __initPushPopForceActions(self): @@ -357,7 +357,7 @@ """<p>This pushes the next patch onto the stack of applied""" """ patches on top of local changes.</p>""" )) - self.hgQueuePushForceAct.triggered[()].connect( + self.hgQueuePushForceAct.triggered.connect( self.__hgQueuePushPatchForced) self.actions.append(self.hgQueuePushForceAct) @@ -373,7 +373,7 @@ """<p>This pushes all patches onto the stack of applied patches""" """ on top of local changes.</p>""" )) - self.hgQueuePushAllForceAct.triggered[()].connect( + self.hgQueuePushAllForceAct.triggered.connect( self.__hgQueuePushAllPatchesForced) self.actions.append(self.hgQueuePushAllForceAct) @@ -390,7 +390,7 @@ """ until a named patch is at the top of the stack on top of""" """ local changes.</p>""" )) - self.hgQueuePushUntilForceAct.triggered[()].connect( + self.hgQueuePushUntilForceAct.triggered.connect( self.__hgQueuePushPatchesForced) self.actions.append(self.hgQueuePushUntilForceAct) @@ -407,7 +407,7 @@ """ patches""" """ forgetting local changes.</p>""" )) - self.hgQueuePopForceAct.triggered[()].connect( + self.hgQueuePopForceAct.triggered.connect( self.__hgQueuePopPatchForced) self.actions.append(self.hgQueuePopForceAct) @@ -423,7 +423,7 @@ """<p>This pops all patches off the stack of applied patches""" """ forgetting local changes.</p>""" )) - self.hgQueuePopAllForceAct.triggered[()].connect( + self.hgQueuePopAllForceAct.triggered.connect( self.__hgQueuePopAllPatchesForced) self.actions.append(self.hgQueuePopAllForceAct) @@ -440,7 +440,7 @@ """ a named patch is at the top of the stack forgetting local""" """ changes.</p>""" )) - self.hgQueuePopUntilForceAct.triggered[()].connect( + self.hgQueuePopUntilForceAct.triggered.connect( self.__hgQueuePopPatchesForced) self.actions.append(self.hgQueuePopUntilForceAct) @@ -457,7 +457,7 @@ """<p>This pushes or pops patches until a named patch is at the""" """ top of the stack overwriting any local changes.</p>""" )) - self.hgQueueGotoForceAct.triggered[()].connect( + self.hgQueueGotoForceAct.triggered.connect( self.__hgQueueGotoPatchForced) self.actions.append(self.hgQueueGotoForceAct) @@ -477,7 +477,7 @@ """<p>This opens a dialog to define guards for the current""" """ or a named patch.</p>""" )) - self.hgQueueDefineGuardsAct.triggered[()].connect( + self.hgQueueDefineGuardsAct.triggered.connect( self.__hgQueueGuardsDefine) self.actions.append(self.hgQueueDefineGuardsAct) @@ -492,7 +492,7 @@ """<b>Drop All Guards</b>""" """<p>This drops all guards of the current or a named patch.</p>""" )) - self.hgQueueDropAllGuardsAct.triggered[()].connect( + self.hgQueueDropAllGuardsAct.triggered.connect( self.__hgQueueGuardsDropAll) self.actions.append(self.hgQueueDropAllGuardsAct) @@ -507,7 +507,7 @@ """<b>List Guards</b>""" """<p>This lists the guards of the current or a named patch.</p>""" )) - self.hgQueueListGuardsAct.triggered[()].connect( + self.hgQueueListGuardsAct.triggered.connect( self.__hgQueueGuardsList) self.actions.append(self.hgQueueListGuardsAct) @@ -522,7 +522,7 @@ """<b>List All Guards</b>""" """<p>This lists all guards of all patches.</p>""" )) - self.hgQueueListAllGuardsAct.triggered[()].connect( + self.hgQueueListAllGuardsAct.triggered.connect( self.__hgQueueGuardsListAll) self.actions.append(self.hgQueueListAllGuardsAct) @@ -537,7 +537,7 @@ """<b>Set Active Guards</b>""" """<p>This opens a dialog to set the active guards.</p>""" )) - self.hgQueueActivateGuardsAct.triggered[()].connect( + self.hgQueueActivateGuardsAct.triggered.connect( self.__hgQueueGuardsSetActive) self.actions.append(self.hgQueueActivateGuardsAct) @@ -552,7 +552,7 @@ """<b>Deactivate Guards</b>""" """<p>This deactivates all active guards.</p>""" )) - self.hgQueueDeactivateGuardsAct.triggered[()].connect( + self.hgQueueDeactivateGuardsAct.triggered.connect( self.__hgQueueGuardsDeactivate) self.actions.append(self.hgQueueDeactivateGuardsAct) @@ -567,7 +567,7 @@ """<b>Identify Active Guards</b>""" """<p>This opens a dialog showing a list of active guards.</p>""" )) - self.hgQueueIdentifyActiveGuardsAct.triggered[()].connect( + self.hgQueueIdentifyActiveGuardsAct.triggered.connect( self.__hgQueueGuardsIdentifyActive) self.actions.append(self.hgQueueIdentifyActiveGuardsAct) @@ -586,7 +586,7 @@ """<b>Create Queue</b>""" """<p>This creates a new patch queue.</p>""" )) - self.hgQueueCreateQueueAct.triggered[()].connect( + self.hgQueueCreateQueueAct.triggered.connect( self.__hgQueueCreateQueue) self.actions.append(self.hgQueueCreateQueueAct) @@ -601,7 +601,7 @@ """<b>Rename Queue</b>""" """<p>This renames the active patch queue.</p>""" )) - self.hgQueueRenameQueueAct.triggered[()].connect( + self.hgQueueRenameQueueAct.triggered.connect( self.__hgQueueRenameQueue) self.actions.append(self.hgQueueRenameQueueAct) @@ -616,7 +616,7 @@ """<b>Delete Queue</b>""" """<p>This deletes the reference to a patch queue.</p>""" )) - self.hgQueueDeleteQueueAct.triggered[()].connect( + self.hgQueueDeleteQueueAct.triggered.connect( self.__hgQueueDeleteQueue) self.actions.append(self.hgQueueDeleteQueueAct) @@ -633,7 +633,7 @@ """<p>This deletes the reference to a patch queue and removes""" """ the patch directory.</p>""" )) - self.hgQueuePurgeQueueAct.triggered[()].connect( + self.hgQueuePurgeQueueAct.triggered.connect( self.__hgQueuePurgeQueue) self.actions.append(self.hgQueuePurgeQueueAct) @@ -648,7 +648,7 @@ """<b>Activate Queue</b>""" """<p>This sets the active queue.</p>""" )) - self.hgQueueActivateQueueAct.triggered[()].connect( + self.hgQueueActivateQueueAct.triggered.connect( self.__hgQueueActivateQueue) self.actions.append(self.hgQueueActivateQueueAct) @@ -663,7 +663,7 @@ """<b>List Queues</b>""" """<p>This opens a dialog showing all available queues.</p>""" )) - self.hgQueueListQueuesAct.triggered[()].connect( + self.hgQueueListQueuesAct.triggered.connect( self.__hgQueueListQueues) self.actions.append(self.hgQueueListQueuesAct)
--- a/Plugins/VcsPlugins/vcsMercurial/RebaseExtension/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/RebaseExtension/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -43,7 +43,7 @@ """<b>Rebase Changesets</b>""" """<p>This rebases changesets to another branch.</p>""" )) - self.hgRebaseAct.triggered[()].connect(self.__hgRebase) + self.hgRebaseAct.triggered.connect(self.__hgRebase) self.actions.append(self.hgRebaseAct) self.hgRebaseContinueAct = E5Action( @@ -57,7 +57,7 @@ """<b>Continue Rebase Session</b>""" """<p>This continues the last rebase session after repair.</p>""" )) - self.hgRebaseContinueAct.triggered[()].connect(self.__hgRebaseContinue) + self.hgRebaseContinueAct.triggered.connect(self.__hgRebaseContinue) self.actions.append(self.hgRebaseContinueAct) self.hgRebaseAbortAct = E5Action( @@ -71,7 +71,7 @@ """<b>Abort Rebase Session</b>""" """<p>This aborts the last rebase session.</p>""" )) - self.hgRebaseAbortAct.triggered[()].connect(self.__hgRebaseAbort) + self.hgRebaseAbortAct.triggered.connect(self.__hgRebaseAbort) self.actions.append(self.hgRebaseAbortAct) def initMenu(self, mainMenu):
--- a/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -40,7 +40,7 @@ """<b>Shelve changes</b>""" """<p>This shelves all current changes of the project.</p>""" )) - self.hgShelveAct.triggered[()].connect(self.__hgShelve) + self.hgShelveAct.triggered.connect(self.__hgShelve) self.actions.append(self.hgShelveAct) self.hgShelveBrowserAct = E5Action( @@ -56,7 +56,7 @@ """ Actions on these shelves may be executed via the""" """ context menu.</p>""" )) - self.hgShelveBrowserAct.triggered[()].connect( + self.hgShelveBrowserAct.triggered.connect( self.__hgShelveBrowser) self.actions.append(self.hgShelveBrowserAct) @@ -72,7 +72,7 @@ """<p>This restore a shelved change to the project directory.""" """</p>""" )) - self.hgUnshelveAct.triggered[()].connect(self.__hgUnshelve) + self.hgUnshelveAct.triggered.connect(self.__hgUnshelve) self.actions.append(self.hgUnshelveAct) self.hgUnshelveAbortAct = E5Action( @@ -87,7 +87,7 @@ """<p>This aborts the restore operation in progress and reverts""" """ already applied changes.</p>""" )) - self.hgUnshelveAbortAct.triggered[()].connect(self.__hgUnshelveAbort) + self.hgUnshelveAbortAct.triggered.connect(self.__hgUnshelveAbort) self.actions.append(self.hgUnshelveAbortAct) self.hgUnshelveContinueAct = E5Action( @@ -101,7 +101,7 @@ """<b>Continue restore</b>""" """<p>This continues the restore operation in progress.</p>""" )) - self.hgUnshelveContinueAct.triggered[()].connect( + self.hgUnshelveContinueAct.triggered.connect( self.__hgUnshelveContinue) self.actions.append(self.hgUnshelveContinueAct) @@ -114,7 +114,7 @@ """<p>This opens a dialog to select the shelved changes to""" """ delete and deletes the selected ones.</p>""" )) - self.hgShelveDeleteAct.triggered[()].connect( + self.hgShelveDeleteAct.triggered.connect( self.__hgDeleteShelves) self.actions.append(self.hgShelveDeleteAct) @@ -126,7 +126,7 @@ """<b>Delete ALL shelved changes</b>""" """<p>This deletes all shelved changes.</p>""" )) - self.hgShelveCleanupAct.triggered[()].connect( + self.hgShelveCleanupAct.triggered.connect( self.__hgCleanupShelves) self.actions.append(self.hgShelveCleanupAct)
--- a/Plugins/VcsPlugins/vcsMercurial/TransplantExtension/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/TransplantExtension/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -59,7 +59,7 @@ """ of the current working directory with the log of the""" """ original changeset.</p>""" )) - self.hgTransplantAct.triggered[()].connect(self.__hgTransplant) + self.hgTransplantAct.triggered.connect(self.__hgTransplant) self.actions.append(self.hgTransplantAct) self.hgTransplantContinueAct = E5Action( @@ -74,7 +74,7 @@ """<p>This continues the last transplant session after""" """ repair.</p>""" )) - self.hgTransplantContinueAct.triggered[()].connect( + self.hgTransplantContinueAct.triggered.connect( self.__hgTransplantContinue) self.actions.append(self.hgTransplantContinueAct)
--- a/Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -58,7 +58,7 @@ """<p>This creates a new local project from the VCS""" """ repository.</p>""" )) - self.vcsNewAct.triggered[()].connect(self._vcsCheckout) + self.vcsNewAct.triggered.connect(self._vcsCheckout) self.actions.append(self.vcsNewAct) self.vcsUpdateAct = E5Action( @@ -74,7 +74,7 @@ """<p>This updates the local project from the VCS""" """ repository.</p>""" )) - self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate) + self.vcsUpdateAct.triggered.connect(self._vcsUpdate) self.actions.append(self.vcsUpdateAct) self.vcsCommitAct = E5Action( @@ -90,7 +90,7 @@ """<p>This commits changes to the local project to the VCS""" """ repository.</p>""" )) - self.vcsCommitAct.triggered[()].connect(self._vcsCommit) + self.vcsCommitAct.triggered.connect(self._vcsCommit) self.actions.append(self.vcsCommitAct) self.vcsLogAct = E5Action( @@ -105,7 +105,7 @@ """<b>Show log</b>""" """<p>This shows the log of the local project.</p>""" )) - self.vcsLogAct.triggered[()].connect(self._vcsLog) + self.vcsLogAct.triggered.connect(self._vcsLog) self.actions.append(self.vcsLogAct) self.svnLogBrowserAct = E5Action( @@ -122,7 +122,7 @@ """ project. A limited number of entries is shown first. More""" """ can be retrieved later on.</p>""" )) - self.svnLogBrowserAct.triggered[()].connect(self.__svnLogBrowser) + self.svnLogBrowserAct.triggered.connect(self.__svnLogBrowser) self.actions.append(self.svnLogBrowserAct) self.vcsDiffAct = E5Action( @@ -138,7 +138,7 @@ """<p>This shows the difference of the local project to the""" """ repository.</p>""" )) - self.vcsDiffAct.triggered[()].connect(self._vcsDiff) + self.vcsDiffAct.triggered.connect(self._vcsDiff) self.actions.append(self.vcsDiffAct) self.svnExtDiffAct = E5Action( @@ -154,7 +154,7 @@ """<p>This shows the difference of selectable revisions of""" """ the project.</p>""" )) - self.svnExtDiffAct.triggered[()].connect(self.__svnExtendedDiff) + self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff) self.actions.append(self.svnExtDiffAct) self.svnUrlDiffAct = E5Action( @@ -170,7 +170,7 @@ """<p>This shows the difference of the project between""" """ two repository URLs.</p>""" )) - self.svnUrlDiffAct.triggered[()].connect(self.__svnUrlDiff) + self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff) self.actions.append(self.svnUrlDiffAct) self.vcsStatusAct = E5Action( @@ -185,7 +185,7 @@ """<b>Show status</b>""" """<p>This shows the status of the local project.</p>""" )) - self.vcsStatusAct.triggered[()].connect(self._vcsStatus) + self.vcsStatusAct.triggered.connect(self._vcsStatus) self.actions.append(self.vcsStatusAct) self.svnChangeListsAct = E5Action( @@ -201,7 +201,7 @@ """<p>This shows the change lists and associated files of the""" """ local project.</p>""" )) - self.svnChangeListsAct.triggered[()].connect(self.__svnChangeLists) + self.svnChangeListsAct.triggered.connect(self.__svnChangeLists) self.actions.append(self.svnChangeListsAct) self.svnRepoInfoAct = E5Action( @@ -217,7 +217,7 @@ """<p>This shows some repository related information for""" """ the local project.</p>""" )) - self.svnRepoInfoAct.triggered[()].connect(self.__svnInfo) + self.svnRepoInfoAct.triggered.connect(self.__svnInfo) self.actions.append(self.svnRepoInfoAct) self.vcsTagAct = E5Action( @@ -232,7 +232,7 @@ """<b>Tag in repository</b>""" """<p>This tags the local project in the repository.</p>""" )) - self.vcsTagAct.triggered[()].connect(self._vcsTag) + self.vcsTagAct.triggered.connect(self._vcsTag) self.actions.append(self.vcsTagAct) self.vcsExportAct = E5Action( @@ -247,7 +247,7 @@ """<b>Export from repository</b>""" """<p>This exports a project from the repository.</p>""" )) - self.vcsExportAct.triggered[()].connect(self._vcsExport) + self.vcsExportAct.triggered.connect(self._vcsExport) self.actions.append(self.vcsExportAct) self.vcsPropsAct = E5Action( @@ -260,7 +260,7 @@ """<b>Command options...</b>""" """<p>This shows a dialog to edit the VCS command options.</p>""" )) - self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) + self.vcsPropsAct.triggered.connect(self._vcsCommandOptions) self.actions.append(self.vcsPropsAct) self.vcsRevertAct = E5Action( @@ -275,7 +275,7 @@ """<b>Revert changes</b>""" """<p>This reverts all changes made to the local project.</p>""" )) - self.vcsRevertAct.triggered[()].connect(self._vcsRevert) + self.vcsRevertAct.triggered.connect(self._vcsRevert) self.actions.append(self.vcsRevertAct) self.vcsMergeAct = E5Action( @@ -291,7 +291,7 @@ """<p>This merges changes of a tag/revision into the local""" """ project.</p>""" )) - self.vcsMergeAct.triggered[()].connect(self._vcsMerge) + self.vcsMergeAct.triggered.connect(self._vcsMerge) self.actions.append(self.vcsMergeAct) self.vcsSwitchAct = E5Action( @@ -306,7 +306,7 @@ """<b>Switch</b>""" """<p>This switches the local copy to another tag/branch.</p>""" )) - self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) + self.vcsSwitchAct.triggered.connect(self._vcsSwitch) self.actions.append(self.vcsSwitchAct) self.vcsResolveAct = E5Action( @@ -321,7 +321,7 @@ """<p>This marks all conflicts of the local project as""" """ resolved.</p>""" )) - self.vcsResolveAct.triggered[()].connect(self.__svnResolve) + self.vcsResolveAct.triggered.connect(self.__svnResolve) self.actions.append(self.vcsResolveAct) self.vcsCleanupAct = E5Action( @@ -335,7 +335,7 @@ """<b>Cleanup</b>""" """<p>This performs a cleanup of the local project.</p>""" )) - self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) + self.vcsCleanupAct.triggered.connect(self._vcsCleanup) self.actions.append(self.vcsCleanupAct) self.vcsCommandAct = E5Action( @@ -349,7 +349,7 @@ """<b>Execute command</b>""" """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" )) - self.vcsCommandAct.triggered[()].connect(self._vcsCommand) + self.vcsCommandAct.triggered.connect(self._vcsCommand) self.actions.append(self.vcsCommandAct) self.svnTagListAct = E5Action( @@ -363,7 +363,7 @@ """<b>List tags</b>""" """<p>This lists the tags of the project.</p>""" )) - self.svnTagListAct.triggered[()].connect(self.__svnTagList) + self.svnTagListAct.triggered.connect(self.__svnTagList) self.actions.append(self.svnTagListAct) self.svnBranchListAct = E5Action( @@ -377,7 +377,7 @@ """<b>List branches</b>""" """<p>This lists the branches of the project.</p>""" )) - self.svnBranchListAct.triggered[()].connect(self.__svnBranchList) + self.svnBranchListAct.triggered.connect(self.__svnBranchList) self.actions.append(self.svnBranchListAct) self.svnListAct = E5Action( @@ -391,7 +391,7 @@ """<b>List repository contents</b>""" """<p>This lists the contents of the repository.</p>""" )) - self.svnListAct.triggered[()].connect(self.__svnTagList) + self.svnListAct.triggered.connect(self.__svnTagList) self.actions.append(self.svnListAct) self.svnPropSetAct = E5Action( @@ -405,7 +405,7 @@ """<b>Set Property</b>""" """<p>This sets a property for the project files.</p>""" )) - self.svnPropSetAct.triggered[()].connect(self.__svnPropSet) + self.svnPropSetAct.triggered.connect(self.__svnPropSet) self.actions.append(self.svnPropSetAct) self.svnPropListAct = E5Action( @@ -419,7 +419,7 @@ """<b>List Properties</b>""" """<p>This lists the properties of the project files.</p>""" )) - self.svnPropListAct.triggered[()].connect(self.__svnPropList) + self.svnPropListAct.triggered.connect(self.__svnPropList) self.actions.append(self.svnPropListAct) self.svnPropDelAct = E5Action( @@ -433,7 +433,7 @@ """<b>Delete Property</b>""" """<p>This deletes a property for the project files.</p>""" )) - self.svnPropDelAct.triggered[()].connect(self.__svnPropDel) + self.svnPropDelAct.triggered.connect(self.__svnPropDel) self.actions.append(self.svnPropDelAct) self.svnRelocateAct = E5Action( @@ -449,7 +449,7 @@ """<p>This relocates the working copy to a new repository""" """ URL.</p>""" )) - self.svnRelocateAct.triggered[()].connect(self.__svnRelocate) + self.svnRelocateAct.triggered.connect(self.__svnRelocate) self.actions.append(self.svnRelocateAct) self.svnRepoBrowserAct = E5Action( @@ -464,7 +464,7 @@ """<b>Repository Browser</b>""" """<p>This shows the Repository Browser dialog.</p>""" )) - self.svnRepoBrowserAct.triggered[()].connect(self.__svnRepoBrowser) + self.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser) self.actions.append(self.svnRepoBrowserAct) self.svnConfigAct = E5Action( @@ -479,7 +479,7 @@ """<p>Show the configuration dialog with the Subversion page""" """ selected.</p>""" )) - self.svnConfigAct.triggered[()].connect(self.__svnConfigure) + self.svnConfigAct.triggered.connect(self.__svnConfigure) self.actions.append(self.svnConfigAct) self.svnUpgradeAct = E5Action( @@ -493,7 +493,7 @@ """<b>Upgrade</b>""" """<p>Upgrades the working copy to the current format.</p>""" )) - self.svnUpgradeAct.triggered[()].connect(self.__svnUpgrade) + self.svnUpgradeAct.triggered.connect(self.__svnUpgrade) self.actions.append(self.svnUpgradeAct) def initMenu(self, menu):
--- a/Plugins/VcsPlugins/vcsSubversion/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/VcsPlugins/vcsSubversion/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -58,7 +58,7 @@ """<p>This creates a new local project from the VCS""" """ repository.</p>""" )) - self.vcsNewAct.triggered[()].connect(self._vcsCheckout) + self.vcsNewAct.triggered.connect(self._vcsCheckout) self.actions.append(self.vcsNewAct) self.vcsUpdateAct = E5Action( @@ -74,7 +74,7 @@ """<p>This updates the local project from the VCS""" """ repository.</p>""" )) - self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate) + self.vcsUpdateAct.triggered.connect(self._vcsUpdate) self.actions.append(self.vcsUpdateAct) self.vcsCommitAct = E5Action( @@ -90,7 +90,7 @@ """<p>This commits changes to the local project to the VCS""" """ repository.</p>""" )) - self.vcsCommitAct.triggered[()].connect(self._vcsCommit) + self.vcsCommitAct.triggered.connect(self._vcsCommit) self.actions.append(self.vcsCommitAct) self.vcsLogAct = E5Action( @@ -105,7 +105,7 @@ """<b>Show log</b>""" """<p>This shows the log of the local project.</p>""" )) - self.vcsLogAct.triggered[()].connect(self._vcsLog) + self.vcsLogAct.triggered.connect(self._vcsLog) self.actions.append(self.vcsLogAct) self.svnLogBrowserAct = E5Action( @@ -122,7 +122,7 @@ """ project. A limited number of entries is shown first. More""" """ can be retrieved later on.</p>""" )) - self.svnLogBrowserAct.triggered[()].connect(self.__svnLogBrowser) + self.svnLogBrowserAct.triggered.connect(self.__svnLogBrowser) self.actions.append(self.svnLogBrowserAct) self.vcsDiffAct = E5Action( @@ -138,7 +138,7 @@ """<p>This shows the difference of the local project to the""" """ repository.</p>""" )) - self.vcsDiffAct.triggered[()].connect(self._vcsDiff) + self.vcsDiffAct.triggered.connect(self._vcsDiff) self.actions.append(self.vcsDiffAct) self.svnExtDiffAct = E5Action( @@ -154,7 +154,7 @@ """<p>This shows the difference of selectable revisions of""" """ the project.</p>""" )) - self.svnExtDiffAct.triggered[()].connect(self.__svnExtendedDiff) + self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff) self.actions.append(self.svnExtDiffAct) self.svnUrlDiffAct = E5Action( @@ -170,7 +170,7 @@ """<p>This shows the difference of the project between""" """ two repository URLs.</p>""" )) - self.svnUrlDiffAct.triggered[()].connect(self.__svnUrlDiff) + self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff) self.actions.append(self.svnUrlDiffAct) self.vcsStatusAct = E5Action( @@ -185,7 +185,7 @@ """<b>Show status</b>""" """<p>This shows the status of the local project.</p>""" )) - self.vcsStatusAct.triggered[()].connect(self._vcsStatus) + self.vcsStatusAct.triggered.connect(self._vcsStatus) self.actions.append(self.vcsStatusAct) self.svnChangeListsAct = E5Action( @@ -201,7 +201,7 @@ """<p>This shows the change lists and associated files of the""" """ local project.</p>""" )) - self.svnChangeListsAct.triggered[()].connect(self.__svnChangeLists) + self.svnChangeListsAct.triggered.connect(self.__svnChangeLists) self.actions.append(self.svnChangeListsAct) self.vcsTagAct = E5Action( @@ -216,7 +216,7 @@ """<b>Tag in repository</b>""" """<p>This tags the local project in the repository.</p>""" )) - self.vcsTagAct.triggered[()].connect(self._vcsTag) + self.vcsTagAct.triggered.connect(self._vcsTag) self.actions.append(self.vcsTagAct) self.vcsExportAct = E5Action( @@ -231,7 +231,7 @@ """<b>Export from repository</b>""" """<p>This exports a project from the repository.</p>""" )) - self.vcsExportAct.triggered[()].connect(self._vcsExport) + self.vcsExportAct.triggered.connect(self._vcsExport) self.actions.append(self.vcsExportAct) self.vcsPropsAct = E5Action( @@ -244,7 +244,7 @@ """<b>Command options...</b>""" """<p>This shows a dialog to edit the VCS command options.</p>""" )) - self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) + self.vcsPropsAct.triggered.connect(self._vcsCommandOptions) self.actions.append(self.vcsPropsAct) self.vcsRevertAct = E5Action( @@ -259,7 +259,7 @@ """<b>Revert changes</b>""" """<p>This reverts all changes made to the local project.</p>""" )) - self.vcsRevertAct.triggered[()].connect(self._vcsRevert) + self.vcsRevertAct.triggered.connect(self._vcsRevert) self.actions.append(self.vcsRevertAct) self.vcsMergeAct = E5Action( @@ -275,7 +275,7 @@ """<p>This merges changes of a tag/revision into the local""" """ project.</p>""" )) - self.vcsMergeAct.triggered[()].connect(self._vcsMerge) + self.vcsMergeAct.triggered.connect(self._vcsMerge) self.actions.append(self.vcsMergeAct) self.vcsSwitchAct = E5Action( @@ -290,7 +290,7 @@ """<b>Switch</b>""" """<p>This switches the local copy to another tag/branch.</p>""" )) - self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) + self.vcsSwitchAct.triggered.connect(self._vcsSwitch) self.actions.append(self.vcsSwitchAct) self.vcsResolveAct = E5Action( @@ -305,7 +305,7 @@ """<p>This marks all conflicts of the local project as""" """ resolved.</p>""" )) - self.vcsResolveAct.triggered[()].connect(self.__svnResolve) + self.vcsResolveAct.triggered.connect(self.__svnResolve) self.actions.append(self.vcsResolveAct) self.vcsCleanupAct = E5Action( @@ -319,7 +319,7 @@ """<b>Cleanup</b>""" """<p>This performs a cleanup of the local project.</p>""" )) - self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) + self.vcsCleanupAct.triggered.connect(self._vcsCleanup) self.actions.append(self.vcsCleanupAct) self.vcsCommandAct = E5Action( @@ -333,7 +333,7 @@ """<b>Execute command</b>""" """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" )) - self.vcsCommandAct.triggered[()].connect(self._vcsCommand) + self.vcsCommandAct.triggered.connect(self._vcsCommand) self.actions.append(self.vcsCommandAct) self.svnTagListAct = E5Action( @@ -347,7 +347,7 @@ """<b>List tags</b>""" """<p>This lists the tags of the project.</p>""" )) - self.svnTagListAct.triggered[()].connect(self.__svnTagList) + self.svnTagListAct.triggered.connect(self.__svnTagList) self.actions.append(self.svnTagListAct) self.svnBranchListAct = E5Action( @@ -361,7 +361,7 @@ """<b>List branches</b>""" """<p>This lists the branches of the project.</p>""" )) - self.svnBranchListAct.triggered[()].connect(self.__svnBranchList) + self.svnBranchListAct.triggered.connect(self.__svnBranchList) self.actions.append(self.svnBranchListAct) self.svnListAct = E5Action( @@ -375,7 +375,7 @@ """<b>List repository contents</b>""" """<p>This lists the contents of the repository.</p>""" )) - self.svnListAct.triggered[()].connect(self.__svnTagList) + self.svnListAct.triggered.connect(self.__svnTagList) self.actions.append(self.svnListAct) self.svnPropSetAct = E5Action( @@ -389,7 +389,7 @@ """<b>Set Property</b>""" """<p>This sets a property for the project files.</p>""" )) - self.svnPropSetAct.triggered[()].connect(self.__svnPropSet) + self.svnPropSetAct.triggered.connect(self.__svnPropSet) self.actions.append(self.svnPropSetAct) self.svnPropListAct = E5Action( @@ -403,7 +403,7 @@ """<b>List Properties</b>""" """<p>This lists the properties of the project files.</p>""" )) - self.svnPropListAct.triggered[()].connect(self.__svnPropList) + self.svnPropListAct.triggered.connect(self.__svnPropList) self.actions.append(self.svnPropListAct) self.svnPropDelAct = E5Action( @@ -417,7 +417,7 @@ """<b>Delete Property</b>""" """<p>This deletes a property for the project files.</p>""" )) - self.svnPropDelAct.triggered[()].connect(self.__svnPropDel) + self.svnPropDelAct.triggered.connect(self.__svnPropDel) self.actions.append(self.svnPropDelAct) self.svnRelocateAct = E5Action( @@ -433,7 +433,7 @@ """<p>This relocates the working copy to a new repository""" """ URL.</p>""" )) - self.svnRelocateAct.triggered[()].connect(self.__svnRelocate) + self.svnRelocateAct.triggered.connect(self.__svnRelocate) self.actions.append(self.svnRelocateAct) self.svnRepoBrowserAct = E5Action( @@ -448,7 +448,7 @@ """<b>Repository Browser</b>""" """<p>This shows the Repository Browser dialog.</p>""" )) - self.svnRepoBrowserAct.triggered[()].connect(self.__svnRepoBrowser) + self.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser) self.actions.append(self.svnRepoBrowserAct) self.svnConfigAct = E5Action( @@ -463,7 +463,7 @@ """<p>Show the configuration dialog with the Subversion page""" """ selected.</p>""" )) - self.svnConfigAct.triggered[()].connect(self.__svnConfigure) + self.svnConfigAct.triggered.connect(self.__svnConfigure) self.actions.append(self.svnConfigAct) self.svnUpgradeAct = E5Action( @@ -477,7 +477,7 @@ """<b>Upgrade</b>""" """<p>Upgrades the working copy to the current format.</p>""" )) - self.svnUpgradeAct.triggered[()].connect(self.__svnUpgrade) + self.svnUpgradeAct.triggered.connect(self.__svnUpgrade) self.actions.append(self.svnUpgradeAct) def initMenu(self, menu):
--- a/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardCharactersDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardCharactersDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -92,7 +92,7 @@ 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) hlayout0.addItem(hspacer0) self.singlesBoxLayout.addLayout(hlayout0) - self.moreSinglesButton.clicked[()].connect(self.__addSinglesLine) + self.moreSinglesButton.clicked.connect(self.__addSinglesLine) # generate dialog part for character ranges self.rangesBoxLayout = QVBoxLayout(self.rangesBox) @@ -126,7 +126,7 @@ 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) hlayout1.addItem(hspacer1) self.rangesBoxLayout.addLayout(hlayout1) - self.moreRangesButton.clicked[()].connect(self.__addRangesLine) + self.moreRangesButton.clicked.connect(self.__addRangesLine) def __addSinglesLine(self): """
--- a/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -706,8 +706,8 @@ self.resize(size) self.setWindowTitle(self.cw.windowTitle()) - self.cw.buttonBox.accepted[()].connect(self.accept) - self.cw.buttonBox.rejected[()].connect(self.reject) + self.cw.buttonBox.accepted.connect(self.accept) + self.cw.buttonBox.rejected.connect(self.reject) def getCode(self, indLevel, indString): """ @@ -740,5 +740,5 @@ self.setStyle( Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) - self.cw.buttonBox.accepted[()].connect(self.close) - self.cw.buttonBox.rejected[()].connect(self.close) + self.cw.buttonBox.accepted.connect(self.close) + self.cw.buttonBox.rejected.connect(self.close)
--- a/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardCharactersDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardCharactersDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -127,7 +127,7 @@ 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) hlayout0.addItem(hspacer0) self.singlesBoxLayout.addLayout(hlayout0) - self.moreSinglesButton.clicked[()].connect(self.__addSinglesLine) + self.moreSinglesButton.clicked.connect(self.__addSinglesLine) # generate dialog part for character ranges self.rangesBoxLayout = QVBoxLayout(self.rangesBox) @@ -162,7 +162,7 @@ 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) hlayout1.addItem(hspacer1) self.rangesBoxLayout.addLayout(hlayout1) - self.moreRangesButton.clicked[()].connect(self.__addRangesLine) + self.moreRangesButton.clicked.connect(self.__addRangesLine) def __initCharacterSelectors(self): """
--- a/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -679,8 +679,8 @@ self.resize(size) self.setWindowTitle(self.cw.windowTitle()) - self.cw.buttonBox.accepted[()].connect(self.accept) - self.cw.buttonBox.rejected[()].connect(self.reject) + self.cw.buttonBox.accepted.connect(self.accept) + self.cw.buttonBox.rejected.connect(self.reject) def getCode(self, indLevel, indString): """ @@ -713,5 +713,5 @@ self.setStyle( Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) - self.cw.buttonBox.accepted[()].connect(self.close) - self.cw.buttonBox.rejected[()].connect(self.close) + self.cw.buttonBox.accepted.connect(self.close) + self.cw.buttonBox.rejected.connect(self.close)
--- a/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardCharactersDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -95,7 +95,7 @@ 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) hlayout0.addItem(hspacer0) self.singlesBoxLayout.addLayout(hlayout0) - self.moreSinglesButton.clicked[()].connect(self.__addSinglesLine) + self.moreSinglesButton.clicked.connect(self.__addSinglesLine) # generate dialog part for character ranges self.rangesBoxLayout = QVBoxLayout(self.rangesBox) @@ -130,7 +130,7 @@ 30, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) hlayout1.addItem(hspacer1) self.rangesBoxLayout.addLayout(hlayout1) - self.moreRangesButton.clicked[()].connect(self.__addRangesLine) + self.moreRangesButton.clicked.connect(self.__addRangesLine) def __initCharacterSelectors(self): """
--- a/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Plugins/WizardPlugins/QRegularExpressionWizard/QRegularExpressionWizardDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -794,8 +794,8 @@ self.resize(size) self.setWindowTitle(self.cw.windowTitle()) - self.cw.buttonBox.accepted[()].connect(self.accept) - self.cw.buttonBox.rejected[()].connect(self.reject) + self.cw.buttonBox.accepted.connect(self.accept) + self.cw.buttonBox.rejected.connect(self.reject) def getCode(self, indLevel, indString): """ @@ -842,8 +842,8 @@ self.setStyle( Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) - self.cw.buttonBox.accepted[()].connect(self.close) - self.cw.buttonBox.rejected[()].connect(self.close) + self.cw.buttonBox.accepted.connect(self.close) + self.cw.buttonBox.rejected.connect(self.close) def closeEvent(self, evt): """
--- a/Preferences/ConfigurationDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Preferences/ConfigurationDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -781,8 +781,8 @@ self.resize(size) self.setWindowTitle(self.cw.windowTitle()) - self.cw.accepted[()].connect(self.accept) - self.cw.rejected[()].connect(self.reject) + self.cw.accepted.connect(self.accept) + self.cw.rejected.connect(self.reject) self.cw.preferencesChanged.connect(self.__preferencesChanged) self.cw.masterPasswordChanged.connect(self.__masterPasswordChanged) @@ -852,8 +852,8 @@ self.setStyle(Preferences.getUI("Style"), Preferences.getUI("StyleSheet")) - self.cw.accepted[()].connect(self.accept) - self.cw.rejected[()].connect(self.close) + self.cw.accepted.connect(self.accept) + self.cw.rejected.connect(self.close) def showConfigurationPageByName(self, pageName): """
--- a/Preferences/ConfigurationPages/ConfigurationPageBase.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Preferences/ConfigurationPages/ConfigurationPageBase.py Sat Mar 08 20:09:41 2014 +0100 @@ -64,7 +64,7 @@ button.setIcon(QIcon(pm)) button.setProperty("colorKey", colourKey) button.setProperty("hasAlpha", hasAlpha) - button.clicked[()].connect(self.__selectColourSlot) + button.clicked.connect(self.__selectColourSlot) self.__coloursDict[colourKey] = [colour, byName] @pyqtSlot()
--- a/Preferences/ShortcutDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Preferences/ShortcutDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -41,10 +41,10 @@ self.noCheck = False self.objectType = "" - self.primaryClearButton.clicked[()].connect(self.__clear) - self.alternateClearButton.clicked[()].connect(self.__clear) - self.primaryButton.clicked[()].connect(self.__typeChanged) - self.alternateButton.clicked[()].connect(self.__typeChanged) + self.primaryClearButton.clicked.connect(self.__clear) + self.alternateClearButton.clicked.connect(self.__clear) + self.primaryButton.clicked.connect(self.__typeChanged) + self.alternateButton.clicked.connect(self.__typeChanged) self.shortcutsGroup.installEventFilter(self) self.primaryButton.installEventFilter(self)
--- a/Project/Project.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Project/Project.py Sat Mar 08 20:09:41 2014 +0100 @@ -15,8 +15,8 @@ import copy import zipfile -from PyQt4.QtCore import QFile, QFileInfo, pyqtSignal, QCryptographicHash, \ - QIODevice, QByteArray, QObject, Qt +from PyQt4.QtCore import pyqtSlot, QFile, QFileInfo, pyqtSignal, \ + QCryptographicHash, QIODevice, QByteArray, QObject, Qt from PyQt4.QtGui import QCursor, QLineEdit, QToolBar, QDialog, QInputDialog, \ QApplication, QMenu, QAction from PyQt4.Qsci import QsciScintilla @@ -851,6 +851,7 @@ self.sessActGrp.findChild( QAction, "project_delete_session").setEnabled(enable) + @pyqtSlot() def __readSession(self, quiet=False, indicator=""): """ Private method to read in the project session file (.e4s). @@ -886,6 +887,7 @@ "<p>The project session file <b>{0}</b> could not be" " read.</p>").format(fn)) + @pyqtSlot() def __writeSession(self, quiet=False, indicator=""): """ Private method to write the session data to an XML file (.e4s). @@ -1019,6 +1021,7 @@ self.dbgActGrp.findChild( QAction, "project_debugger_properties_delete").setEnabled(enable) + @pyqtSlot() def __readDebugProperties(self, quiet=False): """ Private method to read in the project debugger properties file (.e4d). @@ -1052,6 +1055,7 @@ "<p>The project debugger properties file <b>{0}</b>" " could not be read.</p>").format(fn)) + @pyqtSlot() def __writeDebugProperties(self, quiet=False): """ Private method to write the project debugger properties file (.e4d). @@ -1418,6 +1422,7 @@ if dirty: self.setDirty(True) + @pyqtSlot() def addFiles(self, filter=None, startdir=None): """ Public slot used to add files to the project. @@ -1566,6 +1571,7 @@ nt = os.path.join(target, name) self.__addRecursiveDirectory(filetype, ns, nt) + @pyqtSlot() def addDirectory(self, filter=None, startdir=None): """ Public method used to add all files of a directory to the project. @@ -2479,6 +2485,8 @@ # return empty string to signal to use the global setting return "" + @pyqtSlot() + @pyqtSlot(str) def openProject(self, fn=None, restoreSession=True, reopen=False): """ Public slot to open a project. @@ -2744,6 +2752,7 @@ self.applicationDiagram and self.applicationDiagram.close() self.loadedDiagram and self.loadedDiagram.close() + @pyqtSlot() def closeProject(self, reopen=False, noSave=False): """ Public slot to close the current project. @@ -3273,7 +3282,7 @@ """<p>This opens a dialog for entering the info for a""" """ new project.</p>""" )) - act.triggered[()].connect(self.createNewProject) + act.triggered.connect(self.createNewProject) self.actions.append(act) act = E5Action( @@ -3286,7 +3295,7 @@ """<b>Open...</b>""" """<p>This opens an existing project.</p>""" )) - act.triggered[()].connect(self.openProject) + act.triggered.connect(self.openProject) self.actions.append(act) self.closeAct = E5Action( @@ -3298,7 +3307,7 @@ """<b>Close</b>""" """<p>This closes the current project.</p>""" )) - self.closeAct.triggered[()].connect(self.closeProject) + self.closeAct.triggered.connect(self.closeProject) self.actions.append(self.closeAct) self.saveAct = E5Action( @@ -3310,7 +3319,7 @@ """<b>Save</b>""" """<p>This saves the current project.</p>""" )) - self.saveAct.triggered[()].connect(self.saveProject) + self.saveAct.triggered.connect(self.saveProject) self.actions.append(self.saveAct) self.saveasAct = E5Action( @@ -3323,7 +3332,7 @@ """<b>Save as</b>""" """<p>This saves the current project to a new file.</p>""" )) - self.saveasAct.triggered[()].connect(self.saveProjectAs) + self.saveasAct.triggered.connect(self.saveProjectAs) self.actions.append(self.saveasAct) self.actGrp2 = createActionGroup(self) @@ -3341,7 +3350,7 @@ """ to the current project. The place to add is""" """ determined by the file extension.</p>""" )) - self.addFilesAct.triggered[()].connect(self.addFiles) + self.addFilesAct.triggered.connect(self.addFiles) self.actions.append(self.addFilesAct) self.addDirectoryAct = E5Action( @@ -3356,7 +3365,7 @@ """<p>This opens a dialog for adding a directory""" """ to the current project.</p>""" )) - self.addDirectoryAct.triggered[()].connect(self.addDirectory) + self.addDirectoryAct.triggered.connect(self.addDirectory) self.actions.append(self.addDirectoryAct) self.addLanguageAct = E5Action( @@ -3371,7 +3380,7 @@ """<p>This opens a dialog for add a translation""" """ to the current project.</p>""" )) - self.addLanguageAct.triggered[()].connect(self.addLanguage) + self.addLanguageAct.triggered.connect(self.addLanguage) self.actions.append(self.addLanguageAct) act = E5Action( @@ -3385,7 +3394,7 @@ """<p>This searches for new files (sources, *.ui, *.idl) in""" """ the project directory and registered subdirectories.</p>""" )) - act.triggered[()].connect(self.__searchNewFiles) + act.triggered.connect(self.__searchNewFiles) self.actions.append(act) self.propsAct = E5Action( @@ -3398,7 +3407,7 @@ """<b>Properties...</b>""" """<p>This shows a dialog to edit the project properties.</p>""" )) - self.propsAct.triggered[()].connect(self.__showProperties) + self.propsAct.triggered.connect(self.__showProperties) self.actions.append(self.propsAct) self.userPropsAct = E5Action( @@ -3413,7 +3422,7 @@ """<p>This shows a dialog to edit the user specific project""" """ properties.</p>""" )) - self.userPropsAct.triggered[()].connect(self.__showUserProperties) + self.userPropsAct.triggered.connect(self.__showUserProperties) self.actions.append(self.userPropsAct) self.filetypesAct = E5Action( @@ -3430,7 +3439,7 @@ """ pattern. They are used when adding a file to the project""" """ and when performing a search for new files.</p>""" )) - self.filetypesAct.triggered[()].connect( + self.filetypesAct.triggered.connect( self.__showFiletypeAssociations) self.actions.append(self.filetypesAct) @@ -3447,7 +3456,7 @@ """ associations. Lexers are used to highlight the editor""" """ text.</p>""" )) - self.lexersAct.triggered[()].connect(self.__showLexerAssociations) + self.lexersAct.triggered.connect(self.__showLexerAssociations) self.actions.append(self.lexersAct) self.dbgActGrp = createActionGroup(self) @@ -3462,7 +3471,7 @@ """<p>This shows a dialog to edit project specific debugger""" """ settings.</p>""" )) - act.triggered[()].connect(self.__showDebugProperties) + act.triggered.connect(self.__showDebugProperties) self.actions.append(act) act = E5Action( @@ -3474,7 +3483,7 @@ """<b>Load Debugger Properties</b>""" """<p>This loads the project specific debugger settings.</p>""" )) - act.triggered[()].connect(self.__readDebugProperties) + act.triggered.connect(self.__readDebugProperties) self.actions.append(act) act = E5Action( @@ -3486,7 +3495,7 @@ """<b>Save Debugger Properties</b>""" """<p>This saves the project specific debugger settings.</p>""" )) - act.triggered[()].connect(self.__writeDebugProperties) + act.triggered.connect(self.__writeDebugProperties) self.actions.append(act) act = E5Action( @@ -3499,7 +3508,7 @@ """<p>This deletes the file containing the project specific""" """ debugger settings.</p>""" )) - act.triggered[()].connect(self.__deleteDebugProperties) + act.triggered.connect(self.__deleteDebugProperties) self.actions.append(act) act = E5Action( @@ -3511,7 +3520,7 @@ """<b>Reset Debugger Properties</b>""" """<p>This resets the project specific debugger settings.</p>""" )) - act.triggered[()].connect(self.__initDebugProperties) + act.triggered.connect(self.__initDebugProperties) self.actions.append(act) self.sessActGrp = createActionGroup(self) @@ -3531,7 +3540,7 @@ """- the working directory<br>""" """- the exception reporting flag</p>""" )) - act.triggered[()].connect(self.__readSession) + act.triggered.connect(self.__readSession) self.actions.append(act) act = E5Action( @@ -3549,7 +3558,7 @@ """- the working directory<br>""" """- the exception reporting flag</p>""" )) - act.triggered[()].connect(self.__writeSession) + act.triggered.connect(self.__writeSession) self.actions.append(act) act = E5Action( @@ -3561,7 +3570,7 @@ """<b>Delete session</b>""" """<p>This deletes the projects session file</p>""" )) - act.triggered[()].connect(self.__deleteSession) + act.triggered.connect(self.__deleteSession) self.actions.append(act) self.chkGrp = createActionGroup(self) @@ -3577,7 +3586,7 @@ """<p>This shows some code metrics for all Python files in""" """ the project.</p>""" )) - self.codeMetricsAct.triggered[()].connect(self.__showCodeMetrics) + self.codeMetricsAct.triggered.connect(self.__showCodeMetrics) self.actions.append(self.codeMetricsAct) self.codeCoverageAct = E5Action( @@ -3591,7 +3600,7 @@ """<p>This shows the code coverage information for all Python""" """ files in the project.</p>""" )) - self.codeCoverageAct.triggered[()].connect(self.__showCodeCoverage) + self.codeCoverageAct.triggered.connect(self.__showCodeCoverage) self.actions.append(self.codeCoverageAct) self.codeProfileAct = E5Action( @@ -3604,7 +3613,7 @@ """<b>Profile Data...</b>""" """<p>This shows the profiling data for the project.</p>""" )) - self.codeProfileAct.triggered[()].connect(self.__showProfileData) + self.codeProfileAct.triggered.connect(self.__showProfileData) self.actions.append(self.codeProfileAct) self.graphicsGrp = createActionGroup(self) @@ -3619,7 +3628,7 @@ """<b>Application Diagram...</b>""" """<p>This shows a diagram of the project.</p>""" )) - self.applicationDiagramAct.triggered[()].connect( + self.applicationDiagramAct.triggered.connect( self.handleApplicationDiagram) self.actions.append(self.applicationDiagramAct) @@ -3633,7 +3642,7 @@ """<b>Load Diagram...</b>""" """<p>This loads a diagram from file.</p>""" )) - self.loadDiagramAct.triggered[()].connect(self.__loadDiagram) + self.loadDiagramAct.triggered.connect(self.__loadDiagram) self.actions.append(self.loadDiagramAct) self.pluginGrp = createActionGroup(self) @@ -3651,7 +3660,7 @@ """ eric5 plugin archive. The list is created from the project""" """ file.</p>""" )) - self.pluginPkgListAct.triggered[()].connect(self.__pluginCreatePkgList) + self.pluginPkgListAct.triggered.connect(self.__pluginCreatePkgList) self.actions.append(self.pluginPkgListAct) self.pluginArchiveAct = E5Action( @@ -3667,7 +3676,7 @@ """ of files given in the PKGLIST file. The archive name is""" """ built from the main script name.</p>""" )) - self.pluginArchiveAct.triggered[()].connect(self.__pluginCreateArchive) + self.pluginArchiveAct.triggered.connect(self.__pluginCreateArchive) self.actions.append(self.pluginArchiveAct) self.pluginSArchiveAct = E5Action( @@ -3684,7 +3693,7 @@ """ built from the main script name. The version entry of the""" """ main script is modified to reflect a snapshot release.</p>""" )) - self.pluginSArchiveAct.triggered[()].connect( + self.pluginSArchiveAct.triggered.connect( self.__pluginCreateSnapshotArchive) self.actions.append(self.pluginSArchiveAct) @@ -4568,6 +4577,7 @@ if not "PKGLIST" in self.pdata["OTHERS"]: self.appendFile("PKGLIST") + @pyqtSlot() def __pluginCreateArchive(self, snapshot=False): """ Private slot to create an eric5 plugin archive.
--- a/PyUnit/UnittestDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/PyUnit/UnittestDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -632,7 +632,7 @@ # one more button if called from eric if self.dbs: - ui.showButton.clicked[()].connect(self.__showSource) + ui.showButton.clicked.connect(self.__showSource) else: ui.showButton.hide()
--- a/QScintilla/MiniEditor.py Fri Mar 07 19:20:36 2014 +0100 +++ b/QScintilla/MiniEditor.py Sat Mar 08 20:09:41 2014 +0100 @@ -373,7 +373,7 @@ """<b>New</b>""" """<p>An empty editor window will be created.</p>""" )) - self.newAct.triggered[()].connect(self.__newFile) + self.newAct.triggered.connect(self.__newFile) self.fileActions.append(self.newAct) self.openAct = E5Action( @@ -387,7 +387,7 @@ """<b>Open a file</b>""" """<p>You will be asked for the name of a file to be opened.</p>""" )) - self.openAct.triggered[()].connect(self.__open) + self.openAct.triggered.connect(self.__open) self.fileActions.append(self.openAct) self.saveAct = E5Action( @@ -401,7 +401,7 @@ """<b>Save File</b>""" """<p>Save the contents of current editor window.</p>""" )) - self.saveAct.triggered[()].connect(self.__save) + self.saveAct.triggered.connect(self.__save) self.fileActions.append(self.saveAct) self.saveAsAct = E5Action( @@ -417,7 +417,7 @@ """<p>Save the contents of current editor window to a new file.""" """ The file can be entered in a file selection dialog.</p>""" )) - self.saveAsAct.triggered[()].connect(self.__saveAs) + self.saveAsAct.triggered.connect(self.__saveAs) self.fileActions.append(self.saveAsAct) self.closeAct = E5Action( @@ -431,7 +431,7 @@ """<b>Close Window</b>""" """<p>Close the current window.</p>""" )) - self.closeAct.triggered[()].connect(self.close) + self.closeAct.triggered.connect(self.close) self.fileActions.append(self.closeAct) self.printAct = E5Action( @@ -445,7 +445,7 @@ """<b>Print File</b>""" """<p>Print the contents of the current file.</p>""" )) - self.printAct.triggered[()].connect(self.__printFile) + self.printAct.triggered.connect(self.__printFile) self.fileActions.append(self.printAct) self.printPreviewAct = E5Action( @@ -459,7 +459,7 @@ """<b>Print Preview</b>""" """<p>Print preview of the current file.</p>""" )) - self.printPreviewAct.triggered[()].connect(self.__printPreviewFile) + self.printPreviewAct.triggered.connect(self.__printPreviewFile) self.fileActions.append(self.printPreviewAct) def __createEditActions(self): @@ -478,7 +478,7 @@ """<b>Undo</b>""" """<p>Undo the last change done in the current editor.</p>""" )) - self.undoAct.triggered[()].connect(self.__undo) + self.undoAct.triggered.connect(self.__undo) self.editActions.append(self.undoAct) self.redoAct = E5Action( @@ -492,7 +492,7 @@ """<b>Redo</b>""" """<p>Redo the last change done in the current editor.</p>""" )) - self.redoAct.triggered[()].connect(self.__redo) + self.redoAct.triggered.connect(self.__redo) self.editActions.append(self.redoAct) self.cutAct = E5Action( @@ -508,7 +508,7 @@ """<p>Cut the selected text of the current editor to the""" """ clipboard.</p>""" )) - self.cutAct.triggered[()].connect(self.__textEdit.cut) + self.cutAct.triggered.connect(self.__textEdit.cut) self.editActions.append(self.cutAct) self.copyAct = E5Action( @@ -524,7 +524,7 @@ """<p>Copy the selected text of the current editor to the""" """ clipboard.</p>""" )) - self.copyAct.triggered[()].connect(self.__textEdit.copy) + self.copyAct.triggered.connect(self.__textEdit.copy) self.editActions.append(self.copyAct) self.pasteAct = E5Action( @@ -541,7 +541,7 @@ """<p>Paste the last cut/copied text from the clipboard to""" """ the current editor.</p>""" )) - self.pasteAct.triggered[()].connect(self.__textEdit.paste) + self.pasteAct.triggered.connect(self.__textEdit.paste) self.editActions.append(self.pasteAct) self.deleteAct = E5Action( @@ -556,7 +556,7 @@ """<b>Clear</b>""" """<p>Delete all text of the current editor.</p>""" )) - self.deleteAct.triggered[()].connect(self.__textEdit.clear) + self.deleteAct.triggered.connect(self.__textEdit.clear) self.editActions.append(self.deleteAct) self.cutAct.setEnabled(False) @@ -582,7 +582,7 @@ if isMacPlatform(): act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+B'))) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -594,7 +594,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+F'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -606,7 +606,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+P'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -618,7 +618,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+N'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -630,7 +630,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -642,7 +642,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -657,7 +657,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -672,7 +672,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -688,7 +688,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -707,7 +707,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -726,7 +726,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'End'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -735,7 +735,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Down')), 0, self.editorActGrp, 'vm_edit_scroll_down_line') self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -744,7 +744,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, self.editorActGrp, 'vm_edit_scroll_up_line') self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -753,7 +753,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, self.editorActGrp, 'vm_edit_move_up_para') self.esm.setMapping(act, QsciScintilla.SCI_PARAUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -762,7 +762,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, self.editorActGrp, 'vm_edit_move_down_para') self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -771,7 +771,7 @@ QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, self.editorActGrp, 'vm_edit_move_up_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -783,7 +783,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+V'))) self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -798,7 +798,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -813,7 +813,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+End'))) self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -822,7 +822,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, self.editorActGrp, 'vm_edit_indent_one_level') self.esm.setMapping(act, QsciScintilla.SCI_TAB) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -831,7 +831,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Shift+Tab')), 0, self.editorActGrp, 'vm_edit_unindent_one_level') self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -846,7 +846,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+B'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -862,7 +862,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+F'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -878,7 +878,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+P'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -894,7 +894,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+N'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -910,7 +910,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -926,7 +926,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -943,7 +943,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -960,7 +960,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -978,7 +978,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Shift+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -995,7 +995,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Shift+End'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEENDEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1009,7 +1009,7 @@ 'Alt+Shift+Up')), 0, self.editorActGrp, 'vm_edit_extend_selection_up_para') self.esm.setMapping(act, QsciScintilla.SCI_PARAUPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1022,7 +1022,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_down_para') self.esm.setMapping(act, QsciScintilla.SCI_PARADOWNEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1035,7 +1035,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Shift+PgUp')), 0, self.editorActGrp, 'vm_edit_extend_selection_up_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1052,7 +1052,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+V'))) self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1069,7 +1069,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1086,7 +1086,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+End'))) self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1103,7 +1103,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Shift+Backspace'))) self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1116,7 +1116,7 @@ 0, 0, self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start') self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1128,7 +1128,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+D'))) self.esm.setMapping(act, QsciScintilla.SCI_CLEAR) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1138,7 +1138,7 @@ 'Ctrl+Backspace')), 0, self.editorActGrp, 'vm_edit_delete_word_left') self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1147,7 +1147,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, self.editorActGrp, 'vm_edit_delete_word_right') self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1157,7 +1157,7 @@ 'Ctrl+Shift+Backspace')), 0, self.editorActGrp, 'vm_edit_delete_line_left') self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1172,7 +1172,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Del'))) self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1182,7 +1182,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Enter')), self.editorActGrp, 'vm_edit_insert_line') self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1192,7 +1192,7 @@ 'Ctrl+Shift+L')), 0, self.editorActGrp, 'vm_edit_delete_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1201,7 +1201,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, self.editorActGrp, 'vm_edit_duplicate_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1214,7 +1214,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0, self.editorActGrp, 'vm_edit_swap_current_previous_line') self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1223,7 +1223,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+L')), 0, self.editorActGrp, 'vm_edit_cut_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINECUT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1233,7 +1233,7 @@ 'Ctrl+Shift+T')), 0, self.editorActGrp, 'vm_edit_copy_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1242,7 +1242,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, self.editorActGrp, 'vm_edit_toggle_insert_overtype') self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1255,7 +1255,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Shift+U')), 0, self.editorActGrp, 'vm_edit_convert_selection_lower') self.esm.setMapping(act, QsciScintilla.SCI_LOWERCASE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1269,7 +1269,7 @@ 'Ctrl+Shift+U')), 0, self.editorActGrp, 'vm_edit_convert_selection_upper') self.esm.setMapping(act, QsciScintilla.SCI_UPPERCASE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1286,7 +1286,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+End'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1302,7 +1302,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1311,7 +1311,7 @@ 0, 0, self.editorActGrp, 'vm_edit_formfeed') self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1320,7 +1320,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, self.editorActGrp, 'vm_edit_escape') self.esm.setMapping(act, QsciScintilla.SCI_CANCEL) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1337,7 +1337,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+N'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1353,7 +1353,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+P'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEUPRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1370,7 +1370,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+B'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1387,7 +1387,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+F'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1406,7 +1406,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1425,7 +1425,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+End'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEENDRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1439,7 +1439,7 @@ 'Alt+Shift+PgUp')), 0, self.editorActGrp, 'vm_edit_extend_rect_selection_up_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1456,7 +1456,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+V'))) self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1470,7 +1470,7 @@ 'Ctrl+Shift+D')), 0, self.editorActGrp, 'vm_edit_duplicate_current_selection') self.esm.setMapping(act, QsciScintilla.SCI_SELECTIONDUPLICATE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_SCROLLTOSTART"): @@ -1485,7 +1485,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Home'))) self.esm.setMapping(act, QsciScintilla.SCI_SCROLLTOSTART) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_SCROLLTOEND"): @@ -1500,7 +1500,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'End'))) self.esm.setMapping(act, QsciScintilla.SCI_SCROLLTOEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_VERTICALCENTRECARET"): @@ -1515,7 +1515,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+L'))) self.esm.setMapping(act, QsciScintilla.SCI_VERTICALCENTRECARET) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_WORDRIGHTEND"): @@ -1530,7 +1530,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_WORDRIGHTENDEXTEND"): @@ -1545,7 +1545,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTENDEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_WORDLEFTEND"): @@ -1557,7 +1557,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_end_previous_word') self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_WORDLEFTENDEXTEND"): @@ -1569,7 +1569,7 @@ 0, 0, self.editorActGrp, 'vm_edit_select_end_previous_word') self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTENDEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOME"): @@ -1584,7 +1584,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+A'))) self.esm.setMapping(act, QsciScintilla.SCI_HOME) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMEEXTEND"): @@ -1602,7 +1602,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+A'))) self.esm.setMapping(act, QsciScintilla.SCI_HOME) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMERECTEXTEND"): @@ -1619,7 +1619,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+A'))) self.esm.setMapping(act, QsciScintilla.SCI_HOMERECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMEDISPLAYEXTEND"): @@ -1637,7 +1637,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAYEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMEWRAP"): @@ -1651,7 +1651,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_start_display_document_line') self.esm.setMapping(act, QsciScintilla.SCI_HOMEWRAP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMEWRAPEXTEND"): @@ -1666,7 +1666,7 @@ self.editorActGrp, 'vm_edit_extend_selection_start_display_document_line') self.esm.setMapping(act, QsciScintilla.SCI_HOMEWRAPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_VCHOMEWRAP"): @@ -1683,7 +1683,7 @@ self.editorActGrp, 'vm_edit_move_first_visible_char_document_line') self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEWRAP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_VCHOMEWRAPEXTEND"): @@ -1700,7 +1700,7 @@ self.editorActGrp, 'vm_edit_extend_selection_first_visible_char_document_line') self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEWRAPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_LINEENDWRAP"): @@ -1714,7 +1714,7 @@ 0, 0, self.editorActGrp, 'vm_edit_end_start_display_document_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEENDWRAP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_LINEENDWRAPEXTEND"): @@ -1729,7 +1729,7 @@ self.editorActGrp, 'vm_edit_extend_selection_end_display_document_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEENDWRAPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_STUTTEREDPAGEUP"): @@ -1741,7 +1741,7 @@ 0, 0, self.editorActGrp, 'vm_edit_stuttered_move_up_page') self.esm.setMapping(act, QsciScintilla.SCI_STUTTEREDPAGEUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_STUTTEREDPAGEUPEXTEND"): @@ -1756,7 +1756,7 @@ self.editorActGrp, 'vm_edit_stuttered_extend_selection_up_page') self.esm.setMapping(act, QsciScintilla.SCI_STUTTEREDPAGEUPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_STUTTEREDPAGEDOWN"): @@ -1768,7 +1768,7 @@ 0, 0, self.editorActGrp, 'vm_edit_stuttered_move_down_page') self.esm.setMapping(act, QsciScintilla.SCI_STUTTEREDPAGEDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_STUTTEREDPAGEDOWNEXTEND"): @@ -1783,7 +1783,7 @@ self.editorActGrp, 'vm_edit_stuttered_extend_selection_down_page') self.esm.setMapping(act, QsciScintilla.SCI_STUTTEREDPAGEDOWNEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_DELWORDRIGHTEND"): @@ -1800,7 +1800,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Del'))) self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_MOVESELECTEDLINESUP"): @@ -1814,7 +1814,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_selection_up_one_line') self.esm.setMapping(act, QsciScintilla.SCI_MOVESELECTEDLINESUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_MOVESELECTEDLINESDOWN"): @@ -1828,7 +1828,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_selection_down_one_line') self.esm.setMapping(act, QsciScintilla.SCI_MOVESELECTEDLINESDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1842,7 +1842,7 @@ 'Ctrl+Shift+D')), 0, self.editorActGrp, 'vm_edit_duplicate_current_selection') self.esm.setMapping(act, QsciScintilla.SCI_SELECTIONDUPLICATE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) self.__textEdit.addActions(self.editorActGrp.actions()) @@ -1869,7 +1869,7 @@ """ dialog is shown to enter the searchtext and options""" """ for the search.</p>""" )) - self.searchAct.triggered[()].connect(self.__search) + self.searchAct.triggered.connect(self.__search) self.searchActions.append(self.searchAct) self.searchNextAct = E5Action( @@ -1889,7 +1889,7 @@ """ editor. The previously entered searchtext and options are""" """ reused.</p>""" )) - self.searchNextAct.triggered[()].connect(self.searchDlg.findNext) + self.searchNextAct.triggered.connect(self.searchDlg.findNext) self.searchActions.append(self.searchNextAct) self.searchPrevAct = E5Action( @@ -1909,7 +1909,7 @@ """ current editor. The previously entered searchtext and""" """ options are reused.</p>""" )) - self.searchPrevAct.triggered[()].connect(self.searchDlg.findPrev) + self.searchPrevAct.triggered.connect(self.searchDlg.findPrev) self.searchActions.append(self.searchPrevAct) self.searchClearMarkersAct = E5Action( @@ -1928,7 +1928,7 @@ """<b>Clear search markers</b>""" """<p>Clear all displayed search markers.</p>""" )) - self.searchClearMarkersAct.triggered[()].connect( + self.searchClearMarkersAct.triggered.connect( self.__searchClearMarkers) self.searchActions.append(self.searchClearMarkersAct) @@ -1948,7 +1948,7 @@ """ it. A dialog is shown to enter the searchtext, the""" """ replacement text and options for the search and replace.</p>""" )) - self.replaceAct.triggered[()].connect(self.__replace) + self.replaceAct.triggered.connect(self.__replace) self.searchActions.append(self.replaceAct) def __createHelpActions(self): @@ -1964,7 +1964,7 @@ self.aboutAct.setWhatsThis(self.tr( """<b>About</b>""" """<p>Display some information about this software.</p>""")) - self.aboutAct.triggered[()].connect(self.__about) + self.aboutAct.triggered.connect(self.__about) self.helpActions.append(self.aboutAct) self.aboutQtAct = E5Action( @@ -1977,7 +1977,7 @@ """<b>About Qt</b>""" """<p>Display some information about the Qt toolkit.</p>""" )) - self.aboutQtAct.triggered[()].connect(self.__aboutQt) + self.aboutQtAct.triggered.connect(self.__aboutQt) self.helpActions.append(self.aboutQtAct) self.whatsThisAct = E5Action( @@ -1996,7 +1996,7 @@ """ accessed using the context help button in the titlebar.""" """</p>""" )) - self.whatsThisAct.triggered[()].connect(self.__whatsThis) + self.whatsThisAct.triggered.connect(self.__whatsThis) self.helpActions.append(self.whatsThisAct) def __createMenus(self):
--- a/QScintilla/SearchReplaceWidget.py Fri Mar 07 19:20:36 2014 +0100 +++ b/QScintilla/SearchReplaceWidget.py Sat Mar 08 20:09:41 2014 +0100 @@ -143,7 +143,7 @@ self.tr('Find Next'), self.tr('Find Next'), 0, 0, self, 'search_widget_find_next') - self.findNextAct.triggered[()].connect(self.on_findNextButton_clicked) + self.findNextAct.triggered.connect(self.on_findNextButton_clicked) self.findNextAct.setEnabled(False) self.ui.findtextCombo.addAction(self.findNextAct) @@ -151,7 +151,7 @@ self.tr('Find Prev'), self.tr('Find Prev'), 0, 0, self, 'search_widget_find_prev') - self.findPrevAct.triggered[()].connect(self.on_findPrevButton_clicked) + self.findPrevAct.triggered.connect(self.on_findPrevButton_clicked) self.findPrevAct.setEnabled(False) self.ui.findtextCombo.addAction(self.findPrevAct) @@ -921,8 +921,8 @@ self.__searchReplaceWidget.searchListChanged.connect( self.searchListChanged) - self.__leftButton.clicked[()].connect(self.__slideLeft) - self.__rightButton.clicked[()].connect(self.__slideRight) + self.__leftButton.clicked.connect(self.__slideLeft) + self.__rightButton.clicked.connect(self.__slideRight) def findNext(self): """
--- a/QScintilla/SpellingDictionaryEditDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/QScintilla/SpellingDictionaryEditDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -44,8 +44,8 @@ self.searchEdit.textChanged.connect( self.__proxyModel.setFilterFixedString) - self.removeButton.clicked[()].connect(self.wordList.removeSelected) - self.removeAllButton.clicked[()].connect(self.wordList.removeAll) + self.removeButton.clicked.connect(self.wordList.removeSelected) + self.removeAllButton.clicked.connect(self.wordList.removeAll) @pyqtSlot() def on_addButton_clicked(self):
--- a/SqlBrowser/SqlBrowser.py Fri Mar 07 19:20:36 2014 +0100 +++ b/SqlBrowser/SqlBrowser.py Sat Mar 08 20:09:41 2014 +0100 @@ -106,7 +106,7 @@ """<p>This opens a dialog to add a new database""" """ connection.</p>""" )) - self.addConnectionAct.triggered[()].connect( + self.addConnectionAct.triggered.connect( self.__browser.addConnectionByDialog) self.__actions.append(self.addConnectionAct) @@ -121,7 +121,7 @@ """<b>Quit</b>""" """<p>Quit the SQL browser.</p>""" )) - self.exitAct.triggered[()].connect(qApp.closeAllWindows) + self.exitAct.triggered.connect(qApp.closeAllWindows) self.aboutAct = E5Action( self.tr('About'), @@ -133,7 +133,7 @@ """<b>About</b>""" """<p>Display some information about this software.</p>""" )) - self.aboutAct.triggered[()].connect(self.__about) + self.aboutAct.triggered.connect(self.__about) self.__actions.append(self.aboutAct) self.aboutQtAct = E5Action( @@ -146,7 +146,7 @@ """<b>About Qt</b>""" """<p>Display some information about the Qt toolkit.</p>""" )) - self.aboutQtAct.triggered[()].connect(self.__aboutQt) + self.aboutQtAct.triggered.connect(self.__aboutQt) self.__actions.append(self.aboutQtAct) def __initMenus(self):
--- a/SqlBrowser/SqlConnectionWidget.py Fri Mar 07 19:20:36 2014 +0100 +++ b/SqlBrowser/SqlConnectionWidget.py Sat Mar 08 20:09:41 2014 +0100 @@ -49,8 +49,8 @@ self.__schemaAction = QAction( self.tr("Show Schema"), self.__connectionTree) - refreshAction.triggered[()].connect(self.refresh) - self.__schemaAction.triggered[()].connect(self.showSchema) + refreshAction.triggered.connect(self.refresh) + self.__schemaAction.triggered.connect(self.showSchema) self.__connectionTree.addAction(refreshAction) self.__connectionTree.addAction(self.__schemaAction)
--- a/Templates/TemplateMultipleVariablesDialog.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Templates/TemplateMultipleVariablesDialog.py Sat Mar 08 20:09:41 2014 +0100 @@ -108,8 +108,8 @@ # polish up the dialog self.resize(QSize(400, 480).expandedTo(self.minimumSizeHint())) - self.okButton.clicked[()].connect(self.accept) - self.cancelButton.clicked[()].connect(self.reject) + self.okButton.clicked.connect(self.accept) + self.cancelButton.clicked.connect(self.reject) def getVariables(self): """
--- a/Toolbox/SingleApplication.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Toolbox/SingleApplication.py Sat Mar 08 20:09:41 2014 +0100 @@ -28,7 +28,7 @@ self.removeServer(name) self.listen(name) - self.newConnection[()].connect(self.__newConnection) + self.newConnection.connect(self.__newConnection) self.qsock = None @@ -45,8 +45,8 @@ self.qsock = sock - self.qsock.readyRead[()].connect(self.__parseLine) - self.qsock.disconnected[()].connect(self.__disconnected) + self.qsock.readyRead.connect(self.__parseLine) + self.qsock.disconnected.connect(self.__disconnected) def __parseLine(self): """ @@ -78,7 +78,7 @@ Public method used to shut down the server. """ if self.qsock is not None: - self.qsock.readyRead[()].disconnect(self.__parseLine) + self.qsock.readyRead.disconnect(self.__parseLine) self.qsock.disconnected.disconnect(self.__disconnected) self.qsock = None
--- a/Tools/TRPreviewer.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Tools/TRPreviewer.py Sat Mar 08 20:09:41 2014 +0100 @@ -162,7 +162,7 @@ """<b>Open UI Files</b>""" """<p>This opens some UI files for display.</p>""" )) - self.openUIAct.triggered[()].connect(self.__openWidget) + self.openUIAct.triggered.connect(self.__openWidget) self.openQMAct = QAction( UI.PixmapCache.getIcon("openQM.png"), @@ -173,7 +173,7 @@ """<b>Open Translation Files</b>""" """<p>This opens some translation files for display.</p>""" )) - self.openQMAct.triggered[()].connect(self.__openTranslation) + self.openQMAct.triggered.connect(self.__openTranslation) self.reloadAct = QAction( UI.PixmapCache.getIcon("reload.png"), @@ -185,7 +185,7 @@ """<p>This reloads the translations for the loaded""" """ languages.</p>""" )) - self.reloadAct.triggered[()].connect(self.translations.reload) + self.reloadAct.triggered.connect(self.translations.reload) self.exitAct = QAction( UI.PixmapCache.getIcon("exit.png"), self.tr('&Quit'), self) @@ -196,7 +196,7 @@ """<b>Quit</b>""" """<p>Quit the application.</p>""" )) - self.exitAct.triggered[()].connect(qApp.closeAllWindows) + self.exitAct.triggered.connect(qApp.closeAllWindows) self.whatsThisAct = QAction( UI.PixmapCache.getIcon("whatsThis.png"), @@ -211,7 +211,7 @@ """ how to use them. In dialogs, this feature can be accessed""" """ using the context help button in the titlebar.</p>""" )) - self.whatsThisAct.triggered[()].connect(self.__whatsThis) + self.whatsThisAct.triggered.connect(self.__whatsThis) self.aboutAct = QAction(self.tr('&About'), self) self.aboutAct.setStatusTip(self.tr( @@ -220,7 +220,7 @@ """<b>About</b>""" """<p>Display some information about this software.</p>""" )) - self.aboutAct.triggered[()].connect(self.__about) + self.aboutAct.triggered.connect(self.__about) self.aboutQtAct = QAction(self.tr('About &Qt'), self) self.aboutQtAct.setStatusTip( @@ -229,7 +229,7 @@ """<b>About Qt</b>""" """<p>Display some information about the Qt toolkit.</p>""" )) - self.aboutQtAct.triggered[()].connect(self.__aboutQt) + self.aboutQtAct.triggered.connect(self.__aboutQt) self.tileAct = QAction(self.tr('&Tile'), self) self.tileAct.setStatusTip(self.tr('Tile the windows')) @@ -238,7 +238,7 @@ """<p>Rearrange and resize the windows so that they are""" """ tiled.</p>""" )) - self.tileAct.triggered[()].connect(self.preview.tileSubWindows) + self.tileAct.triggered.connect(self.preview.tileSubWindows) self.cascadeAct = QAction(self.tr('&Cascade'), self) self.cascadeAct.setStatusTip(self.tr('Cascade the windows')) @@ -247,7 +247,7 @@ """<p>Rearrange and resize the windows so that they are""" """ cascaded.</p>""" )) - self.cascadeAct.triggered[()].connect(self.preview.cascadeSubWindows) + self.cascadeAct.triggered.connect(self.preview.cascadeSubWindows) self.closeAct = QAction( UI.PixmapCache.getIcon("close.png"), self.tr('&Close'), self) @@ -258,7 +258,7 @@ """<b>Close Window</b>""" """<p>Close the current window.</p>""" )) - self.closeAct.triggered[()].connect(self.preview.closeWidget) + self.closeAct.triggered.connect(self.preview.closeWidget) self.closeAllAct = QAction(self.tr('Clos&e All'), self) self.closeAllAct.setStatusTip(self.tr('Close all windows')) @@ -266,7 +266,7 @@ """<b>Close All Windows</b>""" """<p>Close all windows.</p>""" )) - self.closeAllAct.triggered[()].connect(self.preview.closeAllWidgets) + self.closeAllAct.triggered.connect(self.preview.closeAllWidgets) def __initMenus(self): """
--- a/Tools/UIPreviewer.py Fri Mar 07 19:20:36 2014 +0100 +++ b/Tools/UIPreviewer.py Sat Mar 08 20:09:41 2014 +0100 @@ -133,7 +133,7 @@ """<b>Open File</b>""" """<p>This opens a new UI file for display.</p>""" )) - self.openAct.triggered[()].connect(self.__openFile) + self.openAct.triggered.connect(self.__openFile) self.printAct = QAction( UI.PixmapCache.getIcon("print.png"), @@ -145,7 +145,7 @@ """<b>Print</b>""" """<p>Print a screen capture.</p>""" )) - self.printAct.triggered[()].connect(self.__printImage) + self.printAct.triggered.connect(self.__printImage) self.printPreviewAct = QAction( UI.PixmapCache.getIcon("printPreview.png"), @@ -156,7 +156,7 @@ """<b>Print Preview</b>""" """<p>Print preview a screen capture.</p>""" )) - self.printPreviewAct.triggered[()].connect(self.__printPreviewImage) + self.printPreviewAct.triggered.connect(self.__printPreviewImage) self.imageAct = QAction( UI.PixmapCache.getIcon("screenCapture.png"), @@ -169,7 +169,7 @@ """<b>Screen Capture</b>""" """<p>Save a screen capture to an image file.</p>""" )) - self.imageAct.triggered[()].connect(self.__saveImage) + self.imageAct.triggered.connect(self.__saveImage) self.exitAct = QAction( UI.PixmapCache.getIcon("exit.png"), self.tr('&Quit'), self) @@ -180,7 +180,7 @@ """<b>Quit</b>""" """<p>Quit the application.</p>""" )) - self.exitAct.triggered[()].connect(qApp.closeAllWindows) + self.exitAct.triggered.connect(qApp.closeAllWindows) self.copyAct = QAction( UI.PixmapCache.getIcon("editCopy.png"), self.tr('&Copy'), self) @@ -192,7 +192,7 @@ """<b>Copy</b>""" """<p>Copy screen capture to clipboard.</p>""" )) - self.copyAct.triggered[()].connect(self.__copyImageToClipboard) + self.copyAct.triggered.connect(self.__copyImageToClipboard) self.whatsThisAct = QAction( UI.PixmapCache.getIcon("whatsThis.png"), @@ -207,7 +207,7 @@ """ how to use them. In dialogs, this feature can be accessed""" """ using the context help button in the titlebar.</p>""" )) - self.whatsThisAct.triggered[()].connect(self.__whatsThis) + self.whatsThisAct.triggered.connect(self.__whatsThis) self.aboutAct = QAction(self.tr('&About'), self) self.aboutAct.setStatusTip(self.tr( @@ -216,7 +216,7 @@ """<b>About</b>""" """<p>Display some information about this software.</p>""" )) - self.aboutAct.triggered[()].connect(self.__about) + self.aboutAct.triggered.connect(self.__about) self.aboutQtAct = QAction(self.tr('About &Qt'), self) self.aboutQtAct.setStatusTip( @@ -225,7 +225,7 @@ """<b>About Qt</b>""" """<p>Display some information about the Qt toolkit.</p>""" )) - self.aboutQtAct.triggered[()].connect(self.__aboutQt) + self.aboutQtAct.triggered.connect(self.__aboutQt) def __initMenus(self): """
--- a/UI/UserInterface.py Fri Mar 07 19:20:36 2014 +0100 +++ b/UI/UserInterface.py Sat Mar 08 20:09:41 2014 +0100 @@ -11,7 +11,7 @@ import sys import logging -from PyQt4.QtCore import QTimer, QFile, QFileInfo, pyqtSignal, \ +from PyQt4.QtCore import pyqtSlot, QTimer, QFile, QFileInfo, pyqtSignal, \ PYQT_VERSION_STR, QDate, QIODevice, qVersion, QProcess, QSize, QUrl, \ QObject, Qt from PyQt4.QtGui import QSizePolicy, QWidget, QKeySequence, QDesktopServices, \ @@ -1190,7 +1190,7 @@ """ first. Any Python program being debugged will be stopped""" """ and the preferences will be written to disc.</p>""" )) - self.exitAct.triggered[()].connect(self.__quit) + self.exitAct.triggered.connect(self.__quit) self.exitAct.setMenuRole(QAction.QuitRole) self.actions.append(self.exitAct) @@ -1206,7 +1206,7 @@ """<b>New Window</b>""" """<p>This opens a new instance of the eric5 IDE.</p>""" )) - self.newWindowAct.triggered[()].connect(self.__newWindow) + self.newWindowAct.triggered.connect(self.__newWindow) self.actions.append(self.newWindowAct) self.newWindowAct.setEnabled( not Preferences.getUI("SingleApplicationMode")) @@ -1227,7 +1227,7 @@ """ if this profile is active, may be configured with the""" """ "View Profile Configuration" dialog.</p>""" )) - self.setEditProfileAct.triggered[()].connect(self.__setEditProfile) + self.setEditProfileAct.triggered.connect(self.__setEditProfile) self.actions.append(self.setEditProfileAct) self.setDebugProfileAct = E5Action( @@ -1244,7 +1244,7 @@ """ if this profile is active, may be configured with the""" """ "View Profile Configuration" dialog.</p>""" )) - self.setDebugProfileAct.triggered[()].connect(self.setDebugProfile) + self.setDebugProfileAct.triggered.connect(self.setDebugProfile) self.actions.append(self.setDebugProfileAct) self.pbActivateAct = E5Action( @@ -1260,7 +1260,7 @@ """<p>This switches the input focus to the Project-Viewer""" """ window.</p>""" )) - self.pbActivateAct.triggered[()].connect(self.__activateProjectBrowser) + self.pbActivateAct.triggered.connect(self.__activateProjectBrowser) self.actions.append(self.pbActivateAct) self.addAction(self.pbActivateAct) @@ -1277,7 +1277,7 @@ """<p>This switches the input focus to the Multiproject-Viewer""" """ window.</p>""" )) - self.mpbActivateAct.triggered[()].connect( + self.mpbActivateAct.triggered.connect( self.__activateMultiProjectBrowser) self.actions.append(self.mpbActivateAct) self.addAction(self.mpbActivateAct) @@ -1295,7 +1295,7 @@ """<p>This switches the input focus to the Debug-Viewer""" """ window.</p>""" )) - self.debugViewerActivateAct.triggered[()].connect( + self.debugViewerActivateAct.triggered.connect( self.__activateDebugViewer) self.actions.append(self.debugViewerActivateAct) self.addAction(self.debugViewerActivateAct) @@ -1312,7 +1312,7 @@ """<b>Activate Shell</b>""" """<p>This switches the input focus to the Shell window.</p>""" )) - self.shellActivateAct.triggered[()].connect(self.__activateShell) + self.shellActivateAct.triggered.connect(self.__activateShell) self.actions.append(self.shellActivateAct) self.addAction(self.shellActivateAct) @@ -1329,7 +1329,7 @@ """<p>This switches the input focus to the File-Browser""" """ window.</p>""" )) - self.browserActivateAct.triggered[()].connect(self.__activateBrowser) + self.browserActivateAct.triggered.connect(self.__activateBrowser) self.actions.append(self.browserActivateAct) self.addAction(self.browserActivateAct) @@ -1346,7 +1346,7 @@ """<p>This switches the input focus to the Log-Viewer""" """ window.</p>""" )) - self.logViewerActivateAct.triggered[()].connect( + self.logViewerActivateAct.triggered.connect( self.__activateLogViewer) self.actions.append(self.logViewerActivateAct) self.addAction(self.logViewerActivateAct) @@ -1364,7 +1364,7 @@ """<p>This switches the input focus to the Task-Viewer""" """ window.</p>""" )) - self.taskViewerActivateAct.triggered[()].connect( + self.taskViewerActivateAct.triggered.connect( self.__activateTaskViewer) self.actions.append(self.taskViewerActivateAct) self.addAction(self.taskViewerActivateAct) @@ -1382,7 +1382,7 @@ """<p>This switches the input focus to the Template-Viewer""" """ window.</p>""" )) - self.templateViewerActivateAct.triggered[()].connect( + self.templateViewerActivateAct.triggered.connect( self.__activateTemplateViewer) self.actions.append(self.templateViewerActivateAct) self.addAction(self.templateViewerActivateAct) @@ -1396,7 +1396,7 @@ """<p>If the Left Toolbox window is hidden then display it.""" """ If it is displayed then close it.</p>""" )) - self.ltAct.triggered[()].connect(self.__toggleLeftToolbox) + self.ltAct.triggered.connect(self.__toggleLeftToolbox) self.actions.append(self.ltAct) self.rtAct = E5Action( @@ -1409,7 +1409,7 @@ """<p>If the Right Toolbox window is hidden then display it.""" """ If it is displayed then close it.</p>""" )) - self.rtAct.triggered[()].connect(self.__toggleRightToolbox) + self.rtAct.triggered.connect(self.__toggleRightToolbox) self.actions.append(self.rtAct) self.htAct = E5Action( @@ -1423,7 +1423,7 @@ """<p>If the Horizontal Toolbox window is hidden then display""" """ it. If it is displayed then close it.</p>""" )) - self.htAct.triggered[()].connect(self.__toggleHorizontalToolbox) + self.htAct.triggered.connect(self.__toggleHorizontalToolbox) self.actions.append(self.htAct) self.lsbAct = E5Action( @@ -1436,7 +1436,7 @@ """<p>If the left sidebar window is hidden then display it.""" """ If it is displayed then close it.</p>""" )) - self.lsbAct.triggered[()].connect(self.__toggleLeftSidebar) + self.lsbAct.triggered.connect(self.__toggleLeftSidebar) self.actions.append(self.lsbAct) self.rsbAct = E5Action( @@ -1450,7 +1450,7 @@ """<p>If the right sidebar window is hidden then display it.""" """ If it is displayed then close it.</p>""" )) - self.rsbAct.triggered[()].connect(self.__toggleRightSidebar) + self.rsbAct.triggered.connect(self.__toggleRightSidebar) self.actions.append(self.rsbAct) self.bsbAct = E5Action( @@ -1464,7 +1464,7 @@ """<p>If the bottom sidebar window is hidden then display it.""" """ If it is displayed then close it.</p>""" )) - self.bsbAct.triggered[()].connect(self.__toggleBottomSidebar) + self.bsbAct.triggered.connect(self.__toggleBottomSidebar) self.actions.append(self.bsbAct) self.cooperationViewerActivateAct = E5Action( @@ -1480,7 +1480,7 @@ """<p>This switches the input focus to the Cooperation-Viewer""" """ window.</p>""" )) - self.cooperationViewerActivateAct.triggered[()].connect( + self.cooperationViewerActivateAct.triggered.connect( self.activateCooperationViewer) self.actions.append(self.cooperationViewerActivateAct) self.addAction(self.cooperationViewerActivateAct) @@ -1497,7 +1497,7 @@ """<b>Activate IRC</b>""" """<p>This switches the input focus to the IRC window.</p>""" )) - self.ircActivateAct.triggered[()].connect( + self.ircActivateAct.triggered.connect( self.__activateIRC) self.actions.append(self.ircActivateAct) self.addAction(self.ircActivateAct) @@ -1515,7 +1515,7 @@ """<p>This switches the input focus to the Symbols-Viewer""" """ window.</p>""" )) - self.symbolsViewerActivateAct.triggered[()].connect( + self.symbolsViewerActivateAct.triggered.connect( self.__activateSymbolsViewer) self.actions.append(self.symbolsViewerActivateAct) self.addAction(self.symbolsViewerActivateAct) @@ -1533,7 +1533,7 @@ """<p>This switches the input focus to the Numbers-Viewer""" """ window.</p>""" )) - self.numbersViewerActivateAct.triggered[()].connect( + self.numbersViewerActivateAct.triggered.connect( self.__activateNumbersViewer) self.actions.append(self.numbersViewerActivateAct) self.addAction(self.numbersViewerActivateAct) @@ -1553,7 +1553,7 @@ """ them. In dialogs, this feature can be accessed using the""" """ context help button in the titlebar.</p>""" )) - self.whatsThisAct.triggered[()].connect(self.__whatsThis) + self.whatsThisAct.triggered.connect(self.__whatsThis) self.actions.append(self.whatsThisAct) self.helpviewerAct = E5Action( @@ -1573,7 +1573,7 @@ """ browse the internet as well</p><p>If called with a word""" """ selected, this word is search in the Qt help collection.</p>""" )) - self.helpviewerAct.triggered[()].connect(self.__helpViewer) + self.helpviewerAct.triggered.connect(self.__helpViewer) self.actions.append(self.helpviewerAct) self.__initQtDocActions() @@ -1591,7 +1591,7 @@ """<b>Show Versions</b>""" """<p>Display version information.</p>""" )) - self.versionAct.triggered[()].connect(self.__showVersions) + self.versionAct.triggered.connect(self.__showVersions) self.actions.append(self.versionAct) self.checkUpdateAct = E5Action( @@ -1602,7 +1602,7 @@ """<b>Check for Updates...</b>""" """<p>Checks the internet for updates of eric5.</p>""" )) - self.checkUpdateAct.triggered[()].connect(self.performVersionCheck) + self.checkUpdateAct.triggered.connect(self.performVersionCheck) self.actions.append(self.checkUpdateAct) self.showVersionsAct = E5Action( @@ -1616,7 +1616,7 @@ """<p>Shows the eric5 versions available for download """ """from the internet.</p>""" )) - self.showVersionsAct.triggered[()].connect( + self.showVersionsAct.triggered.connect( self.showAvailableVersionsInfo) self.actions.append(self.showVersionsAct) @@ -1629,7 +1629,7 @@ """<b>Show Error Log...</b>""" """<p>Opens a dialog showing the most recent error log.</p>""" )) - self.showErrorLogAct.triggered[()].connect(self.__showErrorLog) + self.showErrorLogAct.triggered.connect(self.__showErrorLog) self.actions.append(self.showErrorLogAct) self.reportBugAct = E5Action( @@ -1641,7 +1641,7 @@ """<b>Report Bug...</b>""" """<p>Opens a dialog to report a bug.</p>""" )) - self.reportBugAct.triggered[()].connect(self.__reportBug) + self.reportBugAct.triggered.connect(self.__reportBug) self.actions.append(self.reportBugAct) self.requestFeatureAct = E5Action( @@ -1654,7 +1654,7 @@ """<b>Request Feature...</b>""" """<p>Opens a dialog to send a feature request.</p>""" )) - self.requestFeatureAct.triggered[()].connect(self.__requestFeature) + self.requestFeatureAct.triggered.connect(self.__requestFeature) self.actions.append(self.requestFeatureAct) self.utActGrp = createActionGroup(self) @@ -1670,7 +1670,7 @@ """<p>Perform unit tests. The dialog gives you the""" """ ability to select and run a unittest suite.</p>""" )) - self.utDialogAct.triggered[()].connect(self.__unittest) + self.utDialogAct.triggered.connect(self.__unittest) self.actions.append(self.utDialogAct) self.utRestartAct = E5Action( @@ -1683,7 +1683,7 @@ """<b>Restart Unittest</b>""" """<p>Restart the unittest performed last.</p>""" )) - self.utRestartAct.triggered[()].connect(self.__unittestRestart) + self.utRestartAct.triggered.connect(self.__unittestRestart) self.utRestartAct.setEnabled(False) self.actions.append(self.utRestartAct) @@ -1699,7 +1699,7 @@ """<p>Rerun all tests that failed during the last unittest""" """ run.</p>""" )) - self.utRerunFailedAct.triggered[()].connect(self.__unittestRerunFailed) + self.utRerunFailedAct.triggered.connect(self.__unittestRerunFailed) self.utRerunFailedAct.setEnabled(False) self.actions.append(self.utRerunFailedAct) @@ -1714,7 +1714,7 @@ """<b>Unittest Script</b>""" """<p>Run unittest with current script.</p>""" )) - self.utScriptAct.triggered[()].connect(self.__unittestScript) + self.utScriptAct.triggered.connect(self.__unittestScript) self.utScriptAct.setEnabled(False) self.actions.append(self.utScriptAct) @@ -1729,7 +1729,7 @@ """<b>Unittest Project</b>""" """<p>Run unittest with current project.</p>""" )) - self.utProjectAct.triggered[()].connect(self.__unittestProject) + self.utProjectAct.triggered.connect(self.__unittestProject) self.utProjectAct.setEnabled(False) self.actions.append(self.utProjectAct) @@ -1755,7 +1755,7 @@ """<b>Qt-Designer</b>""" """<p>Start Qt-Designer.</p>""" )) - self.designer4Act.triggered[()].connect(self.__designer4) + self.designer4Act.triggered.connect(self.__designer4) self.actions.append(self.designer4Act) else: self.designer4Act = None @@ -1781,7 +1781,7 @@ """<b>Qt-Linguist</b>""" """<p>Start Qt-Linguist.</p>""" )) - self.linguist4Act.triggered[()].connect(self.__linguist4) + self.linguist4Act.triggered.connect(self.__linguist4) self.actions.append(self.linguist4Act) else: self.linguist4Act = None @@ -1796,7 +1796,7 @@ """<b>UI Previewer</b>""" """<p>Start the UI Previewer.</p>""" )) - self.uipreviewerAct.triggered[()].connect(self.__UIPreviewer) + self.uipreviewerAct.triggered.connect(self.__UIPreviewer) self.actions.append(self.uipreviewerAct) self.trpreviewerAct = E5Action( @@ -1810,7 +1810,7 @@ """<b>Translations Previewer</b>""" """<p>Start the Translations Previewer.</p>""" )) - self.trpreviewerAct.triggered[()].connect(self.__TRPreviewer) + self.trpreviewerAct.triggered.connect(self.__TRPreviewer) self.actions.append(self.trpreviewerAct) self.diffAct = E5Action( @@ -1823,7 +1823,7 @@ """<b>Compare Files</b>""" """<p>Open a dialog to compare two files.</p>""" )) - self.diffAct.triggered[()].connect(self.__compareFiles) + self.diffAct.triggered.connect(self.__compareFiles) self.actions.append(self.diffAct) self.compareAct = E5Action( @@ -1837,7 +1837,7 @@ """<p>Open a dialog to compare two files and show the result""" """ side by side.</p>""" )) - self.compareAct.triggered[()].connect(self.__compareFilesSbs) + self.compareAct.triggered.connect(self.__compareFilesSbs) self.actions.append(self.compareAct) self.sqlBrowserAct = E5Action( @@ -1850,7 +1850,7 @@ """<b>SQL Browser</b>""" """<p>Browse a SQL database.</p>""" )) - self.sqlBrowserAct.triggered[()].connect(self.__sqlBrowser) + self.sqlBrowserAct.triggered.connect(self.__sqlBrowser) self.actions.append(self.sqlBrowserAct) self.miniEditorAct = E5Action( @@ -1863,7 +1863,7 @@ """<b>Mini Editor</b>""" """<p>Open a dialog with a simplified editor.</p>""" )) - self.miniEditorAct.triggered[()].connect(self.__openMiniEditor) + self.miniEditorAct.triggered.connect(self.__openMiniEditor) self.actions.append(self.miniEditorAct) self.webBrowserAct = E5Action( @@ -1877,7 +1877,7 @@ """<b>eric5 Web Browser</b>""" """<p>Browse the Internet with the eric5 Web Browser.</p>""" )) - self.webBrowserAct.triggered[()].connect(self.__startWebBrowser) + self.webBrowserAct.triggered.connect(self.__startWebBrowser) self.actions.append(self.webBrowserAct) self.iconEditorAct = E5Action( @@ -1891,7 +1891,7 @@ """<b>Icon Editor</b>""" """<p>Starts the eric5 Icon Editor for editing simple icons.</p>""" )) - self.iconEditorAct.triggered[()].connect(self.__editPixmap) + self.iconEditorAct.triggered.connect(self.__editPixmap) self.actions.append(self.iconEditorAct) self.snapshotAct = E5Action( @@ -1906,7 +1906,7 @@ """<p>This opens a dialog to take snapshots of a screen""" """ region.</p>""" )) - self.snapshotAct.triggered[()].connect(self.__snapshot) + self.snapshotAct.triggered.connect(self.__snapshot) self.actions.append(self.snapshotAct) self.prefAct = E5Action( @@ -1921,7 +1921,7 @@ """<p>Set the configuration items of the application""" """ with your prefered values.</p>""" )) - self.prefAct.triggered[()].connect(self.showPreferences) + self.prefAct.triggered.connect(self.showPreferences) self.prefAct.setMenuRole(QAction.PreferencesRole) self.actions.append(self.prefAct) @@ -1936,7 +1936,7 @@ """<b>Export Preferences</b>""" """<p>Export the current configuration to a file.</p>""" )) - self.prefExportAct.triggered[()].connect(self.__exportPreferences) + self.prefExportAct.triggered.connect(self.__exportPreferences) self.actions.append(self.prefExportAct) self.prefImportAct = E5Action( @@ -1950,7 +1950,7 @@ """<b>Import Preferences</b>""" """<p>Import a previously exported configuration.</p>""" )) - self.prefImportAct.triggered[()].connect(self.__importPreferences) + self.prefImportAct.triggered.connect(self.__importPreferences) self.actions.append(self.prefImportAct) self.reloadAPIsAct = E5Action( @@ -1963,7 +1963,7 @@ """<b>Reload APIs</b>""" """<p>Reload the API information.</p>""" )) - self.reloadAPIsAct.triggered[()].connect(self.__reloadAPIs) + self.reloadAPIsAct.triggered.connect(self.__reloadAPIs) self.actions.append(self.reloadAPIsAct) self.showExternalToolsAct = E5Action( @@ -1978,7 +1978,7 @@ """<p>Opens a dialog to show the path and versions of all""" """ extenal tools used by eric5.</p>""" )) - self.showExternalToolsAct.triggered[()].connect( + self.showExternalToolsAct.triggered.connect( self.__showExternalTools) self.actions.append(self.showExternalToolsAct) @@ -1995,7 +1995,7 @@ """ set the visibility of the various windows for the""" """ predetermined view profiles.</p>""" )) - self.configViewProfilesAct.triggered[()].connect( + self.configViewProfilesAct.triggered.connect( self.__configViewProfiles) self.actions.append(self.configViewProfilesAct) @@ -2011,7 +2011,7 @@ """ change the actions shown on the various toolbars and""" """ define your own toolbars.</p>""" )) - self.configToolBarsAct.triggered[()].connect(self.__configToolBars) + self.configToolBarsAct.triggered.connect(self.__configToolBars) self.actions.append(self.configToolBarsAct) self.shortcutsAct = E5Action( @@ -2026,7 +2026,7 @@ """<p>Set the keyboard shortcuts of the application""" """ with your prefered values.</p>""" )) - self.shortcutsAct.triggered[()].connect(self.__configShortcuts) + self.shortcutsAct.triggered.connect(self.__configShortcuts) self.actions.append(self.shortcutsAct) self.exportShortcutsAct = E5Action( @@ -2040,7 +2040,7 @@ """<b>Export Keyboard Shortcuts</b>""" """<p>Export the keyboard shortcuts of the application.</p>""" )) - self.exportShortcutsAct.triggered[()].connect(self.__exportShortcuts) + self.exportShortcutsAct.triggered.connect(self.__exportShortcuts) self.actions.append(self.exportShortcutsAct) self.importShortcutsAct = E5Action( @@ -2054,7 +2054,7 @@ """<b>Import Keyboard Shortcuts</b>""" """<p>Import the keyboard shortcuts of the application.</p>""" )) - self.importShortcutsAct.triggered[()].connect(self.__importShortcuts) + self.importShortcutsAct.triggered.connect(self.__importShortcuts) self.actions.append(self.importShortcutsAct) if SSL_AVAILABLE: @@ -2070,7 +2070,7 @@ """<p>Opens a dialog to manage the saved SSL certificates.""" """</p>""" )) - self.certificatesAct.triggered[()].connect( + self.certificatesAct.triggered.connect( self.__showCertificatesDialog) self.actions.append(self.certificatesAct) @@ -2087,7 +2087,7 @@ """ suppress unwanted messages been shown in an error""" """ window.</p>""" )) - self.editMessageFilterAct.triggered[()].connect( + self.editMessageFilterAct.triggered.connect( E5ErrorMessage.editMessageFilters) self.actions.append(self.editMessageFilterAct) @@ -2096,7 +2096,7 @@ self.tr('Activate current editor'), QKeySequence(self.tr("Alt+Shift+E")), 0, self, 'viewmanager_activate', 1) - self.viewmanagerActivateAct.triggered[()].connect( + self.viewmanagerActivateAct.triggered.connect( self.__activateViewmanager) self.actions.append(self.viewmanagerActivateAct) self.addAction(self.viewmanagerActivateAct) @@ -2106,7 +2106,7 @@ self.tr('Show next'), QKeySequence(self.tr('Ctrl+Alt+Tab')), 0, self, 'view_next_tab') - self.nextTabAct.triggered[()].connect(self.__showNext) + self.nextTabAct.triggered.connect(self.__showNext) self.actions.append(self.nextTabAct) self.addAction(self.nextTabAct) @@ -2115,7 +2115,7 @@ self.tr('Show previous'), QKeySequence(self.tr('Shift+Ctrl+Alt+Tab')), 0, self, 'view_previous_tab') - self.prevTabAct.triggered[()].connect(self.__showPrevious) + self.prevTabAct.triggered.connect(self.__showPrevious) self.actions.append(self.prevTabAct) self.addAction(self.prevTabAct) @@ -2124,7 +2124,7 @@ self.tr('Switch between tabs'), QKeySequence(self.tr('Ctrl+1')), 0, self, 'switch_tabs') - self.switchTabAct.triggered[()].connect(self.__switchTab) + self.switchTabAct.triggered.connect(self.__switchTab) self.actions.append(self.switchTabAct) self.addAction(self.switchTabAct) @@ -2138,7 +2138,7 @@ """<p>This opens a dialog, that show some information about""" """ loaded plugins.</p>""" )) - self.pluginInfoAct.triggered[()].connect(self.__showPluginInfo) + self.pluginInfoAct.triggered.connect(self.__showPluginInfo) self.actions.append(self.pluginInfoAct) self.pluginInstallAct = E5Action( @@ -2151,7 +2151,7 @@ """<b>Install Plugins...</b>""" """<p>This opens a dialog to install or update plugins.</p>""" )) - self.pluginInstallAct.triggered[()].connect(self.__installPlugins) + self.pluginInstallAct.triggered.connect(self.__installPlugins) self.actions.append(self.pluginInstallAct) self.pluginDeinstallAct = E5Action( @@ -2164,7 +2164,7 @@ """<b>Uninstall Plugin...</b>""" """<p>This opens a dialog to uninstall a plugin.</p>""" )) - self.pluginDeinstallAct.triggered[()].connect(self.__deinstallPlugin) + self.pluginDeinstallAct.triggered.connect(self.__deinstallPlugin) self.actions.append(self.pluginDeinstallAct) self.pluginRepoAct = E5Action( @@ -2179,7 +2179,7 @@ """<p>This opens a dialog, that shows a list of plugins """ """available on the Internet.</p>""" )) - self.pluginRepoAct.triggered[()].connect(self.showPluginsAvailable) + self.pluginRepoAct.triggered.connect(self.showPluginsAvailable) self.actions.append(self.pluginRepoAct) # initialize viewmanager actions @@ -2209,7 +2209,7 @@ """ settings, this will either show the help in Eric's internal""" """ help viewer, or execute a web browser or Qt Assistant. </p>""" )) - self.qt4DocAct.triggered[()].connect(self.__showQt4Doc) + self.qt4DocAct.triggered.connect(self.__showQt4Doc) self.actions.append(self.qt4DocAct) self.qt5DocAct = E5Action( @@ -2223,7 +2223,7 @@ """ settings, this will either show the help in Eric's internal""" """ help viewer, or execute a web browser or Qt Assistant. </p>""" )) - self.qt5DocAct.triggered[()].connect(self.__showQt5Doc) + self.qt5DocAct.triggered.connect(self.__showQt5Doc) self.actions.append(self.qt5DocAct) self.pyqt4DocAct = E5Action( @@ -2237,7 +2237,7 @@ """ settings, this will either show the help in Eric's internal""" """ help viewer, or execute a web browser or Qt Assistant. </p>""" )) - self.pyqt4DocAct.triggered[()].connect(self.__showPyQt4Doc) + self.pyqt4DocAct.triggered.connect(self.__showPyQt4Doc) self.actions.append(self.pyqt4DocAct) try: @@ -2255,7 +2255,7 @@ """ internal help viewer, or execute a web browser or""" """ Qt Assistant. </p>""" )) - self.pyqt5DocAct.triggered[()].connect(self.__showPyQt5Doc) + self.pyqt5DocAct.triggered.connect(self.__showPyQt5Doc) self.actions.append(self.pyqt5DocAct) except ImportError: self.pyqt5DocAct = None @@ -2280,7 +2280,7 @@ """ <i>/usr/share/doc/packages/python/html</i> on Unix. Set""" """ PYTHON3DOCDIR in your environment to override this.</p>""" )) - self.pythonDocAct.triggered[()].connect(self.__showPythonDoc) + self.pythonDocAct.triggered.connect(self.__showPythonDoc) self.actions.append(self.pythonDocAct) self.python2DocAct = E5Action( @@ -2300,7 +2300,7 @@ """ on Unix. Set PYTHON2DOCDIR in your environment to override""" """ this. </p>""" )) - self.python2DocAct.triggered[()].connect(self.__showPython2Doc) + self.python2DocAct.triggered.connect(self.__showPython2Doc) self.actions.append(self.python2DocAct) def __initEricDocAction(self): @@ -2319,7 +2319,7 @@ """ documentation is the Documentation/Source subdirectory of""" """ the eric5 installation directory.</p>""" )) - self.ericDocAct.triggered[()].connect(self.__showEricDoc) + self.ericDocAct.triggered.connect(self.__showEricDoc) self.actions.append(self.ericDocAct) def __initPySideDocAction(self): @@ -2341,7 +2341,7 @@ """ internal help viewer, or execute a web browser or""" """ Qt Assistant. </p>""" )) - self.pysideDocAct.triggered[()].connect(self.__showPySideDoc) + self.pysideDocAct.triggered.connect(self.__showPySideDoc) self.actions.append(self.pysideDocAct) else: self.pysideDocAct = None @@ -2780,7 +2780,7 @@ tool['menutext'], self) act.setObjectName("{0}@@{1}".format(toolGroup[0], tool['menutext'])) - act.triggered[()].connect(self.__toolActionTriggered) + act.triggered.connect(self.__toolActionTriggered) self.toolGroupActions[act.objectName()] = act self.toolbarManager.addAction(act, category) @@ -2808,7 +2808,7 @@ for key in groupActionKeys: if key not in ckeys: self.toolbarManager.removeAction(self.toolGroupActions[key]) - self.toolGroupActions[key].triggered[()].disconnect( + self.toolGroupActions[key].triggered.disconnect( self.__toolActionTriggered) del self.toolGroupActions[key] @@ -2821,7 +2821,7 @@ act = QAction(UI.PixmapCache.getIcon(tool['icon']), tool['menutext'], self) act.setObjectName(key) - act.triggered[()].connect(self.__toolActionTriggered) + act.triggered.connect(self.__toolActionTriggered) self.toolGroupActions[key] = act self.toolbarManager.addAction(act, category) @@ -3589,6 +3589,7 @@ self.__currentBottomWidget = None self.__activateViewmanager() + @pyqtSlot() def __setEditProfile(self, save=True): """ Private slot to activate the edit view profile. @@ -3599,6 +3600,7 @@ self.__activateViewProfile("edit", save) self.setEditProfileAct.setChecked(True) + @pyqtSlot() def setDebugProfile(self, save=True): """ Public slot to activate the debug view profile. @@ -3965,7 +3967,9 @@ self.__createUnitTestDialog() self.unittestDialog.show() self.unittestDialog.raise_() - + + @pyqtSlot() + @pyqtSlot(str) def __unittestScript(self, prog=None): """ Private slot for displaying the unittest dialog and run the current @@ -4182,7 +4186,9 @@ '<p>Could not start Qt-Linguist.<br>' 'Ensure that it is available as <b>{0}</b>.</p>' ).format(linguist)) - + + @pyqtSlot() + @pyqtSlot(str) def __linguist4(self, fn=None): """ Private slot to start the Qt-Linguist 4 executable. @@ -4294,6 +4300,8 @@ 'Ensure that it is available as <b>hh</b>.</p>' )) + @pyqtSlot() + @pyqtSlot(str) def __UIPreviewer(self, fn=None): """ Private slot to start the UI Previewer executable. @@ -4340,6 +4348,9 @@ 'Ensure that it is available as <b>{0}</b>.</p>' ).format(viewer)) + @pyqtSlot() + @pyqtSlot(str) + @pyqtSlot(str, bool) def __TRPreviewer(self, fileNames=None, ignore=False): """ Private slot to start the Translation Previewer executable. @@ -4413,6 +4424,8 @@ 'Ensure that it is available as <b>{0}</b>.</p>' ).format(browser)) + @pyqtSlot() + @pyqtSlot(str) def __editPixmap(self, fn=""): """ Private slot to show a pixmap in a dialog. @@ -4423,6 +4436,8 @@ dlg = IconEditorWindow(fn, self, fromEric=True, project=self.project) dlg.show() + @pyqtSlot() + @pyqtSlot(str) def __showPixmap(self, fn): """ Private slot to show a pixmap in a dialog. @@ -4434,6 +4449,8 @@ if dlg.getStatus(): dlg.show() + @pyqtSlot() + @pyqtSlot(str) def __showSvg(self, fn): """ Private slot to show a SVG file in a dialog. @@ -5093,6 +5110,8 @@ self.helpWindow.raise_() return self.helpWindow + @pyqtSlot() + @pyqtSlot(str) def showPreferences(self, pageName=None): """ Public slot to set the preferences. @@ -5580,6 +5599,7 @@ self.__pluginInfoDialog = PluginInfoDialog(self.pluginManager, self) self.__pluginInfoDialog.show() + @pyqtSlot() def __installPlugins(self, pluginFileNames=[]): """ Private slot to show a dialog to install a new plugin. @@ -5771,6 +5791,7 @@ """ self.performVersionCheck(manual=True, showVersions=True) + @pyqtSlot() def performVersionCheck(self, manual=True, alternative=0, showVersions=False): """ @@ -5825,7 +5846,7 @@ request.setAttribute(QNetworkRequest.CacheLoadControlAttribute, QNetworkRequest.AlwaysNetwork) reply = self.__networkManager.get(request) - reply.finished[()].connect(self.__versionsDownloadDone) + reply.finished.connect(self.__versionsDownloadDone) self.__replies.append(reply) def __versionsDownloadDone(self):
--- a/VCS/ProjectHelper.py Fri Mar 07 19:20:36 2014 +0100 +++ b/VCS/ProjectHelper.py Sat Mar 08 20:09:41 2014 +0100 @@ -11,7 +11,7 @@ import shutil import copy -from PyQt4.QtCore import QDir, QFileInfo, QObject +from PyQt4.QtCore import pyqtSlot, QDir, QFileInfo, QObject from PyQt4.QtGui import QDialog, QInputDialog from E5Gui.E5Action import E5Action @@ -73,7 +73,7 @@ """<p>This creates a new local project from the VCS""" """ repository.</p>""" )) - self.vcsNewAct.triggered[()].connect(self._vcsCheckout) + self.vcsNewAct.triggered.connect(self._vcsCheckout) self.actions.append(self.vcsNewAct) self.vcsExportAct = E5Action( @@ -87,7 +87,7 @@ """<b>Export from repository</b>""" """<p>This exports a project from the repository.</p>""" )) - self.vcsExportAct.triggered[()].connect(self._vcsExport) + self.vcsExportAct.triggered.connect(self._vcsExport) self.actions.append(self.vcsExportAct) self.vcsAddAct = E5Action( @@ -102,7 +102,7 @@ """<p>This adds (imports) the local project to the VCS""" """ repository.</p>""" )) - self.vcsAddAct.triggered[()].connect(self._vcsImport) + self.vcsAddAct.triggered.connect(self._vcsImport) self.actions.append(self.vcsAddAct) def initMenu(self, menu): @@ -125,7 +125,8 @@ """ if self.vcsAddAct: self.vcsAddAct.setEnabled(self.project.isOpen()) - + + @pyqtSlot() def _vcsCheckout(self, export=False): """ Protected slot used to create a local project from the repository.
--- a/ViewManager/ViewManager.py Fri Mar 07 19:20:36 2014 +0100 +++ b/ViewManager/ViewManager.py Sat Mar 08 20:09:41 2014 +0100 @@ -9,8 +9,8 @@ import os -from PyQt4.QtCore import QSignalMapper, QTimer, QFileInfo, pyqtSignal, \ - QRegExp, QObject, Qt +from PyQt4.QtCore import pyqtSlot, pyqtSignal, QSignalMapper, QTimer, \ + QFileInfo, QRegExp, QObject, Qt from PyQt4.QtGui import QColor, QKeySequence, QLineEdit, QToolBar, \ QWidgetAction, QDialog, QApplication, QMenu, QPalette, QComboBox, QPixmap from PyQt4.Qsci import QsciScintilla @@ -575,7 +575,7 @@ """<b>New</b>""" """<p>An empty editor window will be created.</p>""" )) - self.newAct.triggered[()].connect(self.newEditor) + self.newAct.triggered.connect(self.newEditor) self.fileActions.append(self.newAct) self.openAct = E5Action( @@ -593,7 +593,7 @@ """<p>You will be asked for the name of a file to be opened""" """ in an editor window.</p>""" )) - self.openAct.triggered[()].connect(self.openFiles) + self.openAct.triggered.connect(self.openFiles) self.fileActions.append(self.openAct) self.closeActGrp = createActionGroup(self) @@ -612,7 +612,7 @@ """<b>Close Window</b>""" """<p>Close the current window.</p>""" )) - self.closeAct.triggered[()].connect(self.closeCurrentWindow) + self.closeAct.triggered.connect(self.closeCurrentWindow) self.fileActions.append(self.closeAct) self.closeAllAct = E5Action( @@ -626,7 +626,7 @@ """<b>Close All Windows</b>""" """<p>Close all editor windows.</p>""" )) - self.closeAllAct.triggered[()].connect(self.closeAllWindows) + self.closeAllAct.triggered.connect(self.closeAllWindows) self.fileActions.append(self.closeAllAct) self.closeActGrp.setEnabled(False) @@ -647,7 +647,7 @@ """<b>Save File</b>""" """<p>Save the contents of current editor window.</p>""" )) - self.saveAct.triggered[()].connect(self.saveCurrentEditor) + self.saveAct.triggered.connect(self.saveCurrentEditor) self.fileActions.append(self.saveAct) self.saveAsAct = E5Action( @@ -665,7 +665,7 @@ """<p>Save the contents of current editor window to a new file.""" """ The file can be entered in a file selection dialog.</p>""" )) - self.saveAsAct.triggered[()].connect(self.saveAsCurrentEditor) + self.saveAsAct.triggered.connect(self.saveAsCurrentEditor) self.fileActions.append(self.saveAsAct) self.saveAllAct = E5Action( @@ -680,7 +680,7 @@ """<b>Save All Files</b>""" """<p>Save the contents of all editor windows.</p>""" )) - self.saveAllAct.triggered[()].connect(self.saveAllEditors) + self.saveAllAct.triggered.connect(self.saveAllEditors) self.fileActions.append(self.saveAllAct) self.saveActGrp.setEnabled(False) @@ -699,7 +699,7 @@ """<b>Print File</b>""" """<p>Print the contents of current editor window.</p>""" )) - self.printAct.triggered[()].connect(self.printCurrentEditor) + self.printAct.triggered.connect(self.printCurrentEditor) self.printAct.setEnabled(False) self.fileActions.append(self.printAct) @@ -715,7 +715,7 @@ """<b>Print Preview</b>""" """<p>Print preview of the current editor window.</p>""" )) - self.printPreviewAct.triggered[()].connect( + self.printPreviewAct.triggered.connect( self.printPreviewCurrentEditor) self.printPreviewAct.setEnabled(False) self.fileActions.append(self.printPreviewAct) @@ -733,7 +733,7 @@ """<b>Search File</b>""" """<p>Search for a file.</p>""" )) - self.findFileNameAct.triggered[()].connect(self.__findFileName) + self.findFileNameAct.triggered.connect(self.__findFileName) self.fileActions.append(self.findFileNameAct) def initFileMenu(self): @@ -853,7 +853,7 @@ """<b>Undo</b>""" """<p>Undo the last change done in the current editor.</p>""" )) - self.undoAct.triggered[()].connect(self.__editUndo) + self.undoAct.triggered.connect(self.__editUndo) self.editActions.append(self.undoAct) self.redoAct = E5Action( @@ -871,7 +871,7 @@ """<b>Redo</b>""" """<p>Redo the last change done in the current editor.</p>""" )) - self.redoAct.triggered[()].connect(self.__editRedo) + self.redoAct.triggered.connect(self.__editRedo) self.editActions.append(self.redoAct) self.revertAct = E5Action( @@ -891,7 +891,7 @@ """<p>Undo all changes up to the last saved state""" """ of the current editor.</p>""" )) - self.revertAct.triggered[()].connect(self.__editRevert) + self.revertAct.triggered.connect(self.__editRevert) self.editActions.append(self.revertAct) self.copyActGrp = createActionGroup(self.editActGrp) @@ -913,7 +913,7 @@ """<p>Cut the selected text of the current editor to the""" """ clipboard.</p>""" )) - self.cutAct.triggered[()].connect(self.__editCut) + self.cutAct.triggered.connect(self.__editCut) self.editActions.append(self.cutAct) self.copyAct = E5Action( @@ -933,7 +933,7 @@ """<p>Copy the selected text of the current editor to the""" """ clipboard.</p>""" )) - self.copyAct.triggered[()].connect(self.__editCopy) + self.copyAct.triggered.connect(self.__editCopy) self.editActions.append(self.copyAct) self.pasteAct = E5Action( @@ -953,7 +953,7 @@ """<p>Paste the last cut/copied text from the clipboard to""" """ the current editor.</p>""" )) - self.pasteAct.triggered[()].connect(self.__editPaste) + self.pasteAct.triggered.connect(self.__editPaste) self.editActions.append(self.pasteAct) self.deleteAct = E5Action( @@ -971,7 +971,7 @@ """<b>Clear</b>""" """<p>Delete all text of the current editor.</p>""" )) - self.deleteAct.triggered[()].connect(self.__editDelete) + self.deleteAct.triggered.connect(self.__editDelete) self.editActions.append(self.deleteAct) self.joinAct = E5Action( @@ -988,7 +988,7 @@ """<b>Join Lines</b>""" """<p>Join the current and the next lines.</p>""" )) - self.joinAct.triggered[()].connect(self.__editJoin) + self.joinAct.triggered.connect(self.__editJoin) self.editActions.append(self.joinAct) self.indentAct = E5Action( @@ -1007,7 +1007,7 @@ """<p>Indents the current line or the lines of the""" """ selection by one level.</p>""" )) - self.indentAct.triggered[()].connect(self.__editIndent) + self.indentAct.triggered.connect(self.__editIndent) self.editActions.append(self.indentAct) self.unindentAct = E5Action( @@ -1026,7 +1026,7 @@ """<p>Unindents the current line or the lines of the""" """ selection by one level.</p>""" )) - self.unindentAct.triggered[()].connect(self.__editUnindent) + self.unindentAct.triggered.connect(self.__editUnindent) self.editActions.append(self.unindentAct) self.smartIndentAct = E5Action( @@ -1045,7 +1045,7 @@ """<p>Indents the current line or the lines of the""" """ current selection smartly.</p>""" )) - self.smartIndentAct.triggered[()].connect(self.__editSmartIndent) + self.smartIndentAct.triggered.connect(self.__editSmartIndent) self.editActions.append(self.smartIndentAct) self.commentAct = E5Action( @@ -1064,7 +1064,7 @@ """<p>Comments the current line or the lines of the""" """ current selection.</p>""" )) - self.commentAct.triggered[()].connect(self.__editComment) + self.commentAct.triggered.connect(self.__editComment) self.editActions.append(self.commentAct) self.uncommentAct = E5Action( @@ -1083,7 +1083,7 @@ """<p>Uncomments the current line or the lines of the""" """ current selection.</p>""" )) - self.uncommentAct.triggered[()].connect(self.__editUncomment) + self.uncommentAct.triggered.connect(self.__editUncomment) self.editActions.append(self.uncommentAct) self.toggleCommentAct = E5Action( @@ -1105,7 +1105,7 @@ """ the current line or selection is commented. If it is already""" """ commented, this comment block is uncommented. </p>""" )) - self.toggleCommentAct.triggered[()].connect(self.__editToggleComment) + self.toggleCommentAct.triggered.connect(self.__editToggleComment) self.editActions.append(self.toggleCommentAct) self.streamCommentAct = E5Action( @@ -1122,7 +1122,7 @@ """<p>Stream comments the current line or the current""" """ selection.</p>""" )) - self.streamCommentAct.triggered[()].connect(self.__editStreamComment) + self.streamCommentAct.triggered.connect(self.__editStreamComment) self.editActions.append(self.streamCommentAct) self.boxCommentAct = E5Action( @@ -1138,7 +1138,7 @@ """<p>Box comments the current line or the lines of the""" """ current selection.</p>""" )) - self.boxCommentAct.triggered[()].connect(self.__editBoxComment) + self.boxCommentAct.triggered.connect(self.__editBoxComment) self.editActions.append(self.boxCommentAct) self.selectBraceAct = E5Action( @@ -1156,7 +1156,7 @@ """<p>Select text of the current editor to the matching""" """ brace.</p>""" )) - self.selectBraceAct.triggered[()].connect(self.__editSelectBrace) + self.selectBraceAct.triggered.connect(self.__editSelectBrace) self.editActions.append(self.selectBraceAct) self.selectAllAct = E5Action( @@ -1173,7 +1173,7 @@ """<b>Select All</b>""" """<p>Select all text of the current editor.</p>""" )) - self.selectAllAct.triggered[()].connect(self.__editSelectAll) + self.selectAllAct.triggered.connect(self.__editSelectAll) self.editActions.append(self.selectAllAct) self.deselectAllAct = E5Action( @@ -1190,7 +1190,7 @@ """<b>Deselect All</b>""" """<p>Deselect all text of the current editor.</p>""" )) - self.deselectAllAct.triggered[()].connect(self.__editDeselectAll) + self.deselectAllAct.triggered.connect(self.__editDeselectAll) self.editActions.append(self.deselectAllAct) self.convertEOLAct = E5Action( @@ -1208,7 +1208,7 @@ """<p>Convert the line end characters to the currently set""" """ type.</p>""" )) - self.convertEOLAct.triggered[()].connect(self.__convertEOL) + self.convertEOLAct.triggered.connect(self.__convertEOL) self.editActions.append(self.convertEOLAct) self.shortenEmptyAct = E5Action( @@ -1224,7 +1224,7 @@ """<p>Shorten lines consisting solely of whitespace""" """ characters.</p>""" )) - self.shortenEmptyAct.triggered[()].connect(self.__shortenEmptyLines) + self.shortenEmptyAct.triggered.connect(self.__shortenEmptyLines) self.editActions.append(self.shortenEmptyAct) self.autoCompleteAct = E5Action( @@ -1242,7 +1242,7 @@ """<p>Performs an autocompletion of the word containing""" """ the cursor.</p>""" )) - self.autoCompleteAct.triggered[()].connect(self.__editAutoComplete) + self.autoCompleteAct.triggered.connect(self.__editAutoComplete) self.editActions.append(self.autoCompleteAct) self.autoCompleteFromDocAct = E5Action( @@ -1264,7 +1264,7 @@ """<p>Performs an autocompletion from document of the word""" """ containing the cursor.</p>""" )) - self.autoCompleteFromDocAct.triggered[()].connect( + self.autoCompleteFromDocAct.triggered.connect( self.__editAutoCompleteFromDoc) self.editActions.append(self.autoCompleteFromDocAct) @@ -1285,7 +1285,7 @@ """<p>Performs an autocompletion from APIs of the word""" """ containing the cursor.</p>""" )) - self.autoCompleteFromAPIsAct.triggered[()].connect( + self.autoCompleteFromAPIsAct.triggered.connect( self.__editAutoCompleteFromAPIs) self.editActions.append(self.autoCompleteFromAPIsAct) @@ -1308,7 +1308,7 @@ """<p>Performs an autocompletion from document and APIs""" """ of the word containing the cursor.</p>""" )) - self.autoCompleteFromAllAct.triggered[()].connect( + self.autoCompleteFromAllAct.triggered.connect( self.__editAutoCompleteFromAll) self.editActions.append(self.autoCompleteFromAllAct) @@ -1327,7 +1327,7 @@ """<p>Show calltips based on the characters immediately to the""" """ left of the cursor.</p>""" )) - self.calltipsAct.triggered[()].connect(self.__editShowCallTips) + self.calltipsAct.triggered.connect(self.__editShowCallTips) self.editActions.append(self.calltipsAct) self.sortAct = E5Action( @@ -1346,7 +1346,7 @@ """<p>Sort the lines spanned by a rectangular selection based on""" """ the selection ignoring leading and trailing whitespace.</p>""" )) - self.sortAct.triggered[()].connect(self.__editSortSelectedLines) + self.sortAct.triggered.connect(self.__editSortSelectedLines) self.editActions.append(self.sortAct) self.editActGrp.setEnabled(False) @@ -1370,7 +1370,7 @@ if isMacPlatform(): act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+B'))) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1382,7 +1382,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+F'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1394,7 +1394,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+P'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1406,7 +1406,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+N'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1418,7 +1418,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1430,7 +1430,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1445,7 +1445,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1457,7 +1457,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1473,7 +1473,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOME) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1490,7 +1490,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAY) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1507,7 +1507,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'End'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1517,7 +1517,7 @@ 0, self.editorActGrp, 'vm_edit_scroll_down_line') self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1526,7 +1526,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Up')), 0, self.editorActGrp, 'vm_edit_scroll_up_line') self.esm.setMapping(act, QsciScintilla.SCI_LINESCROLLUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1535,7 +1535,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Up')), 0, self.editorActGrp, 'vm_edit_move_up_para') self.esm.setMapping(act, QsciScintilla.SCI_PARAUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1544,7 +1544,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Alt+Down')), 0, self.editorActGrp, 'vm_edit_move_down_para') self.esm.setMapping(act, QsciScintilla.SCI_PARADOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1553,7 +1553,7 @@ QKeySequence(QApplication.translate('ViewManager', 'PgUp')), 0, self.editorActGrp, 'vm_edit_move_up_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1565,7 +1565,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+V'))) self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1580,7 +1580,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTART) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1595,7 +1595,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+End'))) self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1604,7 +1604,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Tab')), 0, self.editorActGrp, 'vm_edit_indent_one_level') self.esm.setMapping(act, QsciScintilla.SCI_TAB) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1614,7 +1614,7 @@ 0, self.editorActGrp, 'vm_edit_unindent_one_level') self.esm.setMapping(act, QsciScintilla.SCI_BACKTAB) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1629,7 +1629,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+B'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1644,7 +1644,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+F'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1658,7 +1658,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+P'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEUPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1673,7 +1673,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+N'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1687,7 +1687,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTLEFTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1701,7 +1701,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDPARTRIGHTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1718,7 +1718,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1735,7 +1735,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1753,7 +1753,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Shift+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1770,7 +1770,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Shift+End'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEENDEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1783,7 +1783,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_up_para') self.esm.setMapping(act, QsciScintilla.SCI_PARAUPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1796,7 +1796,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_down_para') self.esm.setMapping(act, QsciScintilla.SCI_PARADOWNEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1808,7 +1808,7 @@ 0, self.editorActGrp, 'vm_edit_extend_selection_up_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1824,7 +1824,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+V'))) self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1841,7 +1841,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTSTARTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1858,7 +1858,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+End'))) self.esm.setMapping(act, QsciScintilla.SCI_DOCUMENTENDEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1874,7 +1874,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Shift+Backspace'))) self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACK) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1887,7 +1887,7 @@ 0, 0, self.editorActGrp, 'vm_edit_delet_previous_char_not_line_start') self.esm.setMapping(act, QsciScintilla.SCI_DELETEBACKNOTLINE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1899,7 +1899,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+D'))) self.esm.setMapping(act, QsciScintilla.SCI_CLEAR) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1910,7 +1910,7 @@ 0, self.editorActGrp, 'vm_edit_delete_word_left') self.esm.setMapping(act, QsciScintilla.SCI_DELWORDLEFT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1919,7 +1919,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+Del')), 0, self.editorActGrp, 'vm_edit_delete_word_right') self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1930,7 +1930,7 @@ 0, self.editorActGrp, 'vm_edit_delete_line_left') self.esm.setMapping(act, QsciScintilla.SCI_DELLINELEFT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1945,7 +1945,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Del'))) self.esm.setMapping(act, QsciScintilla.SCI_DELLINERIGHT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1955,7 +1955,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Enter')), self.editorActGrp, 'vm_edit_insert_line') self.esm.setMapping(act, QsciScintilla.SCI_NEWLINE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1967,7 +1967,7 @@ 'ViewManager', 'Shift+Return')), QKeySequence(QApplication.translate('ViewManager', 'Shift+Enter')), self.editorActGrp, 'vm_edit_insert_line_below') - act.triggered[()].connect(self.__newLineBelow) + act.triggered.connect(self.__newLineBelow) self.editActions.append(act) act = E5Action( @@ -1978,7 +1978,7 @@ 0, self.editorActGrp, 'vm_edit_delete_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEDELETE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1987,7 +1987,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+D')), 0, self.editorActGrp, 'vm_edit_duplicate_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEDUPLICATE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -1998,7 +1998,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ctrl+T')), 0, self.editorActGrp, 'vm_edit_swap_current_previous_line') self.esm.setMapping(act, QsciScintilla.SCI_LINETRANSPOSE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2008,7 +2008,7 @@ 0, self.editorActGrp, 'vm_edit_cut_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINECUT) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2019,7 +2019,7 @@ 0, self.editorActGrp, 'vm_edit_copy_current_line') self.esm.setMapping(act, QsciScintilla.SCI_LINECOPY) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2028,7 +2028,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Ins')), 0, self.editorActGrp, 'vm_edit_toggle_insert_overtype') self.esm.setMapping(act, QsciScintilla.SCI_EDITTOGGLEOVERTYPE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2045,7 +2045,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+End'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAY) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2059,7 +2059,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEENDDISPLAYEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2068,7 +2068,7 @@ 0, 0, self.editorActGrp, 'vm_edit_formfeed') self.esm.setMapping(act, QsciScintilla.SCI_FORMFEED) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2077,7 +2077,7 @@ QKeySequence(QApplication.translate('ViewManager', 'Esc')), 0, self.editorActGrp, 'vm_edit_escape') self.esm.setMapping(act, QsciScintilla.SCI_CANCEL) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2093,7 +2093,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+N'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEDOWNRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2108,7 +2108,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+P'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEUPRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2126,7 +2126,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+B'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARLEFTRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2144,7 +2144,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+F'))) self.esm.setMapping(act, QsciScintilla.SCI_CHARRIGHTRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2163,7 +2163,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Home'))) self.esm.setMapping(act, QsciScintilla.SCI_VCHOMERECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2182,7 +2182,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+End'))) self.esm.setMapping(act, QsciScintilla.SCI_LINEENDRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2197,7 +2197,7 @@ 0, self.editorActGrp, 'vm_edit_extend_rect_selection_up_page') self.esm.setMapping(act, QsciScintilla.SCI_PAGEUPRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2215,7 +2215,7 @@ act.setAlternateShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+V'))) self.esm.setMapping(act, QsciScintilla.SCI_PAGEDOWNRECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) act = E5Action( @@ -2228,7 +2228,7 @@ 0, self.editorActGrp, 'vm_edit_duplicate_current_selection') self.esm.setMapping(act, QsciScintilla.SCI_SELECTIONDUPLICATE) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_SCROLLTOSTART"): @@ -2243,7 +2243,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Home'))) self.esm.setMapping(act, QsciScintilla.SCI_SCROLLTOSTART) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_SCROLLTOEND"): @@ -2258,7 +2258,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'End'))) self.esm.setMapping(act, QsciScintilla.SCI_SCROLLTOEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_VERTICALCENTRECARET"): @@ -2273,7 +2273,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+L'))) self.esm.setMapping(act, QsciScintilla.SCI_VERTICALCENTRECARET) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_WORDRIGHTEND"): @@ -2288,7 +2288,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_WORDRIGHTENDEXTEND"): @@ -2303,7 +2303,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Shift+Right'))) self.esm.setMapping(act, QsciScintilla.SCI_WORDRIGHTENDEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_WORDLEFTEND"): @@ -2315,7 +2315,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_end_previous_word') self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_WORDLEFTENDEXTEND"): @@ -2327,7 +2327,7 @@ 0, 0, self.editorActGrp, 'vm_edit_select_end_previous_word') self.esm.setMapping(act, QsciScintilla.SCI_WORDLEFTENDEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOME"): @@ -2342,7 +2342,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+A'))) self.esm.setMapping(act, QsciScintilla.SCI_HOME) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMEEXTEND"): @@ -2360,7 +2360,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Shift+A'))) self.esm.setMapping(act, QsciScintilla.SCI_HOME) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMERECTEXTEND"): @@ -2377,7 +2377,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Meta+Alt+Shift+A'))) self.esm.setMapping(act, QsciScintilla.SCI_HOMERECTEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMEDISPLAYEXTEND"): @@ -2395,7 +2395,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Ctrl+Shift+Left'))) self.esm.setMapping(act, QsciScintilla.SCI_HOMEDISPLAYEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMEWRAP"): @@ -2409,7 +2409,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_start_display_document_line') self.esm.setMapping(act, QsciScintilla.SCI_HOMEWRAP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_HOMEWRAPEXTEND"): @@ -2424,7 +2424,7 @@ self.editorActGrp, 'vm_edit_extend_selection_start_display_document_line') self.esm.setMapping(act, QsciScintilla.SCI_HOMEWRAPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_VCHOMEWRAP"): @@ -2441,7 +2441,7 @@ self.editorActGrp, 'vm_edit_move_first_visible_char_document_line') self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEWRAP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_VCHOMEWRAPEXTEND"): @@ -2458,7 +2458,7 @@ self.editorActGrp, 'vm_edit_extend_selection_first_visible_char_document_line') self.esm.setMapping(act, QsciScintilla.SCI_VCHOMEWRAPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_LINEENDWRAP"): @@ -2472,7 +2472,7 @@ 0, 0, self.editorActGrp, 'vm_edit_end_start_display_document_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEENDWRAP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_LINEENDWRAPEXTEND"): @@ -2487,7 +2487,7 @@ self.editorActGrp, 'vm_edit_extend_selection_end_display_document_line') self.esm.setMapping(act, QsciScintilla.SCI_LINEENDWRAPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_STUTTEREDPAGEUP"): @@ -2499,7 +2499,7 @@ 0, 0, self.editorActGrp, 'vm_edit_stuttered_move_up_page') self.esm.setMapping(act, QsciScintilla.SCI_STUTTEREDPAGEUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_STUTTEREDPAGEUPEXTEND"): @@ -2512,7 +2512,7 @@ self.editorActGrp, 'vm_edit_stuttered_extend_selection_up_page') self.esm.setMapping(act, QsciScintilla.SCI_STUTTEREDPAGEUPEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_STUTTEREDPAGEDOWN"): @@ -2524,7 +2524,7 @@ 0, 0, self.editorActGrp, 'vm_edit_stuttered_move_down_page') self.esm.setMapping(act, QsciScintilla.SCI_STUTTEREDPAGEDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_STUTTEREDPAGEDOWNEXTEND"): @@ -2537,7 +2537,7 @@ self.editorActGrp, 'vm_edit_stuttered_extend_selection_down_page') self.esm.setMapping(act, QsciScintilla.SCI_STUTTEREDPAGEDOWNEXTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_DELWORDRIGHTEND"): @@ -2552,7 +2552,7 @@ act.setShortcut(QKeySequence( QApplication.translate('ViewManager', 'Alt+Del'))) self.esm.setMapping(act, QsciScintilla.SCI_DELWORDRIGHTEND) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_MOVESELECTEDLINESUP"): @@ -2564,7 +2564,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_selection_up_one_line') self.esm.setMapping(act, QsciScintilla.SCI_MOVESELECTEDLINESUP) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) if hasattr(QsciScintilla, "SCI_MOVESELECTEDLINESDOWN"): @@ -2576,7 +2576,7 @@ 0, 0, self.editorActGrp, 'vm_edit_move_selection_down_one_line') self.esm.setMapping(act, QsciScintilla.SCI_MOVESELECTEDLINESDOWN) - act.triggered[()].connect(self.esm.map) + act.triggered.connect(self.esm.map) self.editActions.append(act) self.editorActGrp.setEnabled(False) @@ -2590,7 +2590,7 @@ 0, self.editActGrp, 'vm_edit_convert_selection_lower') self.esm.setMapping(self.editLowerCaseAct, QsciScintilla.SCI_LOWERCASE) - self.editLowerCaseAct.triggered[()].connect(self.esm.map) + self.editLowerCaseAct.triggered.connect(self.esm.map) self.editActions.append(self.editLowerCaseAct) self.editUpperCaseAct = E5Action( @@ -2603,7 +2603,7 @@ 0, self.editActGrp, 'vm_edit_convert_selection_upper') self.esm.setMapping(self.editUpperCaseAct, QsciScintilla.SCI_UPPERCASE) - self.editUpperCaseAct.triggered[()].connect(self.esm.map) + self.editUpperCaseAct.triggered.connect(self.esm.map) self.editActions.append(self.editUpperCaseAct) def initEditMenu(self): @@ -2747,7 +2747,7 @@ """ dialog is shown to enter the searchtext and options""" """ for the search.</p>""" )) - self.searchAct.triggered[()].connect(self.__search) + self.searchAct.triggered.connect(self.__search) self.searchActions.append(self.searchAct) self.searchNextAct = E5Action( @@ -2768,7 +2768,7 @@ """ editor. The previously entered searchtext and options are""" """ reused.</p>""" )) - self.searchNextAct.triggered[()].connect(self.__searchWidget.findNext) + self.searchNextAct.triggered.connect(self.__searchWidget.findNext) self.searchActions.append(self.searchNextAct) self.searchPrevAct = E5Action( @@ -2788,7 +2788,7 @@ """ editor. The previously entered searchtext and options are""" """ reused.</p>""" )) - self.searchPrevAct.triggered[()].connect(self.__searchWidget.findPrev) + self.searchPrevAct.triggered.connect(self.__searchWidget.findPrev) self.searchActions.append(self.searchPrevAct) self.searchClearMarkersAct = E5Action( @@ -2806,7 +2806,7 @@ """<b>Clear search markers</b>""" """<p>Clear all displayed search markers.</p>""" )) - self.searchClearMarkersAct.triggered[()].connect( + self.searchClearMarkersAct.triggered.connect( self.__searchClearMarkers) self.searchActions.append(self.searchClearMarkersAct) @@ -2830,7 +2830,7 @@ """<p>Search the next occurrence of the current word of the""" """ current editor.</p>""" )) - self.searchNextWordAct.triggered[()].connect(self.__findNextWord) + self.searchNextWordAct.triggered.connect(self.__findNextWord) self.searchActions.append(self.searchNextWordAct) self.searchPrevWordAct = E5Action( @@ -2853,7 +2853,7 @@ """<p>Search the previous occurrence of the current word of the""" """ current editor.</p>""" )) - self.searchPrevWordAct.triggered[()].connect(self.__findPrevWord) + self.searchPrevWordAct.triggered.connect(self.__findPrevWord) self.searchActions.append(self.searchPrevWordAct) self.replaceAct = E5Action( @@ -2872,7 +2872,7 @@ """ A dialog is shown to enter the searchtext, the replacement""" """ text and options for the search and replace.</p>""" )) - self.replaceAct.triggered[()].connect(self.__replace) + self.replaceAct.triggered.connect(self.__replace) self.searchActions.append(self.replaceAct) self.quickSearchAct = E5Action( @@ -2893,7 +2893,7 @@ """ is already active and contains text, it searches for the""" """ next occurrence of this text.</p>""" )) - self.quickSearchAct.triggered[()].connect(self.__quickSearch) + self.quickSearchAct.triggered.connect(self.__quickSearch) self.searchActions.append(self.quickSearchAct) self.quickSearchBackAct = E5Action( @@ -2913,7 +2913,7 @@ """<p>This searches the previous occurrence of the quicksearch""" """ text.</p>""" )) - self.quickSearchBackAct.triggered[()].connect(self.__quickSearchPrev) + self.quickSearchBackAct.triggered.connect(self.__quickSearchPrev) self.searchActions.append(self.quickSearchBackAct) self.quickSearchExtendAct = E5Action( @@ -2933,7 +2933,7 @@ """<p>This extends the quicksearch text to the end of the word""" """ currently found.</p>""" )) - self.quickSearchExtendAct.triggered[()].connect( + self.quickSearchExtendAct.triggered.connect( self.__quickSearchExtend) self.searchActions.append(self.quickSearchExtendAct) @@ -2953,7 +2953,7 @@ """<p>Go to a specific line of text in the current editor.""" """ A dialog is shown to enter the linenumber.</p>""" )) - self.gotoAct.triggered[()].connect(self.__goto) + self.gotoAct.triggered.connect(self.__goto) self.searchActions.append(self.gotoAct) self.gotoBraceAct = E5Action( @@ -2971,7 +2971,7 @@ """<b>Goto Brace</b>""" """<p>Go to the matching brace in the current editor.</p>""" )) - self.gotoBraceAct.triggered[()].connect(self.__gotoBrace) + self.gotoBraceAct.triggered.connect(self.__gotoBrace) self.searchActions.append(self.gotoBraceAct) self.gotoLastEditAct = E5Action( @@ -2991,7 +2991,7 @@ """<p>Go to the location of the last edit in the current""" """ editor.</p>""" )) - self.gotoLastEditAct.triggered[()].connect(self.__gotoLastEditPosition) + self.gotoLastEditAct.triggered.connect(self.__gotoLastEditPosition) self.searchActions.append(self.gotoLastEditAct) self.gotoPreviousDefAct = E5Action( @@ -3014,7 +3014,7 @@ """<p>Goes to the line of the previous method or class""" """ definition and highlights the name.</p>""" )) - self.gotoPreviousDefAct.triggered[()].connect( + self.gotoPreviousDefAct.triggered.connect( self.__gotoPreviousMethodClass) self.searchActions.append(self.gotoPreviousDefAct) @@ -3034,7 +3034,7 @@ """<p>Goes to the line of the next method or class definition""" """ and highlights the name.</p>""" )) - self.gotoNextDefAct.triggered[()].connect(self.__gotoNextMethodClass) + self.gotoNextDefAct.triggered.connect(self.__gotoNextMethodClass) self.searchActions.append(self.gotoNextDefAct) self.searchActGrp.setEnabled(False) @@ -3056,7 +3056,7 @@ """ or the project. A dialog is shown to enter the searchtext""" """ and options for the search and to display the result.</p>""" )) - self.searchFilesAct.triggered[()].connect(self.__searchFiles) + self.searchFilesAct.triggered.connect(self.__searchFiles) self.searchActions.append(self.searchFilesAct) self.replaceFilesAct = E5Action( @@ -3076,7 +3076,7 @@ """ the searchtext, the replacement text and options for the""" """ search and to display the result.</p>""" )) - self.replaceFilesAct.triggered[()].connect(self.__replaceFiles) + self.replaceFilesAct.triggered.connect(self.__replaceFiles) self.searchActions.append(self.replaceFilesAct) self.searchOpenFilesAct = E5Action( @@ -3097,7 +3097,7 @@ """ A dialog is shown to enter the searchtext""" """ and options for the search and to display the result.</p>""" )) - self.searchOpenFilesAct.triggered[()].connect(self.__searchOpenFiles) + self.searchOpenFilesAct.triggered.connect(self.__searchOpenFiles) self.searchActions.append(self.searchOpenFilesAct) self.replaceOpenFilesAct = E5Action( @@ -3118,7 +3118,7 @@ """ the searchtext, the replacement text and options for the""" """ search and to display the result.</p>""" )) - self.replaceOpenFilesAct.triggered[()].connect(self.__replaceOpenFiles) + self.replaceOpenFilesAct.triggered.connect(self.__replaceOpenFiles) self.searchActions.append(self.replaceOpenFilesAct) def initSearchToolbars(self, toolbarManager): @@ -3248,7 +3248,7 @@ """<b>Zoom in</b>""" """<p>Zoom in on the text. This makes the text bigger.</p>""" )) - self.zoomInAct.triggered[()].connect(self.__zoomIn) + self.zoomInAct.triggered.connect(self.__zoomIn) self.viewActions.append(self.zoomInAct) self.zoomOutAct = E5Action( @@ -3267,7 +3267,7 @@ """<b>Zoom out</b>""" """<p>Zoom out on the text. This makes the text smaller.</p>""" )) - self.zoomOutAct.triggered[()].connect(self.__zoomOut) + self.zoomOutAct.triggered.connect(self.__zoomOut) self.viewActions.append(self.zoomOutAct) self.zoomResetAct = E5Action( @@ -3286,7 +3286,7 @@ """<p>Reset the zoom of the text. """ """This sets the zoom factor to 100%.</p>""" )) - self.zoomResetAct.triggered[()].connect(self.__zoomReset) + self.zoomResetAct.triggered.connect(self.__zoomReset) self.viewActions.append(self.zoomResetAct) self.zoomToAct = E5Action( @@ -3305,7 +3305,7 @@ """<p>Zoom the text. This opens a dialog where the""" """ desired size can be entered.</p>""" )) - self.zoomToAct.triggered[()].connect(self.__zoom) + self.zoomToAct.triggered.connect(self.__zoom) self.viewActions.append(self.zoomToAct) self.toggleAllAct = E5Action( @@ -3319,7 +3319,7 @@ """<b>Toggle all folds</b>""" """<p>Toggle all folds of the current editor.</p>""" )) - self.toggleAllAct.triggered[()].connect(self.__toggleAll) + self.toggleAllAct.triggered.connect(self.__toggleAll) self.viewActions.append(self.toggleAllAct) self.toggleAllChildrenAct = E5Action( @@ -3336,7 +3336,7 @@ """<p>Toggle all folds of the current editor including""" """ all children.</p>""" )) - self.toggleAllChildrenAct.triggered[()].connect( + self.toggleAllChildrenAct.triggered.connect( self.__toggleAllChildren) self.viewActions.append(self.toggleAllChildrenAct) @@ -3352,7 +3352,7 @@ """<p>Toggle the folds of the current line of the current""" """ editor.</p>""" )) - self.toggleCurrentAct.triggered[()].connect(self.__toggleCurrent) + self.toggleCurrentAct.triggered.connect(self.__toggleCurrent) self.viewActions.append(self.toggleCurrentAct) self.unhighlightAct = E5Action( @@ -3368,7 +3368,7 @@ """<b>Remove all highlights</b>""" """<p>Remove the highlights of all editors.</p>""" )) - self.unhighlightAct.triggered[()].connect(self.unhighlight) + self.unhighlightAct.triggered.connect(self.unhighlight) self.viewActions.append(self.unhighlightAct) self.newDocumentViewAct = E5Action( @@ -3385,7 +3385,7 @@ """ the same document. However, the cursors may be positioned""" """ independently.</p>""" )) - self.newDocumentViewAct.triggered[()].connect(self.__newDocumentView) + self.newDocumentViewAct.triggered.connect(self.__newDocumentView) self.viewActions.append(self.newDocumentViewAct) self.newDocumentSplitViewAct = E5Action( @@ -3405,7 +3405,7 @@ """ Both views show the same document. However, the cursors may""" """ be positioned independently.</p>""" )) - self.newDocumentSplitViewAct.triggered[()].connect( + self.newDocumentSplitViewAct.triggered.connect( self.__newDocumentSplitView) self.viewActions.append(self.newDocumentSplitViewAct) @@ -3421,7 +3421,7 @@ """<b>Split view</b>""" """<p>Add a split to the view.</p>""" )) - self.splitViewAct.triggered[()].connect(self.__splitView) + self.splitViewAct.triggered.connect(self.__splitView) self.viewActions.append(self.splitViewAct) self.splitOrientationAct = E5Action( @@ -3451,7 +3451,7 @@ """<b>Remove split</b>""" """<p>Remove the current split.</p>""" )) - self.splitRemoveAct.triggered[()].connect(self.removeSplit) + self.splitRemoveAct.triggered.connect(self.removeSplit) self.viewActions.append(self.splitRemoveAct) self.nextSplitAct = E5Action( @@ -3468,7 +3468,7 @@ """<b>Next split</b>""" """<p>Move to the next split.</p>""" )) - self.nextSplitAct.triggered[()].connect(self.nextSplit) + self.nextSplitAct.triggered.connect(self.nextSplit) self.viewActions.append(self.nextSplitAct) self.prevSplitAct = E5Action( @@ -3484,7 +3484,7 @@ """<b>Previous split</b>""" """<p>Move to the previous split.</p>""" )) - self.prevSplitAct.triggered[()].connect(self.prevSplit) + self.prevSplitAct.triggered.connect(self.prevSplit) self.viewActions.append(self.prevSplitAct) self.previewAct = E5Action( @@ -3592,7 +3592,7 @@ """<b>Start Macro Recording</b>""" """<p>Start recording editor commands into a new macro.</p>""" )) - self.macroStartRecAct.triggered[()].connect(self.__macroStartRecording) + self.macroStartRecAct.triggered.connect(self.__macroStartRecording) self.macroActions.append(self.macroStartRecAct) self.macroStopRecAct = E5Action( @@ -3606,7 +3606,7 @@ """<b>Stop Macro Recording</b>""" """<p>Stop recording editor commands into a new macro.</p>""" )) - self.macroStopRecAct.triggered[()].connect(self.__macroStopRecording) + self.macroStopRecAct.triggered.connect(self.__macroStopRecording) self.macroActions.append(self.macroStopRecAct) self.macroRunAct = E5Action( @@ -3620,7 +3620,7 @@ """<b>Run Macro</b>""" """<p>Run a previously recorded editor macro.</p>""" )) - self.macroRunAct.triggered[()].connect(self.__macroRun) + self.macroRunAct.triggered.connect(self.__macroRun) self.macroActions.append(self.macroRunAct) self.macroDeleteAct = E5Action( @@ -3634,7 +3634,7 @@ """<b>Delete Macro</b>""" """<p>Delete a previously recorded editor macro.</p>""" )) - self.macroDeleteAct.triggered[()].connect(self.__macroDelete) + self.macroDeleteAct.triggered.connect(self.__macroDelete) self.macroActions.append(self.macroDeleteAct) self.macroLoadAct = E5Action( @@ -3648,7 +3648,7 @@ """<b>Load Macro</b>""" """<p>Load an editor macro from a file.</p>""" )) - self.macroLoadAct.triggered[()].connect(self.__macroLoad) + self.macroLoadAct.triggered.connect(self.__macroLoad) self.macroActions.append(self.macroLoadAct) self.macroSaveAct = E5Action( @@ -3662,7 +3662,7 @@ """<b>Save Macro</b>""" """<p>Save a previously recorded editor macro to a file.</p>""" )) - self.macroSaveAct.triggered[()].connect(self.__macroSave) + self.macroSaveAct.triggered.connect(self.__macroSave) self.macroActions.append(self.macroSaveAct) self.macroActGrp.setEnabled(False) @@ -3706,7 +3706,7 @@ """<p>Toggle a bookmark at the current line of the current""" """ editor.</p>""" )) - self.bookmarkToggleAct.triggered[()].connect(self.__toggleBookmark) + self.bookmarkToggleAct.triggered.connect(self.__toggleBookmark) self.bookmarkActions.append(self.bookmarkToggleAct) self.bookmarkNextAct = E5Action( @@ -3724,7 +3724,7 @@ """<b>Next Bookmark</b>""" """<p>Go to next bookmark of the current editor.</p>""" )) - self.bookmarkNextAct.triggered[()].connect(self.__nextBookmark) + self.bookmarkNextAct.triggered.connect(self.__nextBookmark) self.bookmarkActions.append(self.bookmarkNextAct) self.bookmarkPreviousAct = E5Action( @@ -3742,7 +3742,7 @@ """<b>Previous Bookmark</b>""" """<p>Go to previous bookmark of the current editor.</p>""" )) - self.bookmarkPreviousAct.triggered[()].connect(self.__previousBookmark) + self.bookmarkPreviousAct.triggered.connect(self.__previousBookmark) self.bookmarkActions.append(self.bookmarkPreviousAct) self.bookmarkClearAct = E5Action( @@ -3759,7 +3759,7 @@ """<b>Clear Bookmarks</b>""" """<p>Clear bookmarks of all editors.</p>""" )) - self.bookmarkClearAct.triggered[()].connect(self.__clearAllBookmarks) + self.bookmarkClearAct.triggered.connect(self.__clearAllBookmarks) self.bookmarkActions.append(self.bookmarkClearAct) self.syntaxErrorGotoAct = E5Action( @@ -3775,7 +3775,7 @@ """<b>Goto Syntax Error</b>""" """<p>Go to next syntax error of the current editor.</p>""" )) - self.syntaxErrorGotoAct.triggered[()].connect(self.__gotoSyntaxError) + self.syntaxErrorGotoAct.triggered.connect(self.__gotoSyntaxError) self.bookmarkActions.append(self.syntaxErrorGotoAct) self.syntaxErrorClearAct = E5Action( @@ -3790,7 +3790,7 @@ """<b>Clear Syntax Errors</b>""" """<p>Clear syntax errors of all editors.</p>""" )) - self.syntaxErrorClearAct.triggered[()].connect( + self.syntaxErrorClearAct.triggered.connect( self.__clearAllSyntaxErrors) self.bookmarkActions.append(self.syntaxErrorClearAct) @@ -3808,7 +3808,7 @@ """<p>Go to next line of the current editor""" """ having a pyflakes warning.</p>""" )) - self.warningsNextAct.triggered[()].connect(self.__nextWarning) + self.warningsNextAct.triggered.connect(self.__nextWarning) self.bookmarkActions.append(self.warningsNextAct) self.warningsPreviousAct = E5Action( @@ -3826,7 +3826,7 @@ """<p>Go to previous line of the current editor""" """ having a pyflakes warning.</p>""" )) - self.warningsPreviousAct.triggered[()].connect(self.__previousWarning) + self.warningsPreviousAct.triggered.connect(self.__previousWarning) self.bookmarkActions.append(self.warningsPreviousAct) self.warningsClearAct = E5Action( @@ -3841,7 +3841,7 @@ """<b>Clear Warning Messages</b>""" """<p>Clear pyflakes warning messages of all editors.</p>""" )) - self.warningsClearAct.triggered[()].connect(self.__clearAllWarnings) + self.warningsClearAct.triggered.connect(self.__clearAllWarnings) self.bookmarkActions.append(self.warningsClearAct) self.notcoveredNextAct = E5Action( @@ -3858,7 +3858,7 @@ """<p>Go to next line of the current editor marked as not""" """ covered.</p>""" )) - self.notcoveredNextAct.triggered[()].connect(self.__nextUncovered) + self.notcoveredNextAct.triggered.connect(self.__nextUncovered) self.bookmarkActions.append(self.notcoveredNextAct) self.notcoveredPreviousAct = E5Action( @@ -3876,7 +3876,7 @@ """<p>Go to previous line of the current editor marked""" """ as not covered.</p>""" )) - self.notcoveredPreviousAct.triggered[()].connect( + self.notcoveredPreviousAct.triggered.connect( self.__previousUncovered) self.bookmarkActions.append(self.notcoveredPreviousAct) @@ -3893,7 +3893,7 @@ """<b>Next Task</b>""" """<p>Go to next line of the current editor having a task.</p>""" )) - self.taskNextAct.triggered[()].connect(self.__nextTask) + self.taskNextAct.triggered.connect(self.__nextTask) self.bookmarkActions.append(self.taskNextAct) self.taskPreviousAct = E5Action( @@ -3911,7 +3911,7 @@ """<p>Go to previous line of the current editor having a""" """ task.</p>""" )) - self.taskPreviousAct.triggered[()].connect(self.__previousTask) + self.taskPreviousAct.triggered.connect(self.__previousTask) self.bookmarkActions.append(self.taskPreviousAct) self.changeNextAct = E5Action( @@ -3928,7 +3928,7 @@ """<p>Go to next line of the current editor having a change""" """ marker.</p>""" )) - self.changeNextAct.triggered[()].connect(self.__nextChange) + self.changeNextAct.triggered.connect(self.__nextChange) self.bookmarkActions.append(self.changeNextAct) self.changePreviousAct = E5Action( @@ -3946,7 +3946,7 @@ """<p>Go to previous line of the current editor having""" """ a change marker.</p>""" )) - self.changePreviousAct.triggered[()].connect(self.__previousChange) + self.changePreviousAct.triggered.connect(self.__previousChange) self.bookmarkActions.append(self.changePreviousAct) self.bookmarkActGrp.setEnabled(False) @@ -4054,7 +4054,7 @@ """<b>Check spelling</b>""" """<p>Perform a spell check of the current editor.</p>""" )) - self.spellCheckAct.triggered[()].connect(self.__spellCheck) + self.spellCheckAct.triggered.connect(self.__spellCheck) self.spellingActions.append(self.spellCheckAct) self.autoSpellCheckAct = E5Action( @@ -4074,7 +4074,7 @@ )) self.autoSpellCheckAct.setChecked( Preferences.getEditor("AutoSpellCheckingEnabled")) - self.autoSpellCheckAct.triggered[()].connect( + self.autoSpellCheckAct.triggered.connect( self.__setAutoSpellChecking) self.spellingActions.append(self.autoSpellCheckAct) @@ -4145,6 +4145,7 @@ ## Methods and slots that deal with file and window handling ################################################################## + @pyqtSlot() def openFiles(self, prog=None): """ Public slot to open some files. @@ -4564,6 +4565,7 @@ pixmap = QPixmap() return pixmap + @pyqtSlot() def unhighlight(self, current=False): """ Public method to switch off all highlights. @@ -5582,6 +5584,8 @@ aw.zoomTo(0) self.sbZoom.setValue(aw.getZoom()) + @pyqtSlot() + @pyqtSlot(int) def __zoom(self, value=None): """ Private method to handle the zoom action.