mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 04:11:16 -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
|