Task #563 - fixed.err
back to task #563download
Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp: scope_hint: In member function ‘virtual void KDecoration2::Decoration::hoverEnterEvent(QHoverEvent*)’ kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:330:52: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position() # 330 | auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y())); # | ~~~~~~~~~~~^~ /usr/include/qt6/QtGui/QHoverEvent:1: included_from: Included from here. kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:15: included_from: Included from here. /usr/include/qt6/QtGui/qevent.h:265:20: note: declared here # 265 | inline QPointF posF() const { return position(); } # | ^~~~ # 328| QCoreApplication::instance()->sendEvent(button, event); # 329| } # 330|-> auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y())); # 331| d->updateSectionUnderMouse(flooredPos); # 332| } Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:330:83: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position() # 330 | auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y())); # | ~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:265:20: note: declared here # 265 | inline QPointF posF() const { return position(); } # | ^~~~ # 328| QCoreApplication::instance()->sendEvent(button, event); # 329| } # 330|-> auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y())); # 331| d->updateSectionUnderMouse(flooredPos); # 332| } Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp: scope_hint: In member function ‘virtual void KDecoration2::Decoration::hoverMoveEvent(QHoverEvent*)’ kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:349:59: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position() # 349 | const bool contains = button->contains(event->posF()); # | ~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:265:20: note: declared here # 265 | inline QPointF posF() const { return position(); } # | ^~~~ # 347| } # 348| const bool hovered = button->isHovered(); # 349|-> const bool contains = button->contains(event->posF()); # 350| if (!hovered && contains) { # 351| QHoverEvent e(QEvent::HoverEnter, event->posF(), event->oldPosF(), event->modifiers()); Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:351:58: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position() # 351 | QHoverEvent e(QEvent::HoverEnter, event->posF(), event->oldPosF(), event->modifiers()); # | ~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:265:20: note: declared here # 265 | inline QPointF posF() const { return position(); } # | ^~~~ # 349| const bool contains = button->contains(event->posF()); # 350| if (!hovered && contains) { # 351|-> QHoverEvent e(QEvent::HoverEnter, event->posF(), event->oldPosF(), event->modifiers()); # 352| QCoreApplication::instance()->sendEvent(button, &e); # 353| } else if (hovered && !contains) { Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:354:58: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position() # 354 | QHoverEvent e(QEvent::HoverLeave, event->posF(), event->oldPosF(), event->modifiers()); # | ~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:265:20: note: declared here # 265 | inline QPointF posF() const { return position(); } # | ^~~~ # 352| QCoreApplication::instance()->sendEvent(button, &e); # 353| } else if (hovered && !contains) { # 354|-> QHoverEvent e(QEvent::HoverLeave, event->posF(), event->oldPosF(), event->modifiers()); # 355| QCoreApplication::instance()->sendEvent(button, &e); # 356| } else if (hovered && contains) { Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:360:52: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position() # 360 | auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y())); # | ~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:265:20: note: declared here # 265 | inline QPointF posF() const { return position(); } # | ^~~~ # 358| } # 359| } # 360|-> auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y())); # 361| d->updateSectionUnderMouse(flooredPos); # 362| } Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decoration.cpp:360:83: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position() # 360 | auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y())); # | ~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:265:20: note: declared here # 265 | inline QPointF posF() const { return position(); } # | ^~~~ # 358| } # 359| } # 360|-> auto flooredPos = QPoint(std::floor(event->posF().x()), std::floor(event->posF().y())); # 361| d->updateSectionUnderMouse(flooredPos); # 362| } Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::hoverEnterEvent(QHoverEvent*)’ kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:489:60: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position() # 489 | if (!d->enabled || !d->visible || !contains(event->posF())) { # | ~~~~~~~~~~~^~ /usr/include/qt6/QtGui/QHoverEvent:1: included_from: Included from here. kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:18: included_from: Included from here. /usr/include/qt6/QtGui/qevent.h:265:20: note: declared here # 265 | inline QPointF posF() const { return position(); } # | ^~~~ # 487| void DecorationButton::hoverEnterEvent(QHoverEvent *event) # 488| { # 489|-> if (!d->enabled || !d->visible || !contains(event->posF())) { # 490| return; # 491| } Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::hoverLeaveEvent(QHoverEvent*)’ kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:498:74: warning[-Wdeprecated-declarations]: ‘QPointF QHoverEvent::posF() const’ is deprecated: Use position() # 498 | if (!d->enabled || !d->visible || !d->hovered || contains(event->posF())) { # | ~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:265:20: note: declared here # 265 | inline QPointF posF() const { return position(); } # | ^~~~ # 496| void DecorationButton::hoverLeaveEvent(QHoverEvent *event) # 497| { # 498|-> if (!d->enabled || !d->visible || !d->hovered || contains(event->posF())) { # 499| return; # 500| } Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::mouseMoveEvent(QMouseEvent*)’ kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:515:34: warning[-Wdeprecated-declarations]: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position() # 515 | if (!contains(event->localPos())) { # | ~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:234:13: note: declared here # 234 | QPointF localPos() const { return position(); } # | ^~~~~~~~ # 513| return; # 514| } # 515|-> if (!contains(event->localPos())) { # 516| d->setHovered(false); # 517| event->setAccepted(true); Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::mousePressEvent(QMouseEvent*)’ kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:523:64: warning[-Wdeprecated-declarations]: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position() # 523 | if (!d->enabled || !d->visible || !contains(event->localPos()) || !d->acceptedButtons.testFlag(event->button())) { # | ~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:234:13: note: declared here # 234 | QPointF localPos() const { return position(); } # | ^~~~~~~~ # 521| void DecorationButton::mousePressEvent(QMouseEvent *event) # 522| { # 523|-> if (!d->enabled || !d->visible || !contains(event->localPos()) || !d->acceptedButtons.testFlag(event->button())) { # 524| return; # 525| } Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp: scope_hint: In member function ‘virtual void KDecoration2::DecorationButton::mouseReleaseEvent(QMouseEvent*)’ kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbutton.cpp:546:33: warning[-Wdeprecated-declarations]: ‘QPointF QMouseEvent::localPos() const’ is deprecated: Use position() # 546 | if (contains(event->localPos())) { # | ~~~~~~~~~~~~~~~^~ /usr/include/qt6/QtGui/qevent.h:234:13: note: declared here # 234 | QPointF localPos() const { return position(); } # | ^~~~~~~~ # 544| return; # 545| } # 546|-> if (contains(event->localPos())) { # 547| if (!d->pressAndHold || event->button() != Qt::LeftButton) { # 548| Q_EMIT clicked(event->button()); Error: COMPILER_WARNING (CWE-477): kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbuttongroup.cpp: scope_hint: In lambda function kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbuttongroup.cpp:110:26: warning[-Wdeprecated]: implicit capture of ‘this’ via ‘[=]’ is deprecated in C++20 # 110 | auto createButtons = [=] { # | ^ kdecoration-6.0.3-build/kdecoration-6.0.3/src/decorationbuttongroup.cpp:110:26: note: add explicit ‘this’ or ‘*this’ capture # 108| const auto layoutDirection = app ? app->layoutDirection() : Qt::LeftToRight; # 109| auto settings = parent->settings(); # 110|-> auto createButtons = [=] { # 111| const auto &buttons = # 112| (type == Position::Left) ?