]> sigrok.org Git - pulseview.git/commitdiff
DecoderOutputView: Make comboboxes auto-adjusting
authorSoeren Apel <redacted>
Thu, 12 Dec 2019 11:36:43 +0000 (12:36 +0100)
committerSoeren Apel <redacted>
Thu, 12 Dec 2019 11:36:43 +0000 (12:36 +0100)
pv/views/decoder_output/view.cpp

index 052d716318c816d0d8392c4de11bdc46c54ccfcf..171767e3236028d63b6f677c17608979b9889b63 100644 (file)
@@ -90,6 +90,10 @@ View::View(Session &session, bool is_main_view, QMainWindow *parent) :
        connect(class_selector_, SIGNAL(currentIndexChanged(int)),
                this, SLOT(on_selected_class_changed(int)));
 
+       // Configure widgets
+       decoder_selector_->setSizeAdjustPolicy(QComboBox::AdjustToContents);
+       class_selector_->setSizeAdjustPolicy(QComboBox::AdjustToContents);
+
        hex_view_->setData(merged_data_);
 
        reset_view_state();