fix: don't allowed move window by drag when maximized

This commit is contained in:
Gary Wang 2019-10-11 18:01:11 +08:00
parent f82aeb892e
commit f88af4b6c0

View File

@ -172,7 +172,7 @@ void MainWindow::leaveEvent(QEvent *event)
void MainWindow::mousePressEvent(QMouseEvent *event)
{
if (event->buttons() & Qt::LeftButton) {
if (event->buttons() & Qt::LeftButton && !isMaximized()) {
m_clickedOnWindow = true;
m_oldMousePos = event->pos();
qDebug() << m_oldMousePos << m_graphicsView->transform().m11()