mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-08 02:24:39 +02:00
fix qt5 build
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
87ec7cdd39
commit
059c03c655
@ -202,7 +202,6 @@ void SkinManageDialog::setupCapes()
|
||||
if (!m_capes.contains(cape.id)) {
|
||||
auto path = FS::PathCombine(capesDir, cape.id + ".png");
|
||||
if (QFileInfo(path).exists() && capeImage.load(path)) {
|
||||
capeImage = capeImage;
|
||||
m_capes[cape.id] = capeImage;
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ SkinOpenGLWidget::~SkinOpenGLWidget()
|
||||
void SkinOpenGLWidget::mousePressEvent(QMouseEvent* e)
|
||||
{
|
||||
// Save mouse press position
|
||||
m_mousePosition = QVector2D(e->position());
|
||||
m_mousePosition = QVector2D(e->pos());
|
||||
m_isMousePressed = true;
|
||||
}
|
||||
void SkinOpenGLWidget::mouseMoveEvent(QMouseEvent* event)
|
||||
@ -37,7 +37,7 @@ void SkinOpenGLWidget::mouseMoveEvent(QMouseEvent* event)
|
||||
m_rotationX += dy;
|
||||
m_rotationY += dx;
|
||||
|
||||
m_mousePosition = QVector2D(event->position());
|
||||
m_mousePosition = QVector2D(event->pos());
|
||||
update(); // Trigger a repaint
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user