mirror of
https://github.com/Qsgs-Fans/FreeKill.git
synced 2024-11-16 19:58:13 +08:00
2acec5f20a
重组qml文件,使用qmldir文件实现模块化
33 lines
817 B
QML
33 lines
817 B
QML
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
import QtQuick
|
|
import Qt5Compat.GraphicalEffects
|
|
|
|
Item {
|
|
property alias text: textItem.text
|
|
property alias color: textItem.color
|
|
property alias font: textItem.font
|
|
property alias fontSizeMode: textItem.fontSizeMode
|
|
property alias horizontalAlignment: textItem.horizontalAlignment
|
|
property alias verticalAlignment: textItem.verticalAlignment
|
|
property alias style: textItem.style
|
|
property alias styleColor: textItem.styleColor
|
|
property alias wrapMode: textItem.wrapMode
|
|
property alias lineHeight: textItem.lineHeight
|
|
property alias glow: glowItem
|
|
|
|
width: textItem.implicitWidth
|
|
height: textItem.implicitHeight
|
|
|
|
Text {
|
|
id: textItem
|
|
anchors.fill: parent
|
|
}
|
|
|
|
Glow {
|
|
id: glowItem
|
|
source: textItem
|
|
anchors.fill: textItem
|
|
}
|
|
}
|