Commit 0dcb4863 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

const'ify

parent f99b9b20
Pipeline #49514 failed with stage
in 10 minutes and 1 second
......@@ -208,7 +208,7 @@ void SetupManager::setName(const QString &name)
m_name = name;
}
QString SetupManager::name()
QString SetupManager::name() const
{
return m_name;
}
......@@ -218,7 +218,7 @@ void SetupManager::setEmail(const QString &email)
m_email = email;
}
QString SetupManager::email()
QString SetupManager::email() const
{
return m_email;
}
......@@ -228,12 +228,12 @@ void SetupManager::setPassword(const QString &password)
m_password = password;
}
QString SetupManager::password()
QString SetupManager::password() const
{
return m_password;
}
QString SetupManager::country()
QString SetupManager::country() const
{
return QLocale::countryToString(QLocale().country());
}
......@@ -273,7 +273,7 @@ void SetupManager::openWallet()
loop.exec();
}
bool SetupManager::personalDataAvailable()
bool SetupManager::personalDataAvailable() const
{
return m_personalDataAvailable;
}
......
......@@ -41,11 +41,11 @@ public:
QVector<SetupObject *> setupObjects() const;
public Q_SLOTS:
Q_SCRIPTABLE bool personalDataAvailable();
Q_SCRIPTABLE QString name();
Q_SCRIPTABLE QString email();
Q_SCRIPTABLE QString password();
Q_SCRIPTABLE QString country();
Q_SCRIPTABLE bool personalDataAvailable() const;
Q_SCRIPTABLE QString name() const;
Q_SCRIPTABLE QString email() const;
Q_SCRIPTABLE QString password() const;
Q_SCRIPTABLE QString country() const;
/** Ensures the wallet is open for subsequent sync wallet access in the resources. */
Q_SCRIPTABLE void openWallet();
Q_SCRIPTABLE QObject *createResource(const QString &type);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment