]> sigrok.org Git - pulseview.git/commitdiff
View: Prevent header from being resized when view is resized
authorSoeren Apel <redacted>
Mon, 12 Jun 2017 16:21:34 +0000 (18:21 +0200)
committerSoeren Apel <redacted>
Mon, 12 Jun 2017 17:06:22 +0000 (19:06 +0200)
pv/views/trace/view.cpp

index dbc0d2030c1a2859dc02bf05440a493a47647bcb..f1f8eb0c18ca0bbb32f5174fd852f6f0e0305273 100644 (file)
@@ -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);