FluentUI/Gallery/res/qml/page/T_DelayButton.qml
yxdy a44db97aa3
Some checks failed
Gallery App Build / Windows (push) Has been cancelled
Gallery App Build / macOS (push) Has been cancelled
Gallery App Build / Ubuntu (push) Has been cancelled
init
2025-02-12 10:31:20 +08:00

39 lines
708 B
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import FluentUI.Controls
import Gallery
ScrollablePage {
title: qsTr("DelayButton")
columnSpacing: 24
CardHighlight{
Layout.fillWidth: true
codeSnippet:
`import QtQuick
import QtQuick.Controls
import FluentUI.Controls
import FluentUI.impl
Column{
width: parent.width
spacing: 20
Label {
width: parent.width
wrapMode: Label.Wrap
text: qsTr("DelayButton is a checkable button that incorporates a delay before the "
+ "button is activated. This delay prevents accidental presses.")
}
DelayButton {
text: qsTr("DelayButton")
}
}
`}
}