projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved signal margin out of signal rendering into initial layout
[pulseview.git]
/
pv
/
view
/
view.cpp
diff --git
a/pv/view/view.cpp
b/pv/view/view.cpp
index e3210fa39f3b9ac9d7bffc20797dd689bf27ce1d..98b5c65dd1fc37f8b3084e5363bb936b4fc1611a 100644
(file)
--- a/
pv/view/view.cpp
+++ b/
pv/view/view.cpp
@@
-52,7
+52,8
@@
const int View::RulerHeight = 30;
const int View::MaxScrollValue = INT_MAX / 2;
const int View::MaxScrollValue = INT_MAX / 2;
-const int View::SignalHeight = 50;
+const int View::SignalHeight = 30;
+const int View::SignalMargin = 10;
const int View::SignalSnapGridSize = 10;
const QColor View::CursorAreaColour(220, 231, 243);
const int View::SignalSnapGridSize = 10;
const QColor View::CursorAreaColour(220, 231, 243);
@@
-207,11
+208,11
@@
void View::update_scroll()
void View::reset_signal_layout()
{
void View::reset_signal_layout()
{
- int offset =
0
;
+ int offset =
SignalMargin
;
vector< shared_ptr<Signal> > &sigs = _session.get_signals();
BOOST_FOREACH(shared_ptr<Signal> s, sigs) {
s->set_v_offset(offset);
vector< shared_ptr<Signal> > &sigs = _session.get_signals();
BOOST_FOREACH(shared_ptr<Signal> s, sigs) {
s->set_v_offset(offset);
- offset += SignalHeight;
+ offset += SignalHeight
+ 2 * SignalMargin
;
}
}
}
}