@@ -96,8 +96,7 @@ SettingsDisplayOptionsWidget::SettingsDisplayOptionsWidget(PIVXGUI* _window, QWi
9696 setCssBtnSecondary (ui->pushButtonClean );
9797
9898 initLanguages ();
99- connect (ui->comboBoxLanguage , SIGNAL (currentIndexChanged ()), this , SLOT (showRestartWarning (bool )));
100- connect (ui->comboBoxLanguage ,SIGNAL (currentIndexChanged (const QString&)),this , SLOT (languageChanged (const QString&)));
99+ connect (ui->pushButtonSave , SIGNAL (clicked ()), parent, SLOT (onSaveOptionsClicked ()));
101100 connect (ui->pushButtonReset , SIGNAL (clicked ()), this , SLOT (onResetClicked ()));
102101 connect (ui->pushButtonClean , SIGNAL (clicked ()), parent, SLOT (onDiscardChanges ()));
103102}
@@ -122,32 +121,6 @@ void SettingsDisplayOptionsWidget::initLanguages(){
122121 }
123122}
124123
125- void SettingsDisplayOptionsWidget::languageChanged (const QString& newValue){
126- QString sel = ui->comboBoxLanguage ->currentData ().toString ();
127- QSettings settings;
128- if (settings.value (" language" ) != sel){
129- settings.setValue (" language" , sel);
130- // emit onLanguageSelected();
131- }
132- }
133-
134- void SettingsDisplayOptionsWidget::showRestartWarning (bool fPersistent ){
135-
136- // TODO: Add warning..
137- /*
138- ui->statusLabel->setStyleSheet("QLabel { color: red; }");
139-
140- if (fPersistent) {
141- ui->statusLabel->setText(tr("Client restart required to activate changes."));
142- } else {
143- ui->statusLabel->setText(tr("This change would require a client restart."));
144- // clear non-persistent status label after 10 seconds
145- // Todo: should perhaps be a class attribute, if we extend the use of statusLabel
146- QTimer::singleShot(10000, this, SLOT(clearStatusLabel()));
147- }
148- */
149- }
150-
151124void SettingsDisplayOptionsWidget::onResetClicked () {
152125 if (clientModel) {
153126 OptionsModel *optionsModel = clientModel->getOptionsModel ();
0 commit comments