VirtualBox

Changeset 46836 in vbox


Ignore:
Timestamp:
Jun 27, 2013 12:24:18 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Mac host: Remove old Qt4.4 hack related to popup-menu keyboard handling.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
2 edited

Legend:

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

    r44572 r46836  
    168168                  }
    169169              }
    170 #if QT_VERSION < 0x040400
    171               else if (currentModifiers == Qt::ShiftModifier)
    172 #else
    173170              else if (currentModifiers == Qt::ControlModifier)
    174 #endif
    175171              {
    176172                  if (!mFileForProxyIcon.isEmpty())
     
    249245void QIMainDialog::keyPressEvent(QKeyEvent *pEvent)
    250246{
    251 #if defined (Q_WS_MAC) && (QT_VERSION < 0x040402)
    252     /* Bug in Qt below 4.4.2.
    253      * The key events are send to the current window even if a menu is shown & has the focus.
    254      * See http://trolltech.com/developer/task-tracker/index_html?method=entry&id=214681. */
    255     if (::darwinIsMenuOpen())
    256         return;
    257 #endif /* defined (Q_WS_MAC) && (QT_VERSION < 0x040402) */
    258 
    259247    /* Make sure that we only proceed if no
    260248     * popup or other modal widgets are open. */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r46782 r46836  
    10551055            break;
    10561056        }
    1057 # if (QT_VERSION < 0x040402)
    1058         case QEvent::KeyPress:
    1059         {
    1060             /* Bug in Qt below 4.4.2. The key events are send to the current
    1061              * window even if a menu is shown & has the focus. See
    1062              * http://trolltech.com/developer/task-tracker/index_html?method=entry&id=214681. */
    1063             if (::darwinIsMenuOpen())
    1064                 return true;
    1065             break;
    1066         }
    1067 # endif
    10681057        default:
    10691058            break;
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