int RootController::presentDialog(QDialog *dialog) { setDismissable(false); presentWidget(dialog, false); const int ret = dialog->exec(); setDismissable(true); dismissWidget(); return ret; }
void RootController::dismissAllWidgets() { if(!m_dismissable) return; while(m_stack.size() > 1) dismissWidget(); }