2023-08-24 15:50:37 +08:00
|
|
|
import QtQuick 2.15
|
|
|
|
import QtQuick.Controls 2.15
|
|
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import QtQuick.Window 2.15
|
|
|
|
import FluentUI 1.0
|
2023-08-26 17:20:30 +08:00
|
|
|
import "../component"
|
2023-05-09 19:52:35 +08:00
|
|
|
|
|
|
|
FluScrollablePage{
|
|
|
|
|
2024-03-09 15:35:48 +08:00
|
|
|
title: qsTr("Text")
|
2023-05-09 19:52:35 +08:00
|
|
|
|
2024-03-29 16:56:09 +08:00
|
|
|
FluFrame{
|
2023-05-09 19:52:35 +08:00
|
|
|
Layout.fillWidth: true
|
2024-03-29 16:23:16 +08:00
|
|
|
Layout.preferredHeight: 60
|
|
|
|
padding: 10
|
2023-05-09 19:52:35 +08:00
|
|
|
|
|
|
|
FluCopyableText{
|
2024-11-25 14:59:18 +08:00
|
|
|
enabled: !toggle_switch.checked
|
2024-03-09 15:35:48 +08:00
|
|
|
text: qsTr("This is a text that can be copied")
|
2023-05-09 19:52:35 +08:00
|
|
|
anchors.verticalCenter: parent.verticalCenter
|
|
|
|
}
|
|
|
|
|
2024-11-25 14:59:18 +08:00
|
|
|
FluToggleSwitch{
|
|
|
|
id: toggle_switch
|
|
|
|
anchors{
|
|
|
|
right: parent.right
|
|
|
|
verticalCenter: parent.verticalCenter
|
|
|
|
}
|
|
|
|
text: qsTr("Disabled")
|
|
|
|
}
|
2023-05-09 19:52:35 +08:00
|
|
|
}
|
|
|
|
CodeExpander{
|
|
|
|
Layout.fillWidth: true
|
2024-03-29 16:23:16 +08:00
|
|
|
Layout.topMargin: -6
|
2023-05-09 19:52:35 +08:00
|
|
|
code:'FluCopyableText{
|
2024-03-09 15:35:48 +08:00
|
|
|
text: qsTr("This is a text that can be copied")
|
2023-05-09 19:52:35 +08:00
|
|
|
}'
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|