VirtualBox

Changeset 99835 in vbox for trunk/src/VBox/Debugger


Ignore:
Timestamp:
May 18, 2023 9:50:52 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157472
Message:

Debugger/Console: bugref:10450: Move to modern way of assigning shortcuts to be able to comply with Qt6 easier.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/VBoxDbgConsole.cpp

    r99739 r99835  
    8989    m_pGreenOnBlackAction = new QAction(tr("Green On Black"), this);
    9090    m_pGreenOnBlackAction->setCheckable(true);
    91     m_pGreenOnBlackAction->setShortcut(Qt::ControlModifier + Qt::Key_1);
     91    m_pGreenOnBlackAction->setShortcut(QString("Ctrl+1"));
    9292    m_pGreenOnBlackAction->setData((int)kGreenOnBlack);
    9393    connect(m_pGreenOnBlackAction, SIGNAL(triggered()), this, SLOT(sltSelectColorScheme()));
     
    9595    m_pBlackOnWhiteAction = new QAction(tr("Black On White"), this);
    9696    m_pBlackOnWhiteAction->setCheckable(true);
    97     m_pBlackOnWhiteAction->setShortcut(Qt::ControlModifier + Qt::Key_2);
     97    m_pBlackOnWhiteAction->setShortcut(QString("Ctrl+2"));
    9898    m_pBlackOnWhiteAction->setData((int)kBlackOnWhite);
    9999    connect(m_pBlackOnWhiteAction, SIGNAL(triggered()), this, SLOT(sltSelectColorScheme()));
     
    110110    m_pCourierFontAction = new QAction(tr("Courier"), this);
    111111    m_pCourierFontAction->setCheckable(true);
    112     m_pCourierFontAction->setShortcut(Qt::ControlModifier + Qt::Key_D);
     112    m_pCourierFontAction->setShortcut(QString("Ctrl+D"));
    113113    m_pCourierFontAction->setData((int)kFontType_Courier);
    114114    connect(m_pCourierFontAction, SIGNAL(triggered()), this, SLOT(sltSelectFontType()));
     
    116116    m_pMonospaceFontAction = new QAction(tr("Monospace"), this);
    117117    m_pMonospaceFontAction->setCheckable(true);
    118     m_pMonospaceFontAction->setShortcut(Qt::ControlModifier + Qt::Key_M);
     118    m_pMonospaceFontAction->setShortcut(QString("Ctrl+M"));
    119119    m_pMonospaceFontAction->setData((int)kFontType_Monospace);
    120120    connect(m_pMonospaceFontAction, SIGNAL(triggered()), this, SLOT(sltSelectFontType()));
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