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

Method restorePosition

src/dialogs/FindReplaceDialog.cpp:601–614  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

599}
600
601void FindReplaceDialog::restorePosition()
602{
603 qInfo(Q_FUNC_INFO);
604
605 ApplicationSettings settings;
606
607 if (settings.centerSearchDialog()) {
608 const QPoint centerPoint = parentWidget()->geometry().center();
609 move(centerPoint - rect().center());
610 }
611 else {
612 move(lastClosedPosition);
613 }
614}
615
616int FindReplaceDialog::computeSearchFlags()
617{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected