mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2025-07-02 16:15:28 +08:00
add hotkey
This commit is contained in:
26
example/qml/window/HotkeyWindow.qml
Normal file
26
example/qml/window/HotkeyWindow.qml
Normal file
@ -0,0 +1,26 @@
|
||||
import QtQuick 2.15
|
||||
import QtQuick.Controls 2.15
|
||||
import QtQuick.Layouts 1.15
|
||||
import FluentUI 1.0
|
||||
import "../component"
|
||||
|
||||
FluWindow {
|
||||
|
||||
id: window
|
||||
property string sequence: ""
|
||||
title: qsTr("Hotkey")
|
||||
width: 250
|
||||
height: 250
|
||||
fixSize: true
|
||||
launchMode: FluWindowType.SingleInstance
|
||||
onInitArgument:
|
||||
(argument)=>{
|
||||
window.sequence = argument.sequence
|
||||
}
|
||||
FluText{
|
||||
anchors.centerIn: parent
|
||||
color: FluTheme.primaryColor
|
||||
font: FluTextStyle.Title
|
||||
text: window.sequence
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user