diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-01-28 15:24:56 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-01-28 15:24:56 +0100 |
commit | f28013dc181e279b6659484c7b4a46746fbd2eb3 (patch) | |
tree | 8db3d471a14383c0a21ed1bb14d59800554381a9 /src/LoginPage.h | |
parent | Remove some unused functions (diff) | |
download | nheko-f28013dc181e279b6659484c7b4a46746fbd2eb3.tar.xz |
Port registration to Qml
Diffstat (limited to 'src/LoginPage.h')
-rw-r--r-- | src/LoginPage.h | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/src/LoginPage.h b/src/LoginPage.h index a613bb48..9a1b9653 100644 --- a/src/LoginPage.h +++ b/src/LoginPage.h @@ -67,6 +67,22 @@ public: onMatrixIdEntered(); } } + + static std::string initialDeviceName_() + { +#if defined(Q_OS_MAC) + return "Nheko on macOS"; +#elif defined(Q_OS_LINUX) + return "Nheko on Linux"; +#elif defined(Q_OS_WIN) + return "Nheko on Windows"; +#elif defined(Q_OS_FREEBSD) + return "Nheko on FreeBSD"; +#else + return "Nheko"; +#endif + } + signals: void loggingInChanged(); void errorOccurred(); @@ -105,20 +121,6 @@ public slots: private: void checkHomeserverVersion(); void onMatrixIdEntered(); - std::string initialDeviceName_() const - { -#if defined(Q_OS_MAC) - return "Nheko on macOS"; -#elif defined(Q_OS_LINUX) - return "Nheko on Linux"; -#elif defined(Q_OS_WIN) - return "Nheko on Windows"; -#elif defined(Q_OS_FREEBSD) - return "Nheko on FreeBSD"; -#else - return "Nheko"; -#endif - } void clearErrors() { error_.clear(); |