projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CursorHeader: Use the same number format as the ruler.
[pulseview.git]
/
pv
/
view
/
cursorheader.cpp
diff --git
a/pv/view/cursorheader.cpp
b/pv/view/cursorheader.cpp
index 861cd70f535249209268e6cc24b078e6a4f1ba62..6592acd4d06d43490688f4484dd12c6cbe282dfe 100644
(file)
--- a/
pv/view/cursorheader.cpp
+++ b/
pv/view/cursorheader.cpp
@@
-20,6
+20,7
@@
#include "cursorheader.h"
#include "cursorheader.h"
+#include "ruler.h"
#include "view.h"
#include <QApplication>
#include "view.h"
#include <QApplication>
@@
-68,9
+69,12
@@
void CursorHeader::paintEvent(QPaintEvent*)
QPainter p(this);
p.setRenderHint(QPainter::Antialiasing);
QPainter p(this);
p.setRenderHint(QPainter::Antialiasing);
+ unsigned int prefix = pv::view::Ruler::calculate_tick_spacing(
+ p, _view.scale(), _view.offset()).second;
+
// Draw the cursors
if (_view.cursors_shown()) {
// Draw the cursors
if (_view.cursors_shown()) {
- _view.cursors().draw_markers(p, rect(),
0); //
prefix);
+ _view.cursors().draw_markers(p, rect(), prefix);
}
}
}
}