From afa1ec6a4dd041b05ba7094a3bfa36ef3b282ac0 Mon Sep 17 00:00:00 2001 From: Torrie Fischer Date: Mon, 10 Oct 2022 10:41:30 +0200 Subject: [PATCH] component: login: loading: Use a fancy LoadingPlaceholder instead of boring static text --- imports/NeoChat/Component/Login/Loading.qml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/imports/NeoChat/Component/Login/Loading.qml b/imports/NeoChat/Component/Login/Loading.qml index 8a752f71f..8a09220dd 100644 --- a/imports/NeoChat/Component/Login/Loading.qml +++ b/imports/NeoChat/Component/Login/Loading.qml @@ -5,24 +5,17 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 as QQC2 import QtQuick.Layouts 1.15 -import org.kde.kirigami 2.15 as Kirigami +import org.kde.kirigami 2.19 as Kirigami import org.kde.neochat 1.0 import NeoChat.Component 1.0 -Kirigami.PlaceholderMessage { +Kirigami.LoadingPlaceholder { property var showContinueButton: false property var showBackButton: false - property string title: i18n("Loading…") + text: i18n("Synchronizing with your homeserver…") anchors.centerIn: parent - QQC2.Label { - text: i18n("Please wait. This might take a little while.") - } - - QQC2.BusyIndicator { - Layout.alignment: Qt.AlignHCenter - running: false - } + explanation: i18n("Please wait. This might take a little while.") }