mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-06 15:04:11 +00:00
Apply button for preferences
This commit is contained in:
parent
9eb2a913b7
commit
7ebb1ea0c0
2 changed files with 18 additions and 14 deletions
|
|
@ -181,6 +181,10 @@ PreferencesDialog::PreferencesDialog(Preferences *pref, QWidget *parent) :
|
|||
updateFromGUI();
|
||||
accept();
|
||||
});
|
||||
connect(ui->buttonBox->button(QDialogButtonBox::Apply), &QPushButton::clicked, [=](){
|
||||
// apply GUI state to settings
|
||||
updateFromGUI();
|
||||
});
|
||||
connect(ui->buttonBox->button(QDialogButtonBox::Save), &QPushButton::clicked, [=](){
|
||||
auto filename = QFileDialog::getSaveFileName(this, "Save preferences", "", "LibreVNA preferences files (*.vnapref)", nullptr, QFileDialog::DontUseNativeDialog);
|
||||
if(filename.length() > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue