mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-31 15:47:10 -04: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
|