VirtualBox

Changeset 29915 in vbox


Ignore:
Timestamp:
May 31, 2010 3:26:55 PM (14 years ago)
Author:
vboxsync
Message:

FE/Qt: New running VM core: Fixed regressively missed USB item's tool-tip of USB menu.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/runtime
Files:
2 edited

Legend:

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

    r29734 r29915  
    2020/* Global includes */
    2121#include <QtGlobal>
     22#include <QToolTip>
    2223
    2324/* Local includes */
     
    600601    {
    601602        menu()->setTitle(QApplication::translate("UIActionsPool", "&USB Devices"));
     603        connect(menu(), SIGNAL(hovered(QAction*)), this, SLOT(sltPopupToolTip(QAction*)));
     604    }
     605
     606private slots:
     607
     608    void sltPopupToolTip(QAction *pAction)
     609    {
     610        QToolTip::showText(QCursor::pos(), pAction->toolTip());
    602611    }
    603612};
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r29806 r29915  
    13571357            /* Set USB attach data: */
    13581358            attachUSBAction->setData(QVariant::fromValue(USBTarget(!attachUSBAction->isChecked(), device.GetId())));
     1359            attachUSBAction->setToolTip(vboxGlobal().toolTip(device));
    13591360        }
    13601361    }
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