VirtualBox

Changeset 12018 in vbox for trunk


Ignore:
Timestamp:
Sep 3, 2008 8:37:55 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35930
Message:

better fix for the mouse cursor problem with qt4.4.0 than r35553

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

Legend:

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

    r12007 r12018  
    10951095
    10961096                /* do frame buffer dependent resize */
     1097#if defined (Q_WS_X11) && (QT_VERSION >= 0x040309) && (QT_VERSION < 0x040401)
     1098                /* restoreOverrideCursor() is broken in Qt 4.4.0 if WA_PaintOnScreen
     1099                 * widgets are present. This is the case on linux with SDL. As
     1100                 * workaround we save/restore the arrow cursor manually. See
     1101                 * http://trolltech.com/developer/task-tracker/index_html?id=206165&method=entry
     1102                 * for details. */
     1103                QCursor cursor = viewport()->cursor();
     1104                mFrameBuf->resizeEvent (re);
     1105                viewport()->setCursor(cursor);
     1106#else
    10971107                mFrameBuf->resizeEvent (re);
    10981108                viewport()->unsetCursor();
     1109#endif
    10991110
    11001111                /* This event appears in case of guest video was changed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r12017 r12018  
    11121112                }
    11131113            }
    1114             /* restoreOverrideCursor is broken in Qt 4.4.0 if WA_PaintOnScreen
    1115              * widgets are present. This is the case on linux with SDL. As
    1116              * workaround we set the arrow cursor manually.
    1117              * See http://trolltech.com/developer/task-tracker/index_html?id=206165&method=entry
    1118              * for details. */
    1119 #if defined (Q_WS_X11) && (QT_VERSION >= 0x040309) && (QT_VERSION < 0x040401)
    1120             qApp->setOverrideCursor(Qt::ArrowCursor);
    1121 #endif
    11221114            break;
    11231115        }
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