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

Method positionWidget

src/widgets/QuickFindWidget.cpp:281–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281void QuickFindWidget::positionWidget()
282{
283 int usableWidth = editor->width();
284
285 // Account for the scrollbar as the quick find will be underneath if the scrollbar is visible
286 if (editor->verticalScrollBar() && editor->verticalScrollBar()->isVisible()) {
287 usableWidth -= editor->verticalScrollBar()->width();
288 }
289
290 QPoint position = QPoint(usableWidth - width(), 0);
291
292 move(editor->mapTo(parentWidget(), position));
293}
294
295void QuickFindWidget::prepareSearch()
296{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected