diff options
| author | Christoph Berg <myon@debian.org> | 2025-09-16 12:37:12 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-09-16 12:57:29 +0200 |
| commit | 5a4967c577ad245a2117b7b2f71c13b1212fe285 (patch) | |
| tree | 4d09343cfe757239895a0dd9b399242d2a07d7c2 /widgets/DateTimeEdit.hpp | |
| parent | 23c903a09fb1d73fd20b50323cd80cfb3aba8799 (diff) | |
Merge 2.7 changes, I had uploaded -1 from the wrong branch.debian/3.0.0_rc1+repack-2
Diffstat (limited to 'widgets/DateTimeEdit.hpp')
| -rwxr-xr-x | widgets/DateTimeEdit.hpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/widgets/DateTimeEdit.hpp b/widgets/DateTimeEdit.hpp index ad767a55..2e7ed614 100755 --- a/widgets/DateTimeEdit.hpp +++ b/widgets/DateTimeEdit.hpp @@ -1,23 +1,23 @@ -#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 +#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
|
