fix: don't allowed move window by drag when maximized
This commit is contained in:
parent
f82aeb892e
commit
f88af4b6c0
|
@ -172,7 +172,7 @@ void MainWindow::leaveEvent(QEvent *event)
|
||||||
|
|
||||||
void MainWindow::mousePressEvent(QMouseEvent *event)
|
void MainWindow::mousePressEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
if (event->buttons() & Qt::LeftButton) {
|
if (event->buttons() & Qt::LeftButton && !isMaximized()) {
|
||||||
m_clickedOnWindow = true;
|
m_clickedOnWindow = true;
|
||||||
m_oldMousePos = event->pos();
|
m_oldMousePos = event->pos();
|
||||||
qDebug() << m_oldMousePos << m_graphicsView->transform().m11()
|
qDebug() << m_oldMousePos << m_graphicsView->transform().m11()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user