Pointer + time delta

This commit is contained in:
Aurélie Delhaie
2022-03-01 21:08:34 +01:00
parent ffebb3c7d7
commit 9bb56fe174
24 changed files with 652 additions and 282 deletions

27
sources/weekoption.cpp Normal file
View 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;
}