Warning, /frameworks/qqc2-desktop-style/org.kde.desktop/Label.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 SPDX-FileCopyrightText: 2017 Marco Martin <mart@kde.org> 0003 SPDX-FileCopyrightText: 2017 The Qt Company Ltd. 0004 0005 SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-or-later 0006 */ 0007 0008 0009 import QtQuick 0010 import QtQuick.Window 0011 import QtQuick.Templates as T 0012 import org.kde.qqc2desktopstyle.private as StylePrivate 0013 import org.kde.kirigami as Kirigami 0014 0015 T.Label { 0016 id: control 0017 0018 // Work around Qt bug where left aligned text is not right aligned 0019 // in RTL mode unless horizontalAlignment is explicitly set. 0020 // https://bugreports.qt.io/browse/QTBUG-95873 0021 horizontalAlignment: Text.AlignLeft 0022 0023 HoverHandler { 0024 // By default HoverHandler accepts the left button while it shouldn't accept anything, 0025 // causing https://bugreports.qt.io/browse/QTBUG-106489. 0026 // Qt.NoButton unfortunately is not a valid value for acceptedButtons. 0027 // Disabling masks the problem, but 0028 // there is no proper workaround other than an upstream fix 0029 enabled: false 0030 cursorShape: parent.hoveredLink ? Qt.PointingHandCursor : undefined 0031 } 0032 0033 color: Kirigami.Theme.textColor 0034 linkColor: Kirigami.Theme.linkColor 0035 font: Kirigami.Theme.defaultFont 0036 }