diff -r c83dcb7c6147 -r 5e1afd1577b9 QScintilla/MiniEditor.py --- a/QScintilla/MiniEditor.py Tue Mar 05 19:50:32 2019 +0100 +++ b/QScintilla/MiniEditor.py Wed Mar 06 18:44:29 2019 +0100 @@ -24,7 +24,7 @@ from E5Gui import E5MessageBox, E5FileDialog from E5Gui.E5MainWindow import E5MainWindow -from .QsciScintillaCompat import QsciScintillaCompat +from .QsciScintillaCompat import QsciScintillaCompat, QSCINTILLA_VERSION import UI.PixmapCache import UI.Config @@ -1296,6 +1296,19 @@ act.triggered.connect(self.esm.map) self.editActions.append(act) + if QSCINTILLA_VERSION() >= 0x020B00: + act = E5Action( + QCoreApplication.translate('ViewManager', + 'Reverse selected lines'), + QCoreApplication.translate('ViewManager', + 'Reverse selected lines'), + QKeySequence(QCoreApplication.translate('ViewManager', + 'Meta+Alt+R')), + 0, self.editorActGrp, 'vm_edit_reverse selected_lines') + self.esm.setMapping(act, QsciScintilla.SCI_LINEREVERSE) + act.triggered.connect(self.esm.map) + self.editActions.append(act) + act = E5Action( QCoreApplication.translate('ViewManager', 'Cut current line'), QCoreApplication.translate('ViewManager', 'Cut current line'), @@ -2663,6 +2676,9 @@ Preferences.getEditor("CaretLineAlwaysVisible")) self.caretWidth = Preferences.getEditor("CaretWidth") self.__textEdit.setCaretWidth(self.caretWidth) + self.caretLineFrameWidth = Preferences.getEditor("CaretLineFrameWidth") + if QSCINTILLA_VERSION() >= 0x020B00: + self.__textEdit.setCaretLineFrameWidth(self.caretLineFrameWidth) self.useMonospaced = Preferences.getEditor("UseMonospacedFont") self.__setMonospaced(self.useMonospaced) edgeMode = Preferences.getEditor("EdgeMode") @@ -2677,6 +2693,8 @@ self.__textEdit.setWrapVisualFlags(wrapVisualFlag, wrapVisualFlag) self.__textEdit.setWrapIndentMode( Preferences.getEditor("WrapIndentMode")) + self.__textEdit.setWrapStartIndent( + Preferences.getEditor("WrapStartIndent")) self.searchIndicator = QsciScintilla.INDIC_CONTAINER self.__textEdit.indicatorDefine(