From e6538795a84e0975790adfc9580d404f6505e73d Mon Sep 17 00:00:00 2001 From: Edric Milaret <edric.ladent-milaret@savoirfairelinux.com> Date: Fri, 8 May 2015 11:51:01 -0400 Subject: [PATCH] windows: add upnp ui Refs #71910 Change-Id: I0e0497b59c4a50c9e6200090b1d241b820741da0 --- accountdetails.cpp | 6 ++++++ accountdetails.h | 1 + accountdetails.ui | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/accountdetails.cpp b/accountdetails.cpp index 5155906..487dce5 100644 --- a/accountdetails.cpp +++ b/accountdetails.cpp @@ -219,6 +219,7 @@ AccountDetails::setAccount(Account* currentAccount) { ui->videoEnabledCheckBox->setChecked(currentAccount_->isVideoEnabled()); ui->autoAnswerCheckBox->setChecked(currentAccount_->isAutoAnswer()); + ui->upnpCheckBox->setChecked(currentAccount_->isUpnpEnabled()); } void @@ -360,3 +361,8 @@ AccountDetails::on_tabWidget_currentChanged(int index) ui->videoCodecView->setCurrentItem(ui->videoCodecView->item(0, 0)); } } + +void AccountDetails::on_upnpCheckBox_clicked(bool checked) +{ + currentAccount_->setUpnpEnabled(checked); +} diff --git a/accountdetails.h b/accountdetails.h index 29212f9..c4baa9a 100644 --- a/accountdetails.h +++ b/accountdetails.h @@ -59,6 +59,7 @@ private slots: void on_proxyEdit_editingFinished(); void on_voicemailEdit_editingFinished(); void on_tabWidget_currentChanged(int index); + void on_upnpCheckBox_clicked(bool checked); private slots: void audio_codec_checked(int row, int column); diff --git a/accountdetails.ui b/accountdetails.ui index daac5fa..bcb1c2c 100644 --- a/accountdetails.ui +++ b/accountdetails.ui @@ -140,7 +140,7 @@ <item row="7" column="0"> <widget class="QCheckBox" name="upnpCheckBox"> <property name="enabled"> - <bool>false</bool> + <bool>true</bool> </property> <property name="text"> <string>UPnP enabled</string> -- GitLab