@ -4,7 +4,7 @@
SPDX - License - Identifier: GPL - 2.0 - or - later
* /
import QtQuick 2.12
import QtQuick 2.15
import QtQuick . Layouts 1.1
import QtQuick . Controls 2.5 as QQC2
@ -173,18 +173,36 @@ KCM.SimpleKCM {
}
/ / I n f o r m a b o u t g e o l o c a t i o n a c c e s s i n a u t o m o d e
QQC2 . Label {
/ / T h e s y s t e m s e t t i n g s w i n d o w l i k e s t o t a k e o v e r
/ / t h e c u r s o r w i t h a p l a i n l a b e l . T h e T e x t E d i t
/ / ' t a k e s p r i o r i t y ' o v e r t h e s y s t e m s e t t i n g s
/ / w i n d o w t r y i n g t o e a t t h e m o u s e , a l l o w i n g
/ / u s t o u s e t h e H o v e r H a n d l e r b o i l e r p l a t e f o r
/ / p r o p e r l i n k h a n d l i n g
TextEdit {
Layout.maximumWidth: modeSwitcher . width
visible: modeSwitcher . currentIndex === NightColorMode . Automatic
enabled: activator . checked
textFormat: TextEdit . RichText
wrapMode: Text . Wrap
readOnly: true
color: Kirigami . Theme . textColor
selectedTextColor: Kirigami . Theme . highlightedTextColor
selectionColor: Kirigami . Theme . highlightColor
text: xi18nc ( "@info" , "The device's location will be periodically updated using GPS (if available), or by sending network information to <link url='https://location.services.mozilla.com'>Mozilla Location Service</link>." )
font: Kirigami . Theme . smallFont
onLinkActivated: ( url ) = > Qt . openUrlExternally ( url )
HoverHandler {
acceptedButtons: Qt . NoButton
cursorShape: parent . hoveredLink ? Qt.PointingHandCursor : Qt . ArrowCursor
}
}
/ / W o r k a r o u n d f o r L a y o u t . m a r g i n s n o t w o r k i n g i n K i r i g a m i F o r m L a y o u t ( b u g 4 3 4 6 2 5 )