Skip to content

Commit

Permalink
iioexplorer/searchbar: Remove "Filter" label
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei-Fabian-Pop <[email protected]>
  • Loading branch information
Andrei-Fabian-Pop committed Nov 21, 2024
1 parent 893ef34 commit 3726468
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions plugins/debugger/src/iioexplorer/searchbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,17 @@ using namespace scopy::debugger;
SearchBar::SearchBar(QSet<QString> options, QWidget *parent)
: QWidget(parent)
, m_lineEdit(new QLineEdit(this))
, m_label(new QLabel("Filter", this))
, m_completer(new QCompleter(options.values(), this))
{
Style::setStyle(m_lineEdit, style::properties::debugger::searchBar);
Style::setStyle(m_label, style::properties::label::menuSmall);
setFixedHeight(34); // Hardcoded to match similar container
m_completer->setCaseSensitivity(Qt::CaseInsensitive);
m_completer->setFilterMode(Qt::MatchContains);
m_lineEdit->setPlaceholderText("Type to filter");
m_lineEdit->setCompleter(m_completer);
m_lineEdit->setMinimumHeight(31);
m_label->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Preferred);

setLayout(new QHBoxLayout(this));
layout()->addWidget(m_label);
layout()->addWidget(m_lineEdit);
layout()->setMargin(0);
}
Expand Down

0 comments on commit 3726468

Please sign in to comment.