VirtualBox

Changeset 94053 in vbox


Ignore:
Timestamp:
Mar 2, 2022 9:29:54 AM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:6899. Concatenating the page title to the tooltip of UIToolBox's page expand button.

File:
1 edited

Legend:

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

    r93990 r94053  
    117117    QIcon        m_expandCollapseIcon;
    118118    UIToolPageButton *m_pTitleButton;
     119    QString      m_strTitle;
    119120    friend class UIToolBox;
    120121};
     
    181182void UIToolBoxPage::setTitle(const QString &strTitle)
    182183{
     184    m_strTitle = strTitle;
    183185    if (!m_pTitleLabel)
    184186        return;
    185187    m_pTitleLabel->setText(strTitle);
     188    retranslateUi();
    186189}
    187190
     
    343346{
    344347    if (m_pTitleButton)
    345         m_pTitleButton->setToolTip(tr("Expands and hides the page"));
     348        m_pTitleButton->setToolTip(tr("Expands the page \"%1\"").arg(m_strTitle.remove('&')));
    346349}
    347350
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