projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change QApplication::translate to tr, removing deprecated UTF8 parameter
[pulseview.git]
/
pv
/
view
/
view.cpp
diff --git
a/pv/view/view.cpp
b/pv/view/view.cpp
index 6c7df488e3492c6e87d893488af811d40c691d55..392114c848aa2c01a3e598cc0372ae2d5681e504 100644
(file)
--- a/
pv/view/view.cpp
+++ b/
pv/view/view.cpp
@@
-128,8
+128,9
@@
View::View(SigSession &session, QWidget *parent) :
// which were created before this object came into being
signals_changed();
// which were created before this object came into being
signals_changed();
- // make sure the
cursorheader is over the ruler
+ // make sure the
transparent widgets are on the top
_cursorheader->raise();
_cursorheader->raise();
+ _header->raise();
}
SigSession& View::session()
}
SigSession& View::session()
@@
-412,7
+413,8
@@
void View::update_scroll()
void View::update_layout()
{
void View::update_layout()
{
- setViewportMargins(_header->sizeHint().width(),
+ setViewportMargins(
+ _header->sizeHint().width() - pv::view::Header::BaselineOffset,
_ruler->sizeHint().height(), 0, 0);
_ruler->setGeometry(_viewport->x(), 0,
_viewport->width(), _viewport->y());
_ruler->sizeHint().height(), 0, 0);
_ruler->setGeometry(_viewport->x(), 0,
_viewport->width(), _viewport->y());
@@
-421,7
+423,7
@@
void View::update_layout()
_ruler->sizeHint().height() - _cursorheader->sizeHint().height() / 2,
_viewport->width(), _cursorheader->sizeHint().height());
_header->setGeometry(0, _viewport->y(),
_ruler->sizeHint().height() - _cursorheader->sizeHint().height() / 2,
_viewport->width(), _cursorheader->sizeHint().height());
_header->setGeometry(0, _viewport->y(),
- _
viewport->x
(), _viewport->height());
+ _
header->sizeHint().width
(), _viewport->height());
update_scroll();
}
update_scroll();
}