summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/encttscfggui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rbutilqt/encttscfggui.cpp')
-rw-r--r--utils/rbutilqt/encttscfggui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/utils/rbutilqt/encttscfggui.cpp b/utils/rbutilqt/encttscfggui.cpp
index 19181c0f8b..51a047da61 100644
--- a/utils/rbutilqt/encttscfggui.cpp
+++ b/utils/rbutilqt/encttscfggui.cpp
@@ -47,8 +47,8 @@ EncTtsCfgGui::EncTtsCfgGui(QDialog* parent, EncTtsSettingInterface* iface, QStri
47 m_busyDlg->setLabel(nullptr); 47 m_busyDlg->setLabel(nullptr);
48 m_busyDlg->setCancelButton(nullptr); 48 m_busyDlg->setCancelButton(nullptr);
49 m_busyDlg->hide(); 49 m_busyDlg->hide();
50 connect(iface,SIGNAL(busy()),this,SLOT(showBusy())); 50 connect(iface,&EncTtsSettingInterface::busy,this,&EncTtsCfgGui::showBusy);
51 connect(iface,SIGNAL(busyEnd()),this,SLOT(hideBusy())); 51 connect(iface,&EncTtsSettingInterface::busyEnd,this,&EncTtsCfgGui::hideBusy);
52 52
53 //setup the window 53 //setup the window
54 setWindowTitle(name); 54 setWindowTitle(name);
@@ -144,7 +144,7 @@ QWidget* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
144 QLineEdit *lineEdit = new QLineEdit(this); 144 QLineEdit *lineEdit = new QLineEdit(this);
145 lineEdit->setAccessibleName(setting->name()); 145 lineEdit->setAccessibleName(setting->name());
146 lineEdit->setText(setting->current().toString()); 146 lineEdit->setText(setting->current().toString());
147 connect(lineEdit,SIGNAL(textChanged(QString)),this,SLOT(updateSetting())); 147 connect(lineEdit,&QLineEdit::textChanged,this,&EncTtsCfgGui::updateSetting);
148 value = lineEdit; 148 value = lineEdit;
149 break; 149 break;
150 } 150 }
@@ -169,7 +169,7 @@ QWidget* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
169 QCheckBox *checkbox = new QCheckBox(this); 169 QCheckBox *checkbox = new QCheckBox(this);
170 checkbox->setAccessibleName(setting->name()); 170 checkbox->setAccessibleName(setting->name());
171 checkbox->setCheckState(setting->current().toBool() == true ? Qt::Checked : Qt::Unchecked); 171 checkbox->setCheckState(setting->current().toBool() == true ? Qt::Checked : Qt::Unchecked);
172 connect(checkbox,SIGNAL(stateChanged(int)),this,SLOT(updateSetting())); 172 connect(checkbox,&QCheckBox::stateChanged,this,&EncTtsCfgGui::updateSetting);
173 value = checkbox; 173 value = checkbox;
174 break; 174 break;
175 } 175 }
@@ -184,7 +184,7 @@ QWidget* EncTtsCfgGui::createWidgets(EncTtsSetting* setting)
184 if(value != nullptr) 184 if(value != nullptr)
185 { 185 {
186 m_settingsWidgetsMap.insert(setting,value); 186 m_settingsWidgetsMap.insert(setting,value);
187 connect(setting,SIGNAL(updateGui()),this,SLOT(updateWidget())); 187 connect(setting,&EncTtsSetting::updateGui,this,&EncTtsCfgGui::updateWidget);
188 } 188 }
189 189
190 return value; 190 return value;
@@ -204,7 +204,7 @@ QWidget* EncTtsCfgGui::createButton(EncTtsSetting* setting)
204 { 204 {
205 QPushButton* refreshbtn = new QPushButton(tr("Refresh"),this); 205 QPushButton* refreshbtn = new QPushButton(tr("Refresh"),this);
206 refreshbtn->setIcon(QIcon(":/icons/view-refresh.svg")); 206 refreshbtn->setIcon(QIcon(":/icons/view-refresh.svg"));
207 connect(refreshbtn,SIGNAL(clicked()),setting,SIGNAL(refresh())); 207 connect(refreshbtn,&QAbstractButton::clicked,setting,&EncTtsSetting::refresh);
208 return refreshbtn; 208 return refreshbtn;
209 } 209 }
210 else 210 else