summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtSwiftUtil.h')
-rw-r--r--Swift/QtUI/QtSwiftUtil.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Swift/QtUI/QtSwiftUtil.h b/Swift/QtUI/QtSwiftUtil.h
index a2ad4db..3f1ad3b 100644
--- a/Swift/QtUI/QtSwiftUtil.h
+++ b/Swift/QtUI/QtSwiftUtil.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2010 Kevin Smith
+ * Copyright (c) 2010 Remko Tronçon
* Licensed under the GNU General Public License v3.
* See Documentation/Licenses/GPLv3.txt for more information.
*/
@@ -10,4 +10,6 @@
#define P2QSTRING(a) QString::fromUtf8(a.getUTF8Data())
#define Q2PSTRING(a) Swift::String(a.toUtf8())
+#define B2QDATE(a) QDateTime::fromTime_t((a - boost::posix_time::from_time_t(0)).total_seconds())
+
#endif