VirtualBox

Ignore:
Timestamp:
Nov 17, 2009 10:14:50 AM (15 years ago)
Author:
vboxsync
Message:

QT GUI: don't unset mouse cursor after a resize event.

File:
1 edited

Legend:

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

    r24488 r24710  
    12741274
    12751275                /* do frame buffer dependent resize */
    1276 #if defined (Q_WS_X11) && (QT_VERSION >= 0x040309) && (QT_VERSION < 0x040401)
     1276
    12771277                /* restoreOverrideCursor() is broken in Qt 4.4.0 if WA_PaintOnScreen
    12781278                 * widgets are present. This is the case on linux with SDL. As
    12791279                 * workaround we save/restore the arrow cursor manually. See
    12801280                 * http://trolltech.com/developer/task-tracker/index_html?id=206165&method=entry
    1281                  * for details. */
     1281                 * for details.
     1282                 *
     1283                 * Moreover the current cursor, which could be set by the guest,
     1284                 * should be restored after resize.
     1285                 */
    12821286                QCursor cursor;
    12831287                if (shouldHideHostPointer())
     
    12871291                mFrameBuf->resizeEvent (re);
    12881292                viewport()->setCursor (cursor);
    1289 #else
    1290                 mFrameBuf->resizeEvent (re);
    1291                 if (shouldHideHostPointer())
    1292                     viewport()->setCursor (QCursor (Qt::BlankCursor));
    1293                 else
    1294                     viewport()->unsetCursor();
    1295 #endif
    12961293
    12971294#ifdef Q_WS_MAC
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