Bug #733 ยป 0004-Qt6-Avoid-deprecated-QMouseEvent-localPos-call.patch
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
|
||
****************************************************************************/
|