summary refs log tree commit diff
path: root/src/LoginPage.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-01-28 15:24:56 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-01-28 15:24:56 +0100
commitf28013dc181e279b6659484c7b4a46746fbd2eb3 (patch)
tree8db3d471a14383c0a21ed1bb14d59800554381a9 /src/LoginPage.h
parentRemove some unused functions (diff)
downloadnheko-f28013dc181e279b6659484c7b4a46746fbd2eb3.tar.xz
Port registration to Qml
Diffstat (limited to 'src/LoginPage.h')
-rw-r--r--src/LoginPage.h30
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();