MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / findWindow

Method findWindow

Telegram/SourceFiles/core/application.cpp:1496–1508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1494}
1495
1496Window::Controller *Application::findWindow(
1497 not_null<QWidget*> widget) const {
1498 const auto window = widget->window();
1499 if (_lastActiveWindow && _lastActiveWindow->widget() == window) {
1500 return _lastActiveWindow;
1501 }
1502 for (const auto &[id, controller] : _windows) {
1503 if (controller->widget() == window) {
1504 return controller.get();
1505 }
1506 }
1507 return nullptr;
1508}
1509
1510Window::Controller *Application::activeWindow() const {
1511 return _lastActiveWindow;

Callers 14

EditFileCaptionBoxFunction · 0.45
SelectFutureOwnerboxFunction · 0.45
CaptionBoxFunction · 0.45
showFinishedMethod · 0.45
ShowReportMessageBoxFunction · 0.45
rowClickedMethod · 0.45
CollectWindowsFunction · 0.45
ensureMediaPreviewMethod · 0.45
PasskeysNoneBoxFunction · 0.45
FillPeerQrBoxFunction · 0.45
FindSessionControllerFunction · 0.45

Calls 3

windowMethod · 0.45
widgetMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected