Pointer + time delta
This commit is contained in:
27
sources/weekoption.cpp
Normal file
27
sources/weekoption.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "weekoption.h"
|
||||
#include "ui_weekoption.h"
|
||||
|
||||
WeekOption::WeekOption(Week *w, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
ui(new Ui::WeekOption)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
this->time_delta = w->getTimeDelta();
|
||||
ui->time_delta_spinbox->setValue(time_delta);
|
||||
connect(ui->time_delta_spinbox, &QSpinBox::valueChanged, this, &WeekOption::set_time_delta);
|
||||
}
|
||||
|
||||
WeekOption::~WeekOption()
|
||||
{
|
||||
delete ui;
|
||||
}
|
||||
|
||||
int WeekOption::get_time_delta()
|
||||
{
|
||||
return this->time_delta;
|
||||
}
|
||||
|
||||
void WeekOption::set_time_delta(int value)
|
||||
{
|
||||
this->time_delta = value;
|
||||
}
|
||||
Reference in New Issue
Block a user