mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-07-30 12:42:25 -04:00
WrappingDateTimeEdit: Allow years to be stepped through.
This commit is contained in:
parent
68b833ad97
commit
05fe7b8393
@ -29,7 +29,11 @@ WrappingDateTimeEdit::WrappingDateTimeEdit(QWidget *parent) :
|
|||||||
|
|
||||||
void WrappingDateTimeEdit::stepBy(int steps)
|
void WrappingDateTimeEdit::stepBy(int steps)
|
||||||
{
|
{
|
||||||
if (currentSection() == QDateTimeEdit::MonthSection)
|
if (currentSection() == QDateTimeEdit::YearSection)
|
||||||
|
{
|
||||||
|
clipAndSetDate(date().addYears(steps));
|
||||||
|
}
|
||||||
|
else if (currentSection() == QDateTimeEdit::MonthSection)
|
||||||
{
|
{
|
||||||
clipAndSetDate(date().addMonths(steps));
|
clipAndSetDate(date().addMonths(steps));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user