Commit 7e07c6f8 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

database parameters from free prop

parent 47e8da0b
...@@ -341,15 +341,15 @@ void Alarm::queryDB() ...@@ -341,15 +341,15 @@ void Alarm::queryDB()
switch(ui->comboPeriod->currentIndex()) { switch(ui->comboPeriod->currentIndex()) {
case 0: case 0:
dts = dts.addDays(-1); dts = dts.addDays(-1);
dte = dts.addDays(1); // somewhere in the future dte = dte.addDays(1); // somewhere in the future
break; break;
case 1: case 1:
dts = dts.addDays(-7); dts = dts.addDays(-7);
dte = dts.addDays(1); // somewhere in the future dte = dte.addDays(1); // somewhere in the future
break; break;
case 2: case 2:
dts = dts.addMonths(-1); dts = dts.addMonths(-1);
dte = dts.addDays(1); // somewhere in the future dte = dte.addDays(1); // somewhere in the future
break; break;
case 3: case 3:
dts.setDate(ui->dateStart->date()); dts.setDate(ui->dateStart->date());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment