VirtualBox

Changeset 101147 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Sep 18, 2023 12:39:24 PM (15 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10513: UIAdvancedSettingsDialog: Filter editor placeholder support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp

    r101136 r101147  
    101101    virtual ~UIFilterEditor() RT_OVERRIDE;
    102102
     103    /** Defines placeholder @a strText. */
     104    void setPlaceholderText(const QString &strText);
     105
    103106protected:
    104107
     
    190193{
    191194    cleanup();
     195}
     196
     197void UIFilterEditor::setPlaceholderText(const QString &strText)
     198{
     199    if (m_pLineEdit)
     200        m_pLineEdit->setPlaceholderText(strText);
    192201}
    193202
     
    465474void UIAdvancedSettingsDialog::retranslateUi()
    466475{
     476    /* Translate filter editor placeholder: */
     477    m_pEditorFilter->setPlaceholderText(tr("Search settings"));
     478
    467479    /* Translate warning-pane stuff: */
    468480    m_pWarningPane->setWarningLabelText(tr("Invalid settings detected"));
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