mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix selection in input area by mouse
This commit is contained in:
parent
c64887cfa8
commit
39a0a340d8
2 changed files with 56 additions and 13 deletions
|
@ -55,27 +55,69 @@ Rectangle {
|
||||||
state: TimelineManager.callState
|
state: TimelineManager.callState
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "OFFERSENT"; when: state == WebRTCState.OFFERSENT
|
name: "OFFERSENT"
|
||||||
PropertyChanges { target: callStateLabel; text: "Calling..." }
|
when: state == WebRTCState.OFFERSENT
|
||||||
|
|
||||||
|
PropertyChanges {
|
||||||
|
target: callStateLabel
|
||||||
|
text: "Calling..."
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
name: "CONNECTING"; when: state == WebRTCState.CONNECTING
|
name: "CONNECTING"
|
||||||
PropertyChanges { target: callStateLabel; text: "Connecting..." }
|
when: state == WebRTCState.CONNECTING
|
||||||
|
|
||||||
|
PropertyChanges {
|
||||||
|
target: callStateLabel
|
||||||
|
text: "Connecting..."
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
name: "ANSWERSENT"; when: state == WebRTCState.ANSWERSENT
|
name: "ANSWERSENT"
|
||||||
PropertyChanges { target: callStateLabel; text: "Connecting..." }
|
when: state == WebRTCState.ANSWERSENT
|
||||||
|
|
||||||
|
PropertyChanges {
|
||||||
|
target: callStateLabel
|
||||||
|
text: "Connecting..."
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
name: "CONNECTED"; when: state == WebRTCState.CONNECTED
|
name: "CONNECTED"
|
||||||
PropertyChanges { target: callStateLabel; text: "00:00" }
|
when: state == WebRTCState.CONNECTED
|
||||||
PropertyChanges { target: callTimer; startTime: Math.floor((new Date()).getTime() / 1000) }
|
|
||||||
PropertyChanges { target: stackLayout; currentIndex: TimelineManager.onVideoCall ? 1 : 0 }
|
PropertyChanges {
|
||||||
|
target: callStateLabel
|
||||||
|
text: "00:00"
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyChanges {
|
||||||
|
target: callTimer
|
||||||
|
startTime: Math.floor((new Date()).getTime() / 1000)
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyChanges {
|
||||||
|
target: stackLayout
|
||||||
|
currentIndex: TimelineManager.onVideoCall ? 1 : 0
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
name: "DISCONNECTED"; when: state == WebRTCState.DISCONNECTED
|
name: "DISCONNECTED"
|
||||||
PropertyChanges { target: callStateLabel; text: "" }
|
when: state == WebRTCState.DISCONNECTED
|
||||||
PropertyChanges { target: stackLayout; currentIndex: 0 }
|
|
||||||
|
PropertyChanges {
|
||||||
|
target: callStateLabel
|
||||||
|
text: ""
|
||||||
|
}
|
||||||
|
|
||||||
|
PropertyChanges {
|
||||||
|
target: stackLayout
|
||||||
|
currentIndex: 0
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -82,6 +82,7 @@ Rectangle {
|
||||||
popup.completer.setSearchString(textArea.getText(completerTriggeredAt, cursorPosition));
|
popup.completer.setSearchString(textArea.getText(completerTriggeredAt, cursorPosition));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
selectByMouse: true
|
||||||
placeholderText: qsTr("Write a message...")
|
placeholderText: qsTr("Write a message...")
|
||||||
placeholderTextColor: colors.buttonText
|
placeholderTextColor: colors.buttonText
|
||||||
color: colors.text
|
color: colors.text
|
||||||
|
|
Loading…
Reference in a new issue