]> sigrok.org Git - pulseview.git/commit
Untangle the time formatting functions a bit
authorJens Steinhauser <redacted>
Thu, 3 Sep 2015 11:50:53 +0000 (13:50 +0200)
committerUwe Hermann <redacted>
Fri, 4 Sep 2015 10:54:52 +0000 (12:54 +0200)
commit3ccf0f7f5b1b31ac628a983a2becee6f4c4c1507
tree79e6929e6d448336304bfa4f299b2203121dfb0f
parentadb3831eeae71b69bb035c9af713ea1f8623407f
Untangle the time formatting functions a bit

The formatting depending on the distance between two timestamps is
reintroduced with the responding function residing in the 'Ruler' class
(the prime user of that function).

Fixes a rounding bug for the least significant digit in the
'format_time_minutes()' function.

The 'Cursor' and 'CursorPair' classes now use the same precision when
formatting timestamps as the rest of the program.
pv/toolbars/mainbar.cpp
pv/util.cpp
pv/util.hpp
pv/view/cursor.cpp
pv/view/cursorpair.cpp
pv/view/ruler.cpp
pv/view/ruler.hpp
pv/view/view.cpp
pv/widgets/timestampspinbox.cpp
test/util.cpp
test/view/ruler.cpp