You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
526 B
C++

#ifndef FORMDIALOG_H
#define FORMDIALOG_H
#include <QDialog>
#include <QWidget>
#include "iform.h"
namespace Ui {
class FormDialog;
}
class FormDialog : public QDialog
{
Q_OBJECT
public:
explicit FormDialog(QWidget *parent = 0);
~FormDialog();
void setForm(IForm *formWidget);
private:
bool m_formSet;
IForm *m_form;
Ui::FormDialog *ui;
private slots:
void onValidationError(const QString &message);
// QDialog interface
public slots:
void accept();
};
#endif // FORMDIALOG_H