Implemented camp wizard and service methods for camp calculation.
This commit is contained in:
+6
-1
@@ -10,9 +10,14 @@ CampGrid::CampGrid(QWidget *parent) : GridForm<CampData>(parent)
|
||||
void CampGrid::handleNewRecord()
|
||||
{
|
||||
CampService srv;
|
||||
CampDataPtr data = srv.create();
|
||||
CampWizard *wizard = new CampWizard();
|
||||
wizard->setAttribute(Qt::WA_DeleteOnClose);
|
||||
wizard->setData(srv.create());
|
||||
wizard->setData(data);
|
||||
|
||||
connect(wizard, &QDialog::accepted, [this, data](){
|
||||
addRow(data);
|
||||
});
|
||||
|
||||
wizard->show();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user