2015-10-28 19:21:55 +01:00
|
|
|
#ifndef DIALOG_H
|
|
|
|
|
#define DIALOG_H
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
2015-11-13 15:13:44 +01:00
|
|
|
#include <QSharedPointer>
|
|
|
|
|
|
|
|
|
|
#include "data/person.h"
|
2015-10-28 19:21:55 +01:00
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class Dialog;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class Dialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit Dialog(QWidget *parent = 0);
|
|
|
|
|
~Dialog();
|
|
|
|
|
|
2015-11-13 15:13:44 +01:00
|
|
|
void setData(QSharedPointer<Person> data);
|
|
|
|
|
|
2015-10-28 19:21:55 +01:00
|
|
|
private slots:
|
|
|
|
|
void on_buttonBox_accepted();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::Dialog *ui;
|
2015-11-13 15:13:44 +01:00
|
|
|
QSharedPointer<Person> m_data;
|
2015-10-28 19:21:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // DIALOG_H
|