- Timestamp:
- Sep 25, 2013 2:35:43 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r48684 r48686 978 978 case QEvent::Resize: 979 979 { 980 QResizeEvent *pResizeEvent = (QResizeEvent*) pEvent; 981 if ((windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 980 if (isVisible() && (windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 981 { 982 QResizeEvent *pResizeEvent = static_cast<QResizeEvent*>(pEvent); 982 983 m_normalGeo.setSize(pResizeEvent->size()); 984 } 983 985 break; 984 986 } 985 987 case QEvent::Move: 986 988 { 987 if ((windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 989 if (isVisible() && (windowState() & (Qt::WindowMaximized | Qt::WindowMinimized | Qt::WindowFullScreen)) == 0) 990 { 991 #ifdef Q_WS_MAC 992 QMoveEvent *pMoveEvent = static_cast<QMoveEvent*>(pEvent); 993 m_normalGeo.moveTo(pMoveEvent->pos()); 994 #else /* Q_WS_MAC */ 988 995 m_normalGeo.moveTo(geometry().x(), geometry().y()); 996 #endif /* !Q_WS_MAC */ 997 } 989 998 break; 990 999 } … … 1524 1533 move(m_normalGeo.topLeft()); 1525 1534 resize(m_normalGeo.size()); 1526 m_normalGeo = normalGeometry();1527 1535 #else /* Q_WS_MAC */ 1528 1536 setGeometry(m_normalGeo); … … 1574 1582 /* Save window position: */ 1575 1583 { 1576 #ifdef Q_WS_MAC1577 QRect frameGeo = frameGeometry();1578 QRect save(frameGeo.x(), frameGeo.y(), m_normalGeo.width(), m_normalGeo.height());1579 #else /* Q_WS_MAC */1580 1584 QRect save(m_normalGeo); 1581 #endif /* !Q_WS_MAC */ 1582 LogRelFlow(("UISelectorWindow: Saving geometry as: %dx%d @ %dx%d.\n", 1585 LogRelFlow(("UISelectorWindow: Saving geometry as %dx%d @ %dx%d.\n", 1583 1586 save.x(), save.y(), save.width(), save.height())); 1584 1587 QString strWinPos = QString("%1,%2,%3,%4").arg(save.x()).arg(save.y()).arg(save.width()).arg(save.height());
Note:
See TracChangeset
for help on using the changeset viewer.