comparison src/gui/widgets/optional_date.cpp @ 48:e613772f41d5

statistics.cpp: show requests made
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 01:07:22 -0400
parents d8eb763e6661
children 75c804f713b2
comparison
equal deleted inserted replaced
47:d8eb763e6661 48:e613772f41d5
13 13
14 _checkbox = new QCheckBox(this); 14 _checkbox = new QCheckBox(this);
15 _checkbox->setCheckState(enabled ? Qt::Checked : Qt::Unchecked); 15 _checkbox->setCheckState(enabled ? Qt::Checked : Qt::Unchecked);
16 _checkbox->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred); 16 _checkbox->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);
17 17
18 layout->addWidget(_checkbox); 18 layout->addWidget(_checkbox, 0, Qt::AlignVCenter);
19 19
20 _dateedit = new QDateEdit(this); 20 _dateedit = new QDateEdit(this);
21 _dateedit->setDisplayFormat("yyyy-MM-dd"); 21 _dateedit->setDisplayFormat("yyyy-MM-dd");
22 _dateedit->setCalendarPopup(true); 22 _dateedit->setCalendarPopup(true);
23 _dateedit->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred); 23 _dateedit->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);