diff options
| author | Christoph Berg <myon@debian.org> | 2020-09-28 23:28:13 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-09-28 23:28:13 +0200 |
| commit | 7aa3c56b01768ba7d38fccedc17b30a4046b3fbb (patch) | |
| tree | da509a2cf3667b6f9855ea811f4a1f95d9e6f5ef /qt_helpers.hpp | |
| parent | 28f34ff4908a90b1a7323b2988c33cdb1779fa06 (diff) | |
New upstream version 2.3.0~rc1+repackupstream/2.3.0_rc1+repack
Diffstat (limited to 'qt_helpers.hpp')
| -rw-r--r-- | qt_helpers.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt_helpers.hpp b/qt_helpers.hpp index 33f50143..aae8c5f0 100644 --- a/qt_helpers.hpp +++ b/qt_helpers.hpp @@ -69,6 +69,12 @@ QString font_as_stylesheet (QFont const&); // conditional style sheet updates void update_dynamic_property (QWidget *, char const * property, QVariant const& value); +// round a QDateTime instance to an integral interval of milliseconds +QDateTime qt_round_date_time_to (QDateTime dt, int milliseconds); + +// truncate a QDateTime to an integral interval of milliseconds +QDateTime qt_truncate_date_time_to (QDateTime dt, int milliseconds); + template <class T> class VPtr { |
