VirtualBox

Changeset 94028 in vbox


Ignore:
Timestamp:
Mar 1, 2022 11:04:48 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899: Always use full-path tool-tip for UIFilePathSelector.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilePathSelector.cpp

    r93998 r94028  
    335335    }
    336336
    337     /* But if selector is focused => tool-tip depends on the mode only: */
    338     switch (m_enmMode)
    339     {
    340         case Mode_Folder:
    341             m_strNoneToolTipFocused = tr("Holds the folder path.");
    342             break;
    343         case Mode_File_Open:
    344         case Mode_File_Save:
    345             m_strNoneToolTipFocused = tr("Holds the file path.");
    346             break;
    347         default:
    348             AssertFailedBreak();
    349     }
    350 
    351337    /* Finally, retranslate current item: */
    352338    refreshText();
     
    573559        /* Set the tool-tip: */
    574560        if (!m_fToolTipOverriden)
    575             QIComboBox::setToolTip(m_strNoneToolTipFocused);
     561            QIComboBox::setToolTip(fullPath());
    576562        setItemData(PathId, toolTip(), Qt::ToolTipRole);
    577563
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIFilePathSelector.h

    r93115 r94028  
    201201    /** Holds the cached tool-tip for empty path. */
    202202    QString  m_strNoneToolTip;
    203     /** Holds the cached tool-tip for empty path in focused case. */
    204     QString  m_strNoneToolTipFocused;
    205203
    206204    /** Holds whether editor has Reset action. */
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