VirtualBox

Changeset 59743 in vbox


Ignore:
Timestamp:
Feb 19, 2016 3:29:32 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105612
Message:

FE/Qt: Qt5 migration (part 97): Implementing keyboard handling for Qt5: Unpleasant name conflict in Qt5 event-filter code.

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

Legend:

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

    r59659 r59743  
    105105/** QAbstractNativeEventFilter extension
    106106  * allowing to pre-process native platform events. */
    107 class PrivateEventFilter : public QAbstractNativeEventFilter
     107class KeyboardHandlerEventFilter : public QAbstractNativeEventFilter
    108108{
    109109public:
    110110
    111111    /** Constructor which takes the passed @a pParent to redirect events to. */
    112     PrivateEventFilter(UIKeyboardHandler *pParent)
     112    KeyboardHandlerEventFilter(UIKeyboardHandler *pParent)
    113113        : m_pParent(pParent)
    114114    {}
     
    16531653                    }
    16541654                    /* Install new private event-filter: */
    1655                     m_pPrivateEventFilter = new PrivateEventFilter(this);
     1655                    m_pPrivateEventFilter = new KeyboardHandlerEventFilter(this);
    16561656                    qApp->installNativeEventFilter(m_pPrivateEventFilter);
    16571657                }
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIKeyboardHandler.h

    r59658 r59743  
    5353#endif /* Q_WS_X11 */
    5454#if QT_VERSION >= 0x050000
    55 class PrivateEventFilter;
     55class KeyboardHandlerEventFilter;
    5656#endif /* QT_VERSION >= 0x050000 */
    5757
     
    238238#if QT_VERSION >= 0x050000
    239239    /** Win: Holds the native event filter instance. */
    240     PrivateEventFilter *m_pPrivateEventFilter;
     240    KeyboardHandlerEventFilter *m_pPrivateEventFilter;
    241241    /** Win: Allows the native event filter to
    242242      * redirect events directly to nativeEvent handler. */
    243     friend class PrivateEventFilter;
     243    friend class KeyboardHandlerEventFilter;
    244244#endif /* QT_VERSION >= 0x050000 */
    245245
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.cpp

    r59414 r59743  
    9393  * not the sub-widget we expect, so that's probably the reason Qt devs
    9494  * haven't fixed that bug so far for Windows and Mac OS X hosts. */
    95 class PrivateEventFilter : public QAbstractNativeEventFilter
     95class ComboEditorEventFilter : public QAbstractNativeEventFilter
    9696{
    9797public:
    9898
    9999    /** Constructor which takes the passed @a pParent to redirect events to. */
    100     PrivateEventFilter(UIHostComboEditorPrivate *pParent)
     100    ComboEditorEventFilter(UIHostComboEditorPrivate *pParent)
    101101        : m_pParent(pParent)
    102102    {}
     
    493493# if QT_VERSION >= 0x050000
    494494    /* Prepare private event filter: */
    495     m_pPrivateEventFilter = new PrivateEventFilter(this);
     495    m_pPrivateEventFilter = new ComboEditorEventFilter(this);
    496496    qApp->installNativeEventFilter(m_pPrivateEventFilter);
    497497# endif /* QT_VERSION >= 0x050000 */
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIHostComboEditor.h

    r59309 r59743  
    3333#if defined(Q_WS_MAC) || defined(Q_WS_WIN)
    3434# if QT_VERSION >= 0x050000
    35 class PrivateEventFilter;
     35class ComboEditorEventFilter;
    3636# endif /* QT_VERSION >= 0x050000 */
    3737#endif /* Q_WS_MAC || Q_WS_WIN */
     
    190190# if QT_VERSION >= 0x050000
    191191    /** Mac, Win: Holds the native event filter instance. */
    192     PrivateEventFilter *m_pPrivateEventFilter;
     192    ComboEditorEventFilter *m_pPrivateEventFilter;
    193193    /** Mac, Win: Allows the native event filter to
    194194      * redirect events directly to nativeEvent handler. */
    195     friend class PrivateEventFilter;
     195    friend class ComboEditorEventFilter;
    196196# endif /* QT_VERSION >= 0x050000 */
    197197#endif /* Q_WS_MAC || Q_WS_WIN */
Note: See TracChangeset for help on using the changeset viewer.

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