]> sigrok.org Git - pulseview.git/commitdiff
DecoderSelector: Make decoder tag names fully visible
authorUwe Hermann <redacted>
Thu, 14 Mar 2019 20:42:42 +0000 (21:42 +0100)
committerUwe Hermann <redacted>
Thu, 14 Mar 2019 21:49:24 +0000 (22:49 +0100)
pv/subwindows/decoder_selector/subwindow.cpp

index c8e0e1c16617a8dd642b8f6a054cb1d4785cdaf0..086b0064ec04d2354d76abd267a7da177afb54e0 100644 (file)
@@ -105,6 +105,9 @@ SubWindow::SubWindow(Session& session, QWidget* parent) :
        // Hide the columns that hold the detailed item information
        tree_view_->hideColumn(2);  // ID
 
+       // Ensure that all decoder tag names are fully visible by default
+       tree_view_->resizeColumnToContents(0);
+
        info_box_->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
        QVBoxLayout* info_box_layout = new QVBoxLayout(info_box_);
        info_box_layout->addWidget(info_label_header_);