]> sigrok.org Git - pulseview.git/blobdiff - pv/util.hpp
Add a spin box widget for timestamp values
[pulseview.git] / pv / util.hpp
index b1e45dfb6a716d18d1d1ebf10014cb2c498314cb..e9689ec0d6b4248646c91124292495b730be719a 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <boost/multiprecision/cpp_dec_float.hpp>
 
+#include <QMetaType>
 #include <QString>
 
 namespace pv {
@@ -83,4 +84,6 @@ QString format_second(const Timestamp& second);
 } // namespace util
 } // namespace pv
 
+Q_DECLARE_METATYPE(pv::util::Timestamp)
+
 #endif // PULSEVIEW_UTIL_HPP