| 284 | } |
| 285 | |
| 286 | void 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 | |
| 295 | void HomeScreenWidgetDesktop::paintEvent(QPaintEvent*) |
| 296 | { |