mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
Qt api update
Qt::MidButton': MidButton is deprecated. Use MiddleButton instead
This commit is contained in:
parent
57ca7ce1a3
commit
ddc9f222cb
1 changed files with 4 additions and 0 deletions
|
@ -132,7 +132,11 @@ AndroidMotioneventButtons InputConvertNormal::convertMouseButtons(Qt::MouseButto
|
|||
if (buttonState & Qt::RightButton) {
|
||||
buttons |= AMOTION_EVENT_BUTTON_SECONDARY;
|
||||
}
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
|
||||
if (buttonState & Qt::MiddleButton) {
|
||||
#else
|
||||
if (buttonState & Qt::MidButton) {
|
||||
#endif
|
||||
buttons |= AMOTION_EVENT_BUTTON_TERTIARY;
|
||||
}
|
||||
if (buttonState & Qt::XButton1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue