fix: don't allowed move window by drag when maximized
This commit is contained in:
		@ -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()
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user