]> sigrok.org Git - pulseview.git/commitdiff
Fix #1375 by searching across all model columns
authorSoeren Apel <redacted>
Sun, 21 Apr 2019 06:44:10 +0000 (08:44 +0200)
committerSoeren Apel <redacted>
Sun, 21 Apr 2019 06:47:45 +0000 (08:47 +0200)
This way, a search for "i2c" includes the ID field, not just the name.

pv/subwindows/decoder_selector/subwindow.cpp

index af6de2d95f295a87827805083b0892f75e4ad533..19632ad17a05051b22f63e649923d98d0b34f484 100644 (file)
@@ -102,6 +102,7 @@ SubWindow::SubWindow(Session& session, QWidget* parent) :
 
        sort_filter_model_->setSourceModel(model_);
        sort_filter_model_->setFilterCaseSensitivity(Qt::CaseInsensitive);
+       sort_filter_model_->setFilterKeyColumn(-1);
 
        tree_view_->setModel(sort_filter_model_);
        tree_view_->setRootIsDecorated(true);