VirtualBox

Changeset 12007 in vbox


Ignore:
Timestamp:
Sep 2, 2008 7:12:42 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35918
Message:

Fe/Qt4: One more try to fix the seamless.

Location:
trunk/src/VBox/Frontends/VirtualBox4
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/include/VBoxConsoleWnd.h

    r11999 r12007  
    8383    void setMask (const QRegion &aRegion);
    8484
     85    void clearMask();
     86
    8587#ifdef Q_WS_MAC
    8688    CGImageRef dockImageState () const;
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleView.cpp

    r12006 r12007  
    11761176                         !mMainWnd->isTrueSeamless())
    11771177                    mLastVisibleRegion = QRegion();
    1178 
    1179                 if (!mMainWnd->isTrueSeamless())
    1180                     mMainWnd->clearMask();
    11811178                return true;
    11821179            }
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r12006 r12007  
    22112211
    22122212        /* Adjust colors and appearance. */
     2213        clearMask();
    22132214        centralWidget()->setPalette (mErasePalette);
    2214         centralWidget()->setAutoFillBackground (true);
     2215        centralWidget()->setAutoFillBackground (false);
    22152216        console->setFrameStyle (console_style);
    22162217        console->setMaximumSize (console->sizeHint());
     
    22972298        hide();
    22982299#endif
    2299     clearMask();
    23002300    return true;
    23012301}
     
    28422842#else
    28432843    QMainWindow::setMask (region);
     2844#endif
     2845}
     2846
     2847void VBoxConsoleWnd::clearMask()
     2848{
     2849#ifdef Q_WS_WIN
     2850    SetWindowRgn (winId(), 0, TRUE);
     2851#else
     2852    QMainWindow::clearMask();
    28442853#endif
    28452854}
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