mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-12-01 15:32:21 +08:00
Compare commits
No commits in common. "2f4b4ee85e71f771ed8e67052e1b8a57c8040dcf" and "fdaaa85541b7dab3445ad7ea005cc021341ce0fb" have entirely different histories.
2f4b4ee85e
...
fdaaa85541
@ -16,7 +16,7 @@ FluExpander{
|
||||
id:content
|
||||
width:parent.width
|
||||
text:highlightQmlCode(code)
|
||||
textFormat: FluCopyableText.RichText
|
||||
textFormat: FluMultilineTextBox.RichText
|
||||
padding: 10
|
||||
topPadding: 10
|
||||
leftPadding: 10
|
||||
|
@ -26,24 +26,10 @@ TextEdit {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.IBeamCursor
|
||||
acceptedButtons: Qt.RightButton
|
||||
onClicked: control.echoMode !== TextInput.Password && menu_loader.popup()
|
||||
onClicked: control.echoMode !== TextInput.Password && menu.popup()
|
||||
}
|
||||
FluLoader{
|
||||
id: menu_loader
|
||||
function popup(){
|
||||
sourceComponent = menu
|
||||
}
|
||||
}
|
||||
Component{
|
||||
FluTextBoxMenu{
|
||||
id:menu
|
||||
FluTextBoxMenu{
|
||||
inputItem: control
|
||||
Component.onCompleted: {
|
||||
popup()
|
||||
}
|
||||
onClosed: {
|
||||
menu_loader.sourceComponent = undefined
|
||||
}
|
||||
}
|
||||
inputItem: control
|
||||
}
|
||||
}
|
||||
|
@ -71,25 +71,11 @@ TextArea{
|
||||
if(control.readOnly && control.text === ""){
|
||||
return
|
||||
}
|
||||
menu_loader.popup()
|
||||
menu.popup()
|
||||
}
|
||||
}
|
||||
FluLoader{
|
||||
id: menu_loader
|
||||
function popup(){
|
||||
sourceComponent = menu
|
||||
}
|
||||
}
|
||||
Component{
|
||||
FluTextBoxMenu{
|
||||
id:menu
|
||||
FluTextBoxMenu{
|
||||
Component.onCompleted: {
|
||||
popup()
|
||||
}
|
||||
inputItem: control
|
||||
onClosed: {
|
||||
menu_loader.sourceComponent = undefined
|
||||
}
|
||||
}
|
||||
inputItem: control
|
||||
}
|
||||
}
|
||||
|
@ -65,4 +65,8 @@ TextField{
|
||||
rightMargin: 5
|
||||
}
|
||||
}
|
||||
FluTextBoxMenu{
|
||||
id:menu
|
||||
inputItem: control
|
||||
}
|
||||
}
|
||||
|
@ -69,7 +69,7 @@ TextField{
|
||||
if(control.readOnly && control.text === ""){
|
||||
return
|
||||
}
|
||||
menu_loader.popup()
|
||||
menu.popup()
|
||||
}
|
||||
}
|
||||
RowLayout{
|
||||
@ -111,22 +111,8 @@ TextField{
|
||||
visible: control.iconSource != 0
|
||||
}
|
||||
}
|
||||
FluLoader{
|
||||
id: menu_loader
|
||||
function popup(){
|
||||
sourceComponent = menu
|
||||
}
|
||||
}
|
||||
Component{
|
||||
FluTextBoxMenu{
|
||||
id:menu
|
||||
FluTextBoxMenu{
|
||||
inputItem: control
|
||||
Component.onCompleted: {
|
||||
popup()
|
||||
}
|
||||
onClosed: {
|
||||
menu_loader.sourceComponent = undefined
|
||||
}
|
||||
}
|
||||
inputItem: control
|
||||
}
|
||||
}
|
||||
|
@ -26,24 +26,10 @@ TextEdit {
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.IBeamCursor
|
||||
acceptedButtons: Qt.RightButton
|
||||
onClicked: control.echoMode !== TextInput.Password && menu_loader.popup()
|
||||
onClicked: control.echoMode !== TextInput.Password && menu.popup()
|
||||
}
|
||||
FluLoader{
|
||||
id: menu_loader
|
||||
function popup(){
|
||||
sourceComponent = menu
|
||||
}
|
||||
}
|
||||
Component{
|
||||
FluTextBoxMenu{
|
||||
id:menu
|
||||
FluTextBoxMenu{
|
||||
inputItem: control
|
||||
Component.onCompleted: {
|
||||
popup()
|
||||
}
|
||||
onClosed: {
|
||||
menu_loader.sourceComponent = undefined
|
||||
}
|
||||
}
|
||||
inputItem: control
|
||||
}
|
||||
}
|
||||
|
@ -72,25 +72,11 @@ TextArea{
|
||||
if(control.readOnly && control.text === ""){
|
||||
return
|
||||
}
|
||||
menu_loader.popup()
|
||||
menu.popup()
|
||||
}
|
||||
}
|
||||
FluLoader{
|
||||
id: menu_loader
|
||||
function popup(){
|
||||
sourceComponent = menu
|
||||
}
|
||||
}
|
||||
Component{
|
||||
FluTextBoxMenu{
|
||||
id:menu
|
||||
FluTextBoxMenu{
|
||||
inputItem: control
|
||||
Component.onCompleted: {
|
||||
popup()
|
||||
}
|
||||
onClosed: {
|
||||
menu_loader.sourceComponent = undefined
|
||||
}
|
||||
}
|
||||
inputItem: control
|
||||
}
|
||||
}
|
||||
|
@ -66,4 +66,8 @@ TextField{
|
||||
rightMargin: 5
|
||||
}
|
||||
}
|
||||
FluTextBoxMenu{
|
||||
id:menu
|
||||
inputItem: control
|
||||
}
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ TextField{
|
||||
if(control.readOnly && control.text === ""){
|
||||
return
|
||||
}
|
||||
menu_loader.popup()
|
||||
menu.popup()
|
||||
}
|
||||
}
|
||||
RowLayout{
|
||||
@ -112,22 +112,8 @@ TextField{
|
||||
visible: control.iconSource != 0
|
||||
}
|
||||
}
|
||||
FluLoader{
|
||||
id: menu_loader
|
||||
function popup(){
|
||||
sourceComponent = menu
|
||||
}
|
||||
}
|
||||
Component{
|
||||
FluTextBoxMenu{
|
||||
id:menu
|
||||
FluTextBoxMenu{
|
||||
inputItem: control
|
||||
Component.onCompleted: {
|
||||
popup()
|
||||
}
|
||||
onClosed: {
|
||||
menu_loader.sourceComponent = undefined
|
||||
}
|
||||
}
|
||||
inputItem: control
|
||||
}
|
||||
}
|
||||
|
@ -232,8 +232,7 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Qt5/imports/FluentUI/Controls/FluShortcutPicker.qml" line="204"/>
|
||||
<location filename="Qt6/imports/FluentUI/Controls/FluShortcutPicker.qml" line="204"/>
|
||||
<location filename="Qt6/imports/FluentUI/Controls/FluShortcutPicker.qml" line="205"/>
|
||||
<source>Conflict</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -355,8 +354,8 @@
|
||||
<context>
|
||||
<name>FluWindow</name>
|
||||
<message>
|
||||
<location filename="Qt5/imports/FluentUI/Controls/FluWindow.qml" line="354"/>
|
||||
<location filename="Qt6/imports/FluentUI/Controls/FluWindow.qml" line="354"/>
|
||||
<location filename="Qt5/imports/FluentUI/Controls/FluWindow.qml" line="347"/>
|
||||
<location filename="Qt6/imports/FluentUI/Controls/FluWindow.qml" line="346"/>
|
||||
<source>Loading...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
@ -232,8 +232,7 @@
|
||||
<translation type="unfinished">重置</translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="Qt5/imports/FluentUI/Controls/FluShortcutPicker.qml" line="204"/>
|
||||
<location filename="Qt6/imports/FluentUI/Controls/FluShortcutPicker.qml" line="204"/>
|
||||
<location filename="Qt6/imports/FluentUI/Controls/FluShortcutPicker.qml" line="205"/>
|
||||
<source>Conflict</source>
|
||||
<translation type="unfinished">冲突</translation>
|
||||
</message>
|
||||
@ -355,8 +354,8 @@
|
||||
<context>
|
||||
<name>FluWindow</name>
|
||||
<message>
|
||||
<location filename="Qt5/imports/FluentUI/Controls/FluWindow.qml" line="354"/>
|
||||
<location filename="Qt6/imports/FluentUI/Controls/FluWindow.qml" line="354"/>
|
||||
<location filename="Qt5/imports/FluentUI/Controls/FluWindow.qml" line="347"/>
|
||||
<location filename="Qt6/imports/FluentUI/Controls/FluWindow.qml" line="346"/>
|
||||
<source>Loading...</source>
|
||||
<translation type="unfinished">加载中...</translation>
|
||||
</message>
|
||||
|
Loading…
Reference in New Issue
Block a user