#include "defaultformhandler.h" DefaultFormHandler::DefaultFormHandler() { m_dialog = new FormDialog(); } DefaultFormHandler::~DefaultFormHandler() { delete m_dialog; } void DefaultFormHandler::showForm(IForm *formWidget) { m_dialog->setForm(formWidget); m_dialog->setModal(true); m_dialog->show(); }