Element query widget : widget restor is state according to the current query

This commit is contained in:
Claveau Joshua
2020-04-29 11:48:45 +02:00
parent bc1f10aa80
commit 9bb58fedea
5 changed files with 200 additions and 18 deletions

View File

@@ -59,10 +59,11 @@ void NomenclatureModelPropertiesWidget::setModel(NomenclatureModel *model) {
void NomenclatureModelPropertiesWidget::on_m_edit_query_pb_clicked()
{
QDialog d(this);
auto l = new QVBoxLayout(this);
auto l = new QVBoxLayout;
d.setLayout(l);
auto query_widget = new ElementQueryWidget(&d);
query_widget->setQuery(m_model->queryString());
l->addWidget(query_widget);
auto button_box = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);