This commit is contained in:
朱子楚\zhuzi 2023-06-27 21:14:20 +08:00
parent 1566e3934e
commit e25b944704
5 changed files with 15 additions and 13 deletions

View File

@ -14,6 +14,7 @@ TextEdit {
leftPadding: 0
rightPadding: 0
topPadding: 0
selectByMouse: true
selectedTextColor: FluColors.Grey220
bottomPadding: 0
selectionColor: FluTheme.primaryColor.lightest
@ -21,9 +22,11 @@ TextEdit {
onSelectedTextChanged: {
control.forceActiveFocus()
}
TapHandler {
MouseArea{
anchors.fill: parent
cursorShape: Qt.IBeamCursor
acceptedButtons: Qt.RightButton
onTapped: control.echoMode !== TextInput.Password && menu.popup()
onClicked: control.echoMode !== TextInput.Password && menu.popup()
}
FluTextBoxMenu{
id:menu

View File

@ -41,9 +41,11 @@ TextArea{
Keys.onBackPressed: {
control.commit()
}
TapHandler {
MouseArea{
anchors.fill: parent
cursorShape: Qt.IBeamCursor
acceptedButtons: Qt.RightButton
onTapped: control.echoMode !== TextInput.Password && menu.popup()
onClicked: control.echoMode !== TextInput.Password && menu.popup()
}
FluTextBoxMenu{
id:menu

View File

@ -71,10 +71,6 @@ TextField{
rightMargin: icon_end.visible ? 25 : 5
}
}
TapHandler {
acceptedButtons: Qt.RightButton
onTapped: control.echoMode !== TextInput.Password && menu.popup()
}
FluTextBoxMenu{
id:menu
inputItem: control

View File

@ -59,7 +59,6 @@ Rectangle {
}
}
}
ScrollView{
id:scroll_table
anchors.left: header_vertical.right

View File

@ -56,6 +56,12 @@ TextField{
}
}
}
MouseArea{
anchors.fill: parent
cursorShape: Qt.IBeamCursor
acceptedButtons: Qt.RightButton
onClicked: control.echoMode !== TextInput.Password && menu.popup()
}
FluIconButton{
iconSource:FluentIcons.ChromeClose
iconSize: 10
@ -76,10 +82,6 @@ TextField{
control.text = ""
}
}
TapHandler {
acceptedButtons: Qt.RightButton
onTapped: control.echoMode !== TextInput.Password && menu.popup()
}
FluTextBoxMenu{
id:menu
inputItem: control