docs: 添加涉密文件自检工具实施计划
This commit is contained in:
28
UmiOCR-data/qt_res/qml/Widgets/DefaultTips.qml
Normal file
28
UmiOCR-data/qt_res/qml/Widgets/DefaultTips.qml
Normal file
@@ -0,0 +1,28 @@
|
||||
// =======================================
|
||||
// =============== 默认提示 ===============
|
||||
// =======================================
|
||||
|
||||
import QtQuick 2.15
|
||||
|
||||
// 提示
|
||||
Item {
|
||||
property string tips: "" // 提示文本
|
||||
property var visibleFlag // 只要该变量改变,就永久隐藏该组件
|
||||
property bool first: true
|
||||
|
||||
onVisibleFlagChanged: {
|
||||
if(first) first = false
|
||||
else visible = false
|
||||
}
|
||||
|
||||
Text_ {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.margins: size_.spacing
|
||||
wrapMode: TextEdit.Wrap
|
||||
horizontalAlignment: Text.AlignHCenter
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
text: tips
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user