summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jan@casacondor.com>2019-12-12 12:39:29 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-12-12 10:10:01 -0500
commitaefe87112ae5549714956b34e7f5a4deaab60e09 (patch)
tree3c157be5476c235f4840a3a6554aa796393f6c0d
parent786b0db724e62c5ac1bae941a85d8446ff0a6205 (diff)
downloadsubsurface-aefe87112ae5549714956b34e7f5a4deaab60e09.tar.gz
core: divehare change slot names
change slot names from slot_* to *Slot Signed-off-by: Jan Iversen <jan@casacondor.com>
-rw-r--r--core/uploadDiveShare.cpp16
-rw-r--r--core/uploadDiveShare.h8
2 files changed, 12 insertions, 12 deletions
diff --git a/core/uploadDiveShare.cpp b/core/uploadDiveShare.cpp
index cc5b90ca6..3d75abf9a 100644
--- a/core/uploadDiveShare.cpp
+++ b/core/uploadDiveShare.cpp
@@ -46,18 +46,18 @@ void uploadDiveShare::doUpload(bool selected, const QString &uid, bool noPublic)
reply = manager()->put(request, json_data);
// connect signals from upload process
- connect(reply, SIGNAL(finished()), this, SLOT(slot_uploadFinished()));
+ connect(reply, SIGNAL(finished()), this, SLOT(uploadFinishedSlot()));
connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), this,
- SLOT(slot_uploadError(QNetworkReply::NetworkError)));
+ SLOT(uploadErrorSlot(QNetworkReply::NetworkError)));
connect(reply, SIGNAL(uploadProgress(qint64, qint64)), this,
- SLOT(slot_updateProgress(qint64, qint64)));
- connect(&timeout, SIGNAL(timeout()), this, SLOT(slot_uploadTimeout()));
+ SLOT(updateProgressSlot(qint64, qint64)));
+ connect(&timeout, SIGNAL(timeout()), this, SLOT(uploadTimeoutSlot()));
timeout.start(30000); // 30s
}
-void uploadDiveShare::slot_updateProgress(qint64 current, qint64 total)
+void uploadDiveShare::updateProgressSlot(qint64 current, qint64 total)
{
if (!reply)
return;
@@ -74,7 +74,7 @@ void uploadDiveShare::slot_updateProgress(qint64 current, qint64 total)
}
-void uploadDiveShare::slot_uploadFinished()
+void uploadDiveShare::uploadFinishedSlot()
{
reply->deleteLater();
timeout.stop();
@@ -86,7 +86,7 @@ void uploadDiveShare::slot_uploadFinished()
}
-void uploadDiveShare::slot_uploadTimeout()
+void uploadDiveShare::uploadTimeoutSlot()
{
timeout.stop();
if (reply) {
@@ -99,7 +99,7 @@ void uploadDiveShare::slot_uploadTimeout()
}
-void uploadDiveShare::slot_uploadError(QNetworkReply::NetworkError error)
+void uploadDiveShare::uploadErrorSlot(QNetworkReply::NetworkError error)
{
timeout.stop();
if (reply) {
diff --git a/core/uploadDiveShare.h b/core/uploadDiveShare.h
index 88ac2c519..fdd941e67 100644
--- a/core/uploadDiveShare.h
+++ b/core/uploadDiveShare.h
@@ -13,10 +13,10 @@ public:
void doUpload(bool selected, const QString &uid, bool noPublic);
private slots:
- void slot_updateProgress(qint64 current, qint64 total);
- void slot_uploadFinished();
- void slot_uploadTimeout();
- void slot_uploadError(QNetworkReply::NetworkError error);
+ void updateProgressSlot(qint64 current, qint64 total);
+ void uploadFinishedSlot();
+ void uploadTimeoutSlot();
+ void uploadErrorSlot(QNetworkReply::NetworkError error);
signals:
void uploadFinish(bool success, const QString &text, const QByteArray &html);