mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-05 00:41:19 -05:00
24 lines
417 B
C++
24 lines
417 B
C++
#ifndef DATE_TIME_EDIT_HPP_
|
|
#define DATE_TIME_EDIT_HPP_
|
|
|
|
#include <QDateTimeEdit>
|
|
|
|
class QWidget;
|
|
|
|
//
|
|
// DateTimeEdit - format includes seconds
|
|
//
|
|
class DateTimeEdit final
|
|
: public QDateTimeEdit
|
|
{
|
|
public:
|
|
explicit DateTimeEdit (QWidget * parent = nullptr)
|
|
: QDateTimeEdit {parent}
|
|
{
|
|
setDisplayFormat (locale ().dateFormat (QLocale::ShortFormat) + " hh:mm:ss");
|
|
setTimeSpec (Qt::UTC);
|
|
}
|
|
};
|
|
|
|
#endif
|