VirtualBox

Changeset 11787

Show
Ignore:
Timestamp:
08/28/08 21:42:37 (3 months ago)
Author:
vboxsync
Message:

Fe/Qt4: Fix the text (wrong hot-key shown) for entering fullscreen/seamless modes.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp

    r11774 r11787  
    11511151             * See http://trolltech.com/developer/task-tracker/index_html?id=206165&method=entry 
    11521152             * for details. */ 
    1153 #if defined (Q_WS_X11) && (QT_VERSION >= 0x040309) && (QT_VERSION < 0x040401)  
     1153#if defined (Q_WS_X11) && (QT_VERSION >= 0x040309) && (QT_VERSION < 0x040401) 
    11541154            qApp->setOverrideCursor(Qt::ArrowCursor); 
    11551155#endif 
     
    20462046    if (aOn) 
    20472047    { 
    2048         /* Take the toggle hot key from the menu item. */ 
    2049         QString hotKey = VBoxGlobal::extractKeyFromActionText (aSeamless ? vmSeamlessAction->text() : 
    2050                                                                            vmFullscreenAction->text()); 
     2048        /* Take the toggle hot key from the menu item. Since 
     2049         * VBoxGlobal::extractKeyFromActionText gets exactly the 
     2050         * linked key without the 'Host+' part we are adding it here. */ 
     2051        QString hotKey = QString ("Host+%1") 
     2052            .arg (VBoxGlobal::extractKeyFromActionText (aSeamless ? 
     2053                  vmSeamlessAction->text() : vmFullscreenAction->text())); 
    20512054 
    20522055        Assert (!hotKey.isEmpty()); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy