projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added initial support for dragging
[pulseview.git]
/
pv
/
view
/
view.cpp
diff --git
a/pv/view/view.cpp
b/pv/view/view.cpp
index e36072ef78ce0d76b88547a32616a5f9a110f9b0..b6add2ee294fa911bf7d4cca5a2b30ccdb78c7db 100644
(file)
--- a/
pv/view/view.cpp
+++ b/
pv/view/view.cpp
@@
-85,6
+85,9
@@
View::View(SigSession &session, QWidget *parent) :
connect(&_cursors.second, SIGNAL(time_changed()),
this, SLOT(marker_time_changed()));
connect(&_cursors.second, SIGNAL(time_changed()),
this, SLOT(marker_time_changed()));
+ connect(_header, SIGNAL(signals_moved()),
+ this, SLOT(signals_moved()));
+
setViewportMargins(LabelMarginWidth, RulerHeight, 0, 0);
setViewport(_viewport);
setViewportMargins(LabelMarginWidth, RulerHeight, 0, 0);
setViewport(_viewport);
@@
-313,5
+316,11
@@
void View::marker_time_changed()
_viewport->update();
}
_viewport->update();
}
+void View::signals_moved()
+{
+ _header->update();
+ _viewport->update();
+}
+
} // namespace view
} // namespace pv
} // namespace view
} // namespace pv