Changeset 14044 in vbox
- Timestamp:
- Nov 10, 2008 9:56:42 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp
r13580 r14044 1626 1626 break; 1627 1627 } 1628 case QEvent::WindowStateChange: 1629 { 1630 /* During minimizing and state restoring mMainWnd gets the focus 1631 * which belongs to console view window, so returning it properly. */ 1632 QWindowStateChangeEvent *ev = static_cast <QWindowStateChangeEvent*> (e); 1633 if (ev->oldState() & Qt::WindowMinimized) 1634 { 1635 if (QApplication::focusWidget()) 1636 { 1637 QApplication::focusWidget()->clearFocus(); 1638 qApp->processEvents(); 1639 } 1640 QTimer::singleShot (0, this, SLOT (setFocus())); 1641 } 1642 break; 1643 } 1628 1644 1629 1645 default:
Note:
See TracChangeset
for help on using the changeset viewer.