Skip to content

Commit

Permalink
Add params on activation of extra param dialog items
Browse files Browse the repository at this point in the history
  • Loading branch information
cyderize committed Jun 6, 2023
1 parent 43a0655 commit c69e7ea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MiniZincIDE/extraparamdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,9 @@ void ExtraParamDialog::mouseReleaseEvent(QMouseEvent* event)
// Hack which stops the menu from closing when clicking on the widget empty space
event->accept();
}

void ExtraParamDialog::on_params_listView_activated(const QModelIndex &index)
{
on_add_pushButton_clicked();
}

2 changes: 2 additions & 0 deletions MiniZincIDE/extraparamdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ private slots:

void resetControls();

void on_params_listView_activated(const QModelIndex &index);

private:
Ui::ExtraParamDialog* ui;
QStandardItemModel* _sourceModel;
Expand Down

0 comments on commit c69e7ea

Please sign in to comment.