VirtualBox

Changeset 47230 in vbox


Ignore:
Timestamp:
Jul 18, 2013 11:53:24 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87346
Message:

FE/Qt: Popup-center: Top-level popup-stacks fixes for MacOS X.

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

Legend:

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

    r47210 r47230  
    343343        case UIPopupIntegrationType_Toplevel:
    344344        {
    345             pPopupStack->setParent(pParent,
    346 #if defined(Q_WS_WIN) || defined(Q_WS_X11)
    347                                    /* Under Win and x11/KDE hosts *tool-window*:
    348                                     * 1. has no task-bar record,
    349                                     * 2. do not rewoke focus from current-window on show-event. */
    350                                    Qt::Tool
    351 #else /* Q_WS_WIN || Q_WS_X11 */
    352                                    /* Need to test under Mac host... */
    353                                    Qt::Window
    354 #endif /* !Q_WS_X11 */
    355                                    | Qt::FramelessWindowHint);
     345            pPopupStack->setParent(pParent, Qt::Tool | Qt::FramelessWindowHint);
    356346            break;
    357347        }
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPopupStack.cpp

    r47209 r47230  
    4646    setAttribute(Qt::WA_TranslucentBackground);
    4747#endif /* Q_WS_WIN || Q_WS_MAC */
     48
     49#ifdef Q_WS_MAC
     50    /* Do not hide popup-stack
     51     * and actually the seamless machine-window too
     52     * due to Qt bug on window deactivation... */
     53    setAttribute(Qt::WA_MacAlwaysShowToolWindow);
     54#endif /* Q_WS_MAC */
    4855}
    4956
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