projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cbf0f87
)
Header: Added drag-handling support for non-TraceTreeItems
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sun, 30 Aug 2015 15:52:37 +0000
(09:52 -0600)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sun, 18 Oct 2015 21:32:30 +0000
(15:32 -0600)
pv/view/header.cpp
patch
|
blob
|
history
diff --git
a/pv/view/header.cpp
b/pv/view/header.cpp
index bfb75532aa58ad7508db13b1243ce051613e131c..7c2dd9b0d7b17c1d698bf36bd7a8db8181ea13ec 100644
(file)
--- a/
pv/view/header.cpp
+++ b/
pv/view/header.cpp
@@
-105,17
+105,17
@@
void Header::paintEvent(QPaintEvent*)
// would be clipped away.
const QRect rect(0, 0, width() - BaselineOffset, height());
// would be clipped away.
const QRect rect(0, 0, width() - BaselineOffset, height());
- vector< shared_ptr<
TraceTree
Item> > items(
- view_.list_by_type<
TraceTree
Item>());
+ vector< shared_ptr<
Row
Item> > items(
+ view_.list_by_type<
Row
Item>());
stable_sort(items.begin(), items.end(),
stable_sort(items.begin(), items.end(),
- [](const shared_ptr<
TraceTreeItem> &a, const shared_ptr<TraceTree
Item> &b) {
- return a->
visual_v_offset() < b->visual_v_offset
(); });
+ [](const shared_ptr<
RowItem> &a, const shared_ptr<Row
Item> &b) {
+ return a->
point(QRect()).y() < b->point(QRect()).y
(); });
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing);
QPainter painter(this);
painter.setRenderHint(QPainter::Antialiasing);
- for (const shared_ptr<
TraceTree
Item> r : items)
+ for (const shared_ptr<
Row
Item> r : items)
{
assert(r);
{
assert(r);