UI: Remove Qt 5 ifdef guards and code

This commit is contained in:
gxalpha
2023-06-10 17:36:11 +02:00
committed by Ryan Foster
parent a44d1b2dce
commit a4834efde9
22 changed files with 4 additions and 165 deletions

View File

@@ -573,11 +573,7 @@ void OBSBasicPreview::wheelEvent(QWheelEvent *event)
void OBSBasicPreview::mousePressEvent(QMouseEvent *event)
{
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QPointF pos = event->position();
#else
QPointF pos = event->localPos();
#endif
if (scrollMode && IsFixedScaling() &&
event->button() == Qt::LeftButton) {
@@ -1595,11 +1591,7 @@ void OBSBasicPreview::mouseMoveEvent(QMouseEvent *event)
OBSBasic *main = reinterpret_cast<OBSBasic *>(App()->GetMainWindow());
changed = true;
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
QPointF qtPos = event->position();
#else
QPointF qtPos = event->localPos();
#endif
float pixelRatio = main->GetDevicePixelRatio();