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