Improve element query widget

User can now filter each field of the query
This commit is contained in:
Claveau Joshua
2020-04-05 21:48:08 +02:00
parent 035709b70f
commit 60e61a9f20
8 changed files with 248 additions and 55 deletions

View File

@@ -70,8 +70,13 @@ void NomenclatureModelPropertiesWidget::on_m_edit_query_pb_clicked()
connect(button_box, &QDialogButtonBox::accepted, &d, &QDialog::accept);
connect(button_box, &QDialogButtonBox::rejected, &d, &QDialog::reject);
if (d.exec()) {
if (d.exec())
{
m_model->query(query_widget->queryStr());
auto headers = query_widget->header();
for (auto i=0 ; i<headers.size() ; ++i) {
m_model->setHeaderData(i, Qt::Horizontal, headers.at(i));
}
}
}