VirtualBox

Changeset 25044 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 27, 2009 10:17:24 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55375
Message:

FE/Qt4: only handle key events if the log viewer has the focus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMLogViewer.cpp

    r24107 r25044  
    301301        }
    302302    }
     303
     304    /* Make sure the log view widget has the focus */
     305    QWidget *w = currentLogPage();
     306    if (w)
     307        w->setFocus();
    303308}
    304309
     
    492497bool VBoxLogSearchPanel::eventFilter (QObject *aObject, QEvent *aEvent)
    493498{
     499    /* Check that the object is a child of the parent of the search panel. If
     500     * not do not proceed, cause we get all key events from all windows here. */
     501    QObject *pp = aObject;
     502    while(pp && pp != parentWidget()) { pp = pp->parent(); };
     503    if (!pp)
     504        return false;
    494505    switch (aEvent->type())
    495506    {
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