1
0
mirror of https://github.com/KDE/krfb synced 2026-07-01 07:41:17 -07:00

Use QList directly

This commit is contained in:
Laurent Montel
2024-04-12 07:03:32 +02:00
parent 014ced6e67
commit 882447a1af
5 changed files with 6 additions and 6 deletions

View File

@@ -81,7 +81,7 @@ void XdpEventHandler::handlePointer(int buttonMask, int x, int y)
if (buttonMask != data->buttonMask) {
int i = 0;
QVector<int> buttons = { BTN_LEFT, BTN_MIDDLE, BTN_RIGHT, 0, 0, 0, 0, BTN_SIDE, BTN_EXTRA };
QList<int> buttons = { BTN_LEFT, BTN_MIDDLE, BTN_RIGHT, 0, 0, 0, 0, BTN_SIDE, BTN_EXTRA };
for (auto it = buttons.constBegin(); it != buttons.constEnd(); ++it) {
int prevButtonState = (data->buttonMask >> i) & 0x01;
int currentButtonState = (buttonMask >> i) & 0x01;