Dynamic update tool property browser after applying options changes.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2015-02-10 19:50:47 +02:00
parent cfc2b187f6
commit a12eb73bec
3 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,7 @@ void ConfigDialog::Apply()
default:
break;
}
emit UpdateProperties();
setResult(QDialog::Accepted);
}

View File

@ -43,6 +43,8 @@ public:
explicit ConfigDialog(QWidget *parent = nullptr);
public slots:
void changePage(QListWidgetItem *current, QListWidgetItem *previous);
signals:
void UpdateProperties();
protected:
virtual void closeEvent(QCloseEvent *event);
private:

View File

@ -1402,6 +1402,7 @@ void MainWindow::Open()
void MainWindow::Preferences()
{
ConfigDialog dlg(this);
connect(&dlg, &ConfigDialog::UpdateProperties, toolOptions, &VToolOptionsPropertyBrowser::UpdateOptions);
if (dlg.exec() == QDialog::Accepted)
{
InitAutoSave();