]> sigrok.org Git - pulseview.git/commit
Make cursor pair drop precision when too small
authorjaseg <redacted>
Sun, 9 Jun 2019 10:35:20 +0000 (19:35 +0900)
committerSoeren Apel <redacted>
Thu, 4 Jul 2019 21:17:27 +0000 (23:17 +0200)
commitef85cfa4599d3741e7007921e39a44490e97cfaf
tree64c309a53087e82710b8283c24a1089c89ec8b6a
parenta47b5a3fb9912f1d6e3fcc63d59ee6cc1b5338e2
Make cursor pair drop precision when too small

Currently, often the label just displays "...". With this change, it
will gracefully drop precision and less important parts (frequency,
unit) when there's not enough space to print the full string. The full
string is still available in the tooltip appearing on hover.
pv/util.cpp
pv/views/trace/cursorpair.cpp
pv/views/trace/cursorpair.hpp
pv/views/trace/ruler.cpp
pv/views/trace/ruler.hpp