Added settings for seasons and number series. Added static method
ComboData::createComboData for easier combo bindings.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#include "seasonnamedialog.h"
|
||||
#include "ui_seasonnamedialog.h"
|
||||
|
||||
SeasonNameDialog::SeasonNameDialog(SeasonPtr season, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::SeasonNameDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
m_binder.registerBinding(ui->name);
|
||||
m_binder.setData(season.data());
|
||||
m_binder.bindToUi();
|
||||
}
|
||||
|
||||
SeasonNameDialog::~SeasonNameDialog()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void SeasonNameDialog::accept()
|
||||
{
|
||||
m_binder.bindToData();
|
||||
QDialog::accept();
|
||||
}
|
||||
Reference in New Issue
Block a user