diff options
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 { |
