From 3155b039175436f3d32f5c1719a56f99dadf2f5f Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Fri, 27 Dec 2019 14:05:47 +0100 Subject: [PATCH] mobile-widgets: make verifyCredentials() an internal function Move verifyCredentials() from public slots to private, eliminating the need to MOC and making the C++/QML interface on function less complicated. Signed-off-by: Jan Iversen Signed-off-by: Dirk Hohndel --- mobile-widgets/qmlmanager.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h index 12a8496e8..281d20778 100644 --- a/mobile-widgets/qmlmanager.h +++ b/mobile-widgets/qmlmanager.h @@ -168,7 +168,6 @@ public slots: void appInitialized(); void applicationStateChanged(Qt::ApplicationState state); void saveCloudCredentials(const QString &email, const QString &password, const QString &pin); - bool verifyCredentials(QString email, QString password, QString pin); void tryRetrieveDataFromBackend(); void handleError(QNetworkReply::NetworkError nError); void handleSslErrors(const QList &errors); @@ -267,6 +266,8 @@ private: struct dive *m_copyPasteDive = NULL; struct dive_components what; + bool verifyCredentials(QString email, QString password, QString pin); + #if defined(Q_OS_ANDROID) || defined(Q_OS_IOS) QString appLogFileName; QFile appLogFile;