X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fview%2Fview.cpp;h=98b5c65dd1fc37f8b3084e5363bb936b4fc1611a;hb=8d44d030c3923055f2ea81d5334d3a3bce7900c2;hp=e3210fa39f3b9ac9d7bffc20797dd689bf27ce1d;hpb=0720481923d46cde06148c8a4aec2f96def66643;p=pulseview.git diff --git a/pv/view/view.cpp b/pv/view/view.cpp index e3210fa..98b5c65 100644 --- 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::SignalHeight = 50; +const int View::SignalHeight = 30; +const int View::SignalMargin = 10; 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() { - int offset = 0; + int offset = SignalMargin; vector< shared_ptr > &sigs = _session.get_signals(); BOOST_FOREACH(shared_ptr s, sigs) { s->set_v_offset(offset); - offset += SignalHeight; + offset += SignalHeight + 2 * SignalMargin; } }