mirror of
https://github.com/Retropex/dolphin.git
synced 2025-05-12 19:30:44 +02:00
Check Qt version for linux in RenderWidget
This commit is contained in:
parent
994bb5b154
commit
0644ea681d
@ -543,9 +543,13 @@ void RenderWidget::PassEventToImGui(const QEvent* event)
|
||||
|
||||
if (Config::Get(Config::PRIMEHACK_ENABLE))
|
||||
{
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||
int x = static_cast<const QMouseEvent*>(event)->position().x();
|
||||
int y = static_cast<const QMouseEvent*>(event)->position().y();
|
||||
|
||||
#else
|
||||
int x = static_cast<const QMouseEvent*>(event)->x();
|
||||
int y = static_cast<const QMouseEvent*>(event)->y();
|
||||
#endif
|
||||
prime::g_mouse_input->mousePressEvent(x, y);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user