service plugin and qdecimal library has been added

This commit is contained in:
Zdenek Jonak
2016-02-09 21:55:05 +01:00
parent 3d68281c87
commit 4d74bed177
251 changed files with 127772 additions and 1 deletions
+32
View File
@@ -0,0 +1,32 @@
#include "accserviceform.h"
#include "ui_accserviceform.h"
AccServiceForm::AccServiceForm(QWidget *parent) :
AutoForm<AccService>(parent),
ui(new Ui::AccServiceForm)
{
ui->setupUi(this);
registerBinding(ui->accServiceName);
registerBinding(ui->price);
registerBinding(ui->salePossible);
registerBinding(ui->active);
}
AccServiceForm::~AccServiceForm()
{
delete ui;
}
void AccServiceForm::bindOtherToUi()
{
ui->serviceType->clear();
ui->serviceType->addItems(QStringList()<<tr("Car")<<tr("Tent")<<tr("Other"));
ui->serviceType->setCurrentIndex(this->entity()->serviceType());
}
bool AccServiceForm::bindOtherToData()
{
this->entity()->setServiceType((AccService::ServiceType)ui->serviceType->currentIndex());
return true;
}