eric6/E5Gui/E5TextEditSearchWidget.py

changeset 7252
c5e3705073eb
parent 7229
53054eb5b15a
child 7286
7eb04391adf7
child 7360
9190402e4505
equal deleted inserted replaced
7251:bc5b1b00560a 7252:c5e3705073eb
8 """ 8 """
9 9
10 10
11 from PyQt5.QtCore import pyqtSlot, Qt, QMetaObject, QSize 11 from PyQt5.QtCore import pyqtSlot, Qt, QMetaObject, QSize
12 from PyQt5.QtGui import QPalette, QBrush, QColor, QTextDocument, QTextCursor 12 from PyQt5.QtGui import QPalette, QBrush, QColor, QTextDocument, QTextCursor
13 from PyQt5.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QLabel, \ 13 from PyQt5.QtWidgets import (
14 QComboBox, QCheckBox, QToolButton, QSizePolicy 14 QWidget, QVBoxLayout, QHBoxLayout, QLabel, QComboBox, QCheckBox,
15 QToolButton, QSizePolicy
16 )
15 17
16 from E5Gui.E5ComboBox import E5ClearableComboBox 18 from E5Gui.E5ComboBox import E5ClearableComboBox
17 19
18 import UI.PixmapCache 20 import UI.PixmapCache
19 21
38 40
39 self.__textedit = None 41 self.__textedit = None
40 self.__texteditType = "" 42 self.__texteditType = ""
41 self.__findBackwards = True 43 self.__findBackwards = True
42 44
43 self.__defaultBaseColor = \ 45 self.__defaultBaseColor = (
44 self.findtextCombo.lineEdit().palette().color(QPalette.Base) 46 self.findtextCombo.lineEdit().palette().color(QPalette.Base)
45 self.__defaultTextColor = \ 47 )
48 self.__defaultTextColor = (
46 self.findtextCombo.lineEdit().palette().color(QPalette.Text) 49 self.findtextCombo.lineEdit().palette().color(QPalette.Text)
50 )
47 51
48 self.findHistory = [] 52 self.findHistory = []
49 53
50 self.findtextCombo.setCompleter(None) 54 self.findtextCombo.setCompleter(None)
51 self.findtextCombo.lineEdit().returnPressed.connect( 55 self.findtextCombo.lineEdit().returnPressed.connect(

eric ide

mercurial