Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some deprecated warnings #63

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Qt/QtWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ void CQtWindow::HandlePointerEvent(QMouseEvent *a_poMouseEvent)
/* the top of the menu bar so take that into account, so that we have X and Y positions that */
/* are relative to the client area */

X = a_poMouseEvent->x();
Y = (a_poMouseEvent->y() - m_poWindow->m_poWindow->menuBar()->height());
X = qRound(a_poMouseEvent->position().x());
Y = qRound(a_poMouseEvent->position().y()) - m_poWindow->m_poWindow->menuBar()->height();

/* And pass the event onto the client's CWindow::HandlePointerEvent() function. Qt has a bug whereby */
/* if you click on the menu bar to drop down a menu and then you click on the window border above that */
Expand Down
Loading