[PATCH] Rename slot to get rid of auto-connect warning

Sergey Starosek sergey.starosek at gmail.com
Sat Jun 28 04:01:51 PDT 2014


Signed-off-by: Sergey Starosek <sergey.starosek at gmail.com>
---
 qt-ui/preferences.cpp | 4 ++--
 qt-ui/preferences.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/qt-ui/preferences.cpp b/qt-ui/preferences.cpp
index 6d16b81..ef37c10 100644
--- a/qt-ui/preferences.cpp
+++ b/qt-ui/preferences.cpp
@@ -25,7 +25,7 @@ PreferencesDialog::PreferencesDialog(QWidget *parent, Qt::WindowFlags f) : QDial
 	ui.proxyType->addItem(tr("HTTP proxy"), QNetworkProxy::HttpProxy);
 	ui.proxyType->addItem(tr("SOCKS proxy"), QNetworkProxy::Socks5Proxy);
 	ui.proxyType->setCurrentIndex(-1);
-	connect(ui.proxyType, SIGNAL(currentIndexChanged(int)), this, SLOT(on_proxyType_changed(int)));
+	connect(ui.proxyType, SIGNAL(currentIndexChanged(int)), this, SLOT(proxyType_changed(int)));
 	connect(ui.buttonBox, SIGNAL(clicked(QAbstractButton *)), this, SLOT(buttonClicked(QAbstractButton *)));
 	connect(ui.gflow, SIGNAL(valueChanged(int)), this, SLOT(gflowChanged(int)));
 	connect(ui.gfhigh, SIGNAL(valueChanged(int)), this, SLOT(gfhighChanged(int)));
@@ -413,7 +413,7 @@ void PreferencesDialog::emitSettingsChanged()
 	emit settingsChanged();
 }
 
-void PreferencesDialog::on_proxyType_changed(int idx)
+void PreferencesDialog::proxyType_changed(int idx)
 {
 	if (idx == -1) {
 		return;
diff --git a/qt-ui/preferences.h b/qt-ui/preferences.h
index eb7066b..ac54cc0 100644
--- a/qt-ui/preferences.h
+++ b/qt-ui/preferences.h
@@ -27,7 +27,7 @@ slots:
 	void rememberPrefs();
 	void gflowChanged(int gf);
 	void gfhighChanged(int gf);
-	void on_proxyType_changed(int idx);
+	void proxyType_changed(int idx);
 
 private:
 	explicit PreferencesDialog(QWidget *parent = 0, Qt::WindowFlags f = 0);
-- 
1.8.5.5



More information about the subsurface mailing list