VirtualBox

Changeset 14044 in vbox


Ignore:
Timestamp:
Nov 10, 2008 9:56:42 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: FE/Qt4: Host key get blocked after minimizing VBox: fixed at least what I've found.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp

    r13580 r14044  
    16261626                break;
    16271627            }
     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            }
    16281644
    16291645            default:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette