mirror of
https://github.com/Kekun/primehack.git
synced 2024-06-01 11:37:29 -04: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 a new issue