mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-15 14:39:58 +01:00
Element query widget : widget restor is state according to the current query
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user