mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-22 12:08:43 -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
|
||||
{
|
||||
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
|
||||
// spec of the QDateTime that it is
|
||||
// set from
|
||||
|
Loading…
Reference in New Issue
Block a user