VirtualBox

Changeset 77936 in vbox


Ignore:
Timestamp:
Mar 28, 2019 1:08:47 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6699. Fixing some small things in the breadcrumbs widget.

File:
1 edited

Legend:

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

    r77935 r77936  
    7373    virtual void mouseMoveEvent(QMouseEvent *pEvent) /* override */;
    7474    virtual void mousePressEvent(QMouseEvent *pEvent) /* override */;
    75     virtual void focusOutEvent(QFocusEvent *pEvent) /* override */;
     75    virtual bool event(QEvent *pEvent) /* override */;
    7676
    7777private:
     
    218218}
    219219
    220 void UIFileManagerBreadCrumbs::focusOutEvent(QFocusEvent *pEvent)
    221 {
    222     deselect();
    223     QLineEdit::focusOutEvent(pEvent);
    224 }
    225 
    226 
    227 /*********************************************************************************************************************************
    228 *   UIFileManagerPathButton implementation.                                                                                      *
    229 *********************************************************************************************************************************/
    230 
    231 // UIFileManagerPathButton::UIFileManagerPathButton(QWidget *pParent /* = 0 */, const QString &strPath /* = QString() */)
    232 //     :QIToolButton(pParent)
    233 //     , m_strPath(strPath)
    234 // {
    235 //     setText(m_strPath);
    236 // }
     220bool UIFileManagerBreadCrumbs::event(QEvent *pEvent)
     221{
     222    if (!pEvent)
     223        return false;
     224    if (pEvent->type() == QEvent::Leave)
     225        deselect();
     226    return QLineEdit::event(pEvent);
     227}
    237228
    238229
     
    13891380    if (!m_pNavigationWidgetWidget)
    13901381        return;
    1391     if (fShow)
     1382    if (!fShow)
    13921383        m_pNavigationWidgetWidget->setCurrentIndex(0);
    13931384    else
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