|
|
@ -185,7 +185,16 @@ CampWizard::CampWizard(QWidget *parent) :
|
|
|
|
m_saleBinder->bindToUi();
|
|
|
|
m_saleBinder->bindToUi();
|
|
|
|
|
|
|
|
|
|
|
|
ui->tabPeople->setModel(m_peopleModel);
|
|
|
|
ui->tabPeople->setModel(m_peopleModel);
|
|
|
|
|
|
|
|
ui->tabPeople->hideColumn(0);
|
|
|
|
|
|
|
|
ui->tabPeople->hideColumn(1);
|
|
|
|
|
|
|
|
ui->tabPeople->hideColumn(4);
|
|
|
|
|
|
|
|
ui->tabPeople->horizontalHeader()->setSectionResizeMode(2, QHeaderView::Stretch);
|
|
|
|
|
|
|
|
|
|
|
|
ui->tabServices->setModel(m_itemsModel);
|
|
|
|
ui->tabServices->setModel(m_itemsModel);
|
|
|
|
|
|
|
|
ui->tabServices->hideColumn(1);
|
|
|
|
|
|
|
|
ui->tabServices->hideColumn(6);
|
|
|
|
|
|
|
|
ui->tabServices->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
|
|
|
|
|
|
|
|
ui->tabServices->horizontalHeader()->setSectionResizeMode(2, QHeaderView::Stretch);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CampWizard::~CampWizard()
|
|
|
|
CampWizard::~CampWizard()
|
|
|
@ -286,8 +295,8 @@ void CampWizard::on_CampWizard_currentIdChanged(int id)
|
|
|
|
m_dataBinder->bindToUi();
|
|
|
|
m_dataBinder->bindToUi();
|
|
|
|
m_itemsModel->setData(m_data->services());
|
|
|
|
m_itemsModel->setData(m_data->services());
|
|
|
|
|
|
|
|
|
|
|
|
ui->lFrom->setText(m_data->start().toString());
|
|
|
|
ui->lFrom->setText(m_data->start().toString("d. M. yyyy"));
|
|
|
|
ui->lTo->setText(m_data->end().toString());
|
|
|
|
ui->lTo->setText(m_data->end().toString("d. M. yyyy"));
|
|
|
|
ui->lDays->setText(QString::number(m_data->start().daysTo(m_data->end())));
|
|
|
|
ui->lDays->setText(QString::number(m_data->start().daysTo(m_data->end())));
|
|
|
|
ui->lOwner->setText(m_data->ownerAddress());
|
|
|
|
ui->lOwner->setText(m_data->ownerAddress());
|
|
|
|
}
|
|
|
|
}
|
|
|
|