projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ebad870
)
Header: Fixed trace labels spilling onto the canvas
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 15 Dec 2014 12:36:32 +0000
(12:36 +0000)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 15 Dec 2014 12:36:32 +0000
(12:36 +0000)
pv/view/header.cpp
patch
|
blob
|
history
diff --git
a/pv/view/header.cpp
b/pv/view/header.cpp
index 837d1916c72a69f10e8e460cbc2296c2cc88408d..780b1e3db5f9894c39e845fd6a549e855976038a 100644
(file)
--- a/
pv/view/header.cpp
+++ b/
pv/view/header.cpp
@@
-80,7
+80,7
@@
QSize Header::sizeHint() const
shared_ptr<RowItem> Header::get_mouse_over_row_item(const QPoint &pt)
{
shared_ptr<RowItem> Header::get_mouse_over_row_item(const QPoint &pt)
{
- const QRect r(
BaselineOffset
, 0, width() - BaselineOffset, height());
+ const QRect r(
0
, 0, width() - BaselineOffset, height());
for (auto &i : view_)
if (i->enabled() && i->label_rect(r).contains(pt))
return i;
for (auto &i : view_)
if (i->enabled() && i->label_rect(r).contains(pt))
return i;
@@
-112,7
+112,7
@@
void Header::paintEvent(QPaintEvent*)
// The trace labels are not drawn with the arrows exactly on the
// left edge of the widget, because then the selection shadow
// would be clipped away.
// The trace labels are not drawn with the arrows exactly on the
// left edge of the widget, because then the selection shadow
// would be clipped away.
- const QRect rect(
BaselineOffset
, 0, width() - BaselineOffset, height());
+ const QRect rect(
0
, 0, width() - BaselineOffset, height());
vector< shared_ptr<RowItem> > row_items(
view_.begin(), view_.end());
vector< shared_ptr<RowItem> > row_items(
view_.begin(), view_.end());