Ref T560, reset move position

This commit is contained in:
Klaus Basan
2019-03-30 06:44:03 +01:00
committed by Mat Sutcliffe
parent 0d0e093330
commit 66cbe1662e
6 changed files with 36 additions and 13 deletions

View File

@@ -124,11 +124,22 @@ CoreModes::CoreMode CSwiftLauncher::getCoreMode() const
return CoreModes::CoreInGuiProcess;
}
void CSwiftLauncher::mousePressEvent(QMouseEvent *event)
{
if (!handleMousePressEvent(event)) { QDialog::mousePressEvent(event); }
}
void CSwiftLauncher::mouseMoveEvent(QMouseEvent *event)
{
if (!handleMouseMoveEvent(event)) { QDialog::mouseMoveEvent(event); }
}
void CSwiftLauncher::mouseReleaseEvent(QMouseEvent *event)
{
m_framelessDragPosition = QPoint();
QDialog::mouseReleaseEvent(event);
}
void CSwiftLauncher::displayLatestNews(QNetworkReply *reply)
{
QScopedPointer<QNetworkReply, QScopedPointerDeleteLater> nwReply(reply);
@@ -157,11 +168,6 @@ void CSwiftLauncher::updateInfoAvailable()
this->loadLatestNews();
}
void CSwiftLauncher::mousePressEvent(QMouseEvent *event)
{
if (!handleMousePressEvent(event)) { QDialog::mousePressEvent(event); }
}
void CSwiftLauncher::init()
{
Q_ASSERT_X(sGui, Q_FUNC_INFO, "Need sGui");