#1898 Curve Creator: Add basic search fields above all the lists

This commit is contained in:
Magne Sjaastad 2017-09-19 10:29:13 +02:00
parent df6262c043
commit 32b9b6d1b0

View File

@ -184,10 +184,10 @@ QWidget* PdmUiTreeSelectionEditor::createEditorWidget(QWidget* parent)
connect(m_toggleAllCheckBox, SIGNAL(clicked(bool)), this, SLOT(slotToggleAll()));
// m_textFilterLineEdit = new QLineEdit();
// headerLayout->addWidget(m_textFilterLineEdit);
//
// connect(m_textFilterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(slotTextFilterChanged()));
m_textFilterLineEdit = new QLineEdit();
headerLayout->addWidget(m_textFilterLineEdit);
connect(m_textFilterLineEdit, SIGNAL(textChanged(QString)), this, SLOT(slotTextFilterChanged()));
}
QTreeViewHeightHint* treeViewHeightHint = new QTreeViewHeightHint(parent);
@ -363,6 +363,8 @@ void PdmUiTreeSelectionEditor::slotTextFilterChanged()
searchString += "*";
m_proxyModel->setFilterWildcard(searchString);
updateUi();
}
//--------------------------------------------------------------------------------------------------