eric6/QScintilla/Editor.py

changeset 7224
18519d376be4
parent 7202
d2f2a1fe0129
child 7225
aa36a9414d99
equal deleted inserted replaced
7222:fc6530b432ad 7224:18519d376be4
16 pyqtSlot, QCryptographicHash, QEvent, QDateTime, QRegExp, Qt, QPoint 16 pyqtSlot, QCryptographicHash, QEvent, QDateTime, QRegExp, Qt, QPoint
17 from PyQt5.QtGui import QCursor, QPalette, QFont, QPixmap, QPainter 17 from PyQt5.QtGui import QCursor, QPalette, QFont, QPixmap, QPainter
18 from PyQt5.QtWidgets import QLineEdit, QActionGroup, QDialog, QInputDialog, \ 18 from PyQt5.QtWidgets import QLineEdit, QActionGroup, QDialog, QInputDialog, \
19 QApplication, QMenu 19 QApplication, QMenu
20 from PyQt5.QtPrintSupport import QPrinter, QPrintDialog, QAbstractPrintDialog 20 from PyQt5.QtPrintSupport import QPrinter, QPrintDialog, QAbstractPrintDialog
21 from PyQt5.Qsci import QsciScintilla, QsciMacro, QsciStyledText 21 from PyQt5.Qsci import QsciScintilla, QsciMacro, QsciStyledText, \
22 QSCINTILLA_VERSION
22 23
23 from E5Gui.E5Application import e5App 24 from E5Gui.E5Application import e5App
24 from E5Gui import E5FileDialog, E5MessageBox 25 from E5Gui import E5FileDialog, E5MessageBox
25 from E5Utilities.E5Cache import E5Cache 26 from E5Utilities.E5Cache import E5Cache
26 27
4401 self.setCaretLineAlwaysVisible( 4402 self.setCaretLineAlwaysVisible(
4402 Preferences.getEditor("CaretLineAlwaysVisible")) 4403 Preferences.getEditor("CaretLineAlwaysVisible"))
4403 self.caretWidth = Preferences.getEditor("CaretWidth") 4404 self.caretWidth = Preferences.getEditor("CaretWidth")
4404 self.setCaretWidth(self.caretWidth) 4405 self.setCaretWidth(self.caretWidth)
4405 self.caretLineFrameWidth = Preferences.getEditor("CaretLineFrameWidth") 4406 self.caretLineFrameWidth = Preferences.getEditor("CaretLineFrameWidth")
4406 self.setCaretLineFrameWidth(self.caretLineFrameWidth) 4407 if QSCINTILLA_VERSION() >= 0x020B00:
4408 self.setCaretLineFrameWidth(self.caretLineFrameWidth)
4407 self.useMonospaced = Preferences.getEditor("UseMonospacedFont") 4409 self.useMonospaced = Preferences.getEditor("UseMonospacedFont")
4408 self.setMonospaced(self.useMonospaced) 4410 self.setMonospaced(self.useMonospaced)
4409 edgeMode = Preferences.getEditor("EdgeMode") 4411 edgeMode = Preferences.getEditor("EdgeMode")
4410 edge = QsciScintilla.EdgeMode(edgeMode) 4412 edge = QsciScintilla.EdgeMode(edgeMode)
4411 self.setEdgeMode(edge) 4413 self.setEdgeMode(edge)

eric ide

mercurial