Warning, /maui/mauikit/src/style.5/Label.qml is written in an unsupported language. File is not indexed.
0001 /* 0002 * Copyright 2017 Marco Martin <mart@kde.org> 0003 * Copyright 2017 The Qt Company Ltd. 0004 * 0005 * GNU Lesser General Public License Usage 0006 * Alternatively, this file may be used under the terms of the GNU Lesser 0007 * General Public License version 3 as published by the Free Software 0008 * Foundation and appearing in the file LICENSE.LGPLv3 included in the 0009 * packaging of this file. Please review the following information to 0010 * ensure the GNU Lesser General Public License version 3 requirements 0011 * will be met: https://www.gnu.org/licenses/lgpl.html. 0012 * 0013 * GNU General Public License Usage 0014 * Alternatively, this file may be used under the terms of the GNU 0015 * General Public License version 2.0 or later as published by the Free 0016 * Software Foundation and appearing in the file LICENSE.GPL included in 0017 * the packaging of this file. Please review the following information to 0018 * ensure the GNU General Public License version 2.0 requirements will be 0019 * met: http://www.gnu.org/licenses/gpl-2.0.html. 0020 */ 0021 0022 0023 import QtQuick 2.15 0024 import QtQuick.Window 2.15 0025 import QtQuick.Templates 2.15 as T 0026 import org.mauikit.controls 1.3 as Maui 0027 0028 T.Label 0029 { 0030 id: control 0031 0032 verticalAlignment: lineCount > 1 ? Text.AlignTop : Text.AlignVCenter 0033 0034 activeFocusOnTab: false 0035 focus: false 0036 //Text.NativeRendering is broken on non integer pixel ratios 0037 renderType: Window.devicePixelRatio % 1 !== 0 ? Text.QtRendering : Text.NativeRendering 0038 0039 0040 font.capitalization: Maui.Style.defaultFont.capitalization 0041 font.family: Maui.Style.defaultFont.family 0042 font.italic: Maui.Style.defaultFont.italic 0043 font.letterSpacing: Maui.Style.defaultFont.letterSpacing 0044 font.pointSize: Maui.Style.defaultFont.pointSize 0045 font.strikeout: Maui.Style.defaultFont.strikeout 0046 font.underline: Maui.Style.defaultFont.underline 0047 font.weight: Maui.Style.defaultFont.weight 0048 font.wordSpacing: Maui.Style.defaultFont.wordSpacing 0049 0050 color: Maui.Theme.textColor 0051 linkColor: Maui.Theme.linkColor 0052 0053 opacity: enabled? 1 : 0.6 0054 0055 Accessible.role: Accessible.StaticText 0056 Accessible.name: text 0057 0058 MouseArea 0059 { 0060 anchors.fill: parent 0061 cursorShape: control.hoveredLink ? Qt.PointingHandCursor : Qt.ArrowCursor 0062 acceptedButtons: Qt.NoButton // Not actually accepting clicks, just changing the cursor 0063 } 0064 }