mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
Include seconds in datebase field date/time item delegate editor
This commit is contained in:
parent
59fc83455d
commit
43edd81a8b
@ -41,6 +41,7 @@ public:
|
|||||||
QWidget * createEditor (QWidget * parent, QStyleOptionViewItem const& /*option*/, QModelIndex const& /*index*/) const override
|
QWidget * createEditor (QWidget * parent, QStyleOptionViewItem const& /*option*/, QModelIndex const& /*index*/) const override
|
||||||
{
|
{
|
||||||
std::unique_ptr<QDateTimeEdit> editor {new QDateTimeEdit {parent}};
|
std::unique_ptr<QDateTimeEdit> editor {new QDateTimeEdit {parent}};
|
||||||
|
editor->setDisplayFormat (parent->locale ().dateFormat (QLocale::ShortFormat) + " hh:mm:ss");
|
||||||
editor->setTimeSpec (Qt::UTC); // needed because it ignores time
|
editor->setTimeSpec (Qt::UTC); // needed because it ignores time
|
||||||
// spec of the QDateTime that it is
|
// spec of the QDateTime that it is
|
||||||
// set from
|
// set from
|
||||||
|
Loading…
x
Reference in New Issue
Block a user