MCPcopy Create free account
hub / github.com/dail8859/NotepadNext / setEditor

Method setEditor

src/widgets/QuickFindWidget.cpp:64–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64void QuickFindWidget::setEditor(ScintillaNext *editor)
65{
66 if (this->editor != Q_NULLPTR) {
67 disconnect(editor, &ScintillaNext::resized, this, &QuickFindWidget::positionWidget);
68 }
69
70 connect(editor, &ScintillaNext::resized, this, &QuickFindWidget::positionWidget);
71
72 this->editor = editor;
73
74 if (finder == Q_NULLPTR) {
75 finder = new Finder(editor);
76 finder->setWrap(true); // Always wrap the search
77 }
78 else {
79 finder->setEditor(editor);
80 }
81
82 initializeEditorIndicator();
83
84 positionWidget();
85}
86
87bool QuickFindWidget::eventFilter(QObject *obj, QEvent *event)
88{

Callers

nothing calls this directly

Calls 1

setWrapMethod · 0.80

Tested by

no test coverage detected