summaryrefslogtreecommitdiff
path: root/utils/rbutilqt/configure.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/rbutilqt/configure.cpp')
-rw-r--r--utils/rbutilqt/configure.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/utils/rbutilqt/configure.cpp b/utils/rbutilqt/configure.cpp
index 892b327419..6f64a007a9 100644
--- a/utils/rbutilqt/configure.cpp
+++ b/utils/rbutilqt/configure.cpp
@@ -95,24 +95,24 @@ Config::Config(QWidget *parent,int index) : QDialog(parent)
95 this->setModal(true); 95 this->setModal(true);
96 96
97 connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept())); 97 connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
98 connect(ui.buttonCancel, SIGNAL(clicked()), this, SLOT(abort())); 98 connect(ui.buttonCancel, &QAbstractButton::clicked, this, &Config::abort);
99 connect(ui.radioNoProxy, SIGNAL(toggled(bool)), this, SLOT(setNoProxy(bool))); 99 connect(ui.radioNoProxy, &QAbstractButton::toggled, this, &Config::setNoProxy);
100 connect(ui.radioSystemProxy, SIGNAL(toggled(bool)), this, SLOT(setSystemProxy(bool))); 100 connect(ui.radioSystemProxy, &QAbstractButton::toggled, this, &Config::setSystemProxy);
101 connect(ui.refreshMountPoint, SIGNAL(clicked()), this, SLOT(refreshMountpoint())); 101 connect(ui.refreshMountPoint, &QAbstractButton::clicked, this, &Config::refreshMountpoint);
102 connect(ui.buttonAutodetect,SIGNAL(clicked()),this,SLOT(autodetect())); 102 connect(ui.buttonAutodetect, &QAbstractButton::clicked, this, &Config::autodetect);
103 connect(ui.buttonCacheBrowse, SIGNAL(clicked()), this, SLOT(browseCache())); 103 connect(ui.buttonCacheBrowse, &QAbstractButton::clicked, this, &Config::browseCache);
104 connect(ui.buttonCacheClear, SIGNAL(clicked()), this, SLOT(cacheClear())); 104 connect(ui.buttonCacheClear, &QAbstractButton::clicked, this, &Config::cacheClear);
105 connect(ui.configTts, SIGNAL(clicked()), this, SLOT(configTts())); 105 connect(ui.configTts, &QAbstractButton::clicked, this, &Config::configTts);
106 connect(ui.configEncoder, SIGNAL(clicked()), this, SLOT(configEnc())); 106 connect(ui.configEncoder, &QAbstractButton::clicked, this, &Config::configEnc);
107 connect(ui.comboTts, SIGNAL(currentIndexChanged(int)), this, SLOT(updateTtsState(int))); 107 connect(ui.comboTts, SIGNAL(currentIndexChanged(int)), this, SLOT(updateTtsState(int)));
108 connect(ui.treeDevices, SIGNAL(itemSelectionChanged()), this, SLOT(updateEncState())); 108 connect(ui.treeDevices, &QTreeWidget::itemSelectionChanged, this, &Config::updateEncState);
109 connect(ui.testTTS,SIGNAL(clicked()),this,SLOT(testTts())); 109 connect(ui.testTTS, &QAbstractButton::clicked, this, &Config::testTts);
110 connect(ui.showDisabled, SIGNAL(toggled(bool)), this, SLOT(showDisabled(bool))); 110 connect(ui.showDisabled, &QAbstractButton::toggled, this, &Config::showDisabled);
111 connect(ui.mountPoint, SIGNAL(editTextChanged(QString)), this, SLOT(updateMountpoint(QString))); 111 connect(ui.mountPoint, SIGNAL(editTextChanged(QString)), this, SLOT(updateMountpoint(QString)));
112 connect(ui.mountPoint, SIGNAL(currentIndexChanged(int)), this, SLOT(updateMountpoint(int))); 112 connect(ui.mountPoint, SIGNAL(currentIndexChanged(int)), this, SLOT(updateMountpoint(int)));
113 connect(ui.checkShowProxyPassword, SIGNAL(toggled(bool)), this, SLOT(showProxyPassword(bool))); 113 connect(ui.checkShowProxyPassword, &QAbstractButton::toggled, this, &Config::showProxyPassword);
114 // delete this dialog after it finished automatically. 114 // delete this dialog after it finished automatically.
115 connect(this, SIGNAL(finished(int)), this, SLOT(deleteLater())); 115 connect(this, &QDialog::finished, this, &QObject::deleteLater);
116 116
117 setUserSettings(); 117 setUserSettings();
118 setDevices(); 118 setDevices();
@@ -285,7 +285,7 @@ void Config::setUserSettings()
285 ui.listLanguages->setCurrentItem(a.at(0)); 285 ui.listLanguages->setCurrentItem(a.at(0));
286 // don't connect before language list has been set up to prevent 286 // don't connect before language list has been set up to prevent
287 // triggering the signal by selecting the saved language. 287 // triggering the signal by selecting the saved language.
288 connect(ui.listLanguages, SIGNAL(itemSelectionChanged()), this, SLOT(updateLanguage())); 288 connect(ui.listLanguages, &QListWidget::itemSelectionChanged, this, &Config::updateLanguage);
289 289
290 // devices tab 290 // devices tab
291 refreshMountpoint(); 291 refreshMountpoint();