MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / recentFileClicked

Method recentFileClicked

src/gui/widgets/home_screen_widget.cpp:286–293  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void HomeScreenWidgetDesktop::recentFileClicked(QListWidgetItem* item)
287{
288 setEnabled(false);
289 QApplication::processEvents(QEventLoop::ExcludeUserInputEvents, 100 /* ms */);
290 QString path = item->data(pathRole()).toString();
291 controller->getWindow()->openPath(path);
292 setEnabled(true);
293}
294
295void HomeScreenWidgetDesktop::paintEvent(QPaintEvent*)
296{

Callers

nothing calls this directly

Calls 4

openPathMethod · 0.80
getWindowMethod · 0.80
toStringMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected