Project

General

Profile

Bug #733 ยป 0004-Qt6-Avoid-deprecated-QMouseEvent-localPos-call.patch

Marko Lindqvist, 06/28/2024 12:55 PM

View differences:

client/gui-qt/hudwidget.cpp
void scale_widget::mousePressEvent(QMouseEvent *event)
{
if (event->button() == Qt::LeftButton) {
#ifndef FC_QT5_MODE
if (event->position().x() <= size) {
#else /* FC_QT5_MODE */
if (event->localPos().x() <= size) {
#endif /* FC_QT5_MODE */
scale = scale / 1.2;
} else {
scale = scale * 1.2;
......
}
}
/************************************************************************//**
Hud battle log constructor
****************************************************************************/
    (1-1/1)