From 25292a4c7cbd92c1430281065e5e487d6179e4a5 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Thu, 5 Mar 2020 13:16:54 +0100 Subject: [PATCH] Add link to help pages if it can't connect I don't know what the link is supposed to be linking to though. Yet. Contributes to issue CURA-7017. --- resources/qml/WelcomePages/AddPrinterByIpContent.qml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/qml/WelcomePages/AddPrinterByIpContent.qml b/resources/qml/WelcomePages/AddPrinterByIpContent.qml index 5ab0217f01..a28a3149ce 100644 --- a/resources/qml/WelcomePages/AddPrinterByIpContent.qml +++ b/resources/qml/WelcomePages/AddPrinterByIpContent.qml @@ -197,17 +197,20 @@ Item renderType: Text.NativeRendering visible: addPrinterByIpScreen.hasRequestInProgress || (addPrinterByIpScreen.hasRequestFinished && !addPrinterByIpScreen.isPrinterDiscovered) + textFormat: Text.RichText text: { if (addPrinterByIpScreen.hasRequestFinished) { - catalog.i18nc("@label", "Could not connect to device.") + return catalog.i18nc("@label", "Could not connect to device."); } else { - catalog.i18nc("@label", "The printer at this address has not responded yet.") + return catalog.i18nc("@label", "The printer at this address has not responded yet.") + "

" + + catalog.i18nc("@label", "Can't connect to your printer?") + ""; } } + onLinkActivated: Qt.openUrlExternally(link) } Item