From: Soeren Apel Date: Mon, 12 Jun 2017 16:21:34 +0000 (+0200) Subject: View: Prevent header from being resized when view is resized X-Git-Tag: pulseview-0.4.0~2 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1519e0fc595a18ee2ec76e4607d9d82e75b26d44;p=pulseview.git View: Prevent header from being resized when view is resized --- diff --git a/pv/views/trace/view.cpp b/pv/views/trace/view.cpp index dbc0d203..f1f8eb0c 100644 --- a/pv/views/trace/view.cpp +++ b/pv/views/trace/view.cpp @@ -180,6 +180,8 @@ View::View(Session &session, bool is_main_view, QWidget *parent) : splitter_->setHandleWidth(1); // Don't show a visible rubber band splitter_->setCollapsible(0, false); // Prevent the header from collapsing splitter_->setCollapsible(1, false); // Prevent the traces from collapsing + splitter_->setStretchFactor(0, 0); // Prevent the panes from being resized + splitter_->setStretchFactor(1, 1); // when the entire view is resized splitter_->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding); viewport_->installEventFilter(this);