VirtualBox

Ignore:
Timestamp:
Nov 3, 2022 2:52:09 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6669: Extend UIDesktopWidgetWatchdog with API to restore/expose widget visibility.

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

Legend:

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

    r96407 r97386  
    817817        && (geo.width() != newGeo.width() || geo.height() != newGeo.height()))
    818818        pWidget->resize(newGeo.width() - iExtraW, newGeo.height() - iExtraH);
     819}
     820
     821/* static */
     822void UIDesktopWidgetWatchdog::restoreWidget(QWidget *pWidget)
     823{
     824    pWidget->show();
     825    pWidget->setWindowState(pWidget->windowState() & ~Qt::WindowMinimized);
     826    pWidget->activateWindow();
     827    pWidget->raise();
    819828}
    820829
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDesktopWidgetWatchdog.h

    r96407 r97386  
    150150                             QWidget *pRelative,
    151151                             bool fCanResize = true);
     152    /** Restores and exposes the @a pWidget on desktop. */
     153    static void restoreWidget(QWidget *pWidget);
    152154
    153155    /** Assigns top-level @a pWidget geometry passed as QRect coordinates.
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