| 504 | } |
| 505 | |
| 506 | bool ProjectDialogProvider::userWantsReopen() |
| 507 | { |
| 508 | Q_ASSERT(d); |
| 509 | return (KMessageBox::questionTwoActions( |
| 510 | d->m_core->uiControllerInternal()->defaultMainWindow(), i18n("Reopen the current project?"), {}, |
| 511 | KGuiItem(i18nc("@action:button", "Reopen"), QStringLiteral("view-refresh")), KStandardGuiItem::cancel()) |
| 512 | == KMessageBox::SecondaryAction) |
| 513 | ? false |
| 514 | : true; |
| 515 | } |
| 516 | |
| 517 | void ProjectController::setDialogProvider(IProjectDialogProvider* dialog) |
| 518 | { |
no test coverage detected