X-Git-Url: https://gitweb.stoutner.com/?a=blobdiff_plain;f=src%2Ffilters%2FMouseEventFilter.cpp;h=1d08396cf3ea95bcce6e4c13ad3d064b65c50d3a;hb=refs%2Fheads%2Fmaster;hp=b6cb81f3f7a2bf50db90ae656a4aceea6b4e5395;hpb=2facce32fb6d97b52a7dc148044cae4b36a65d4c;p=PrivacyBrowserPC.git diff --git a/src/filters/MouseEventFilter.cpp b/src/filters/MouseEventFilter.cpp index b6cb81f..f1c647c 100644 --- a/src/filters/MouseEventFilter.cpp +++ b/src/filters/MouseEventFilter.cpp @@ -1,20 +1,20 @@ -/* - * Copyright © 2022 Soren Stoutner . +/* SPDX-License-Identifier: GPL-3.0-or-later + * SPDX-FileCopyrightText: 2022, 2024 Soren Stoutner * - * This file is part of Privacy Browser PC . + * This file is part of Privacy Browser PC . * - * Privacy Browser PC is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. + * This program is free software: you can redistribute it and/or modify it under + * the terms of the GNU General Public License as published by the Free Software + * Foundation, either version 3 of the License, or (at your option) any later + * version. * - * Privacy Browser PC is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS + * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. * - * You should have received a copy of the GNU General Public License - * along with Privacy Browser PC. If not, see . + * You should have received a copy of the GNU General Public License along with + * this program. If not, see . */ // Application headers. @@ -34,7 +34,7 @@ bool MouseEventFilter::eventFilter(QObject *objectPointer, QEvent *eventPointer) if (eventPointer->type() == QEvent::MouseButtonPress) { // Tell the compiler to ignore the unused object pointer. - (void)objectPointer; + (void) objectPointer; // Cast the event to a mouse event. QMouseEvent *mouseEventPointer = static_cast(eventPointer); @@ -44,14 +44,14 @@ bool MouseEventFilter::eventFilter(QObject *objectPointer, QEvent *eventPointer) { case (Qt::BackButton): // Tell the WebEngine to go back. - emit mouseBack(); + Q_EMIT mouseBack(); // Consume the event. return true; case (Qt::ForwardButton): // Tell the WebEngine to go forward. - emit mouseForward(); + Q_EMIT mouseForward(); // Consume the event. return true;