VirtualBox

Changeset 97657 in vbox for trunk


Ignore:
Timestamp:
Nov 22, 2022 5:28:34 PM (23 months ago)
Author:
vboxsync
Message:

FE/Qt: Show the icon label of UIMarkableLineEdit only if line edit is marked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QILineEdit.cpp

    r96643 r97657  
    241241void UIMarkableLineEdit::mark(bool fError, const QString &strErrorMessage /* = QString() */)
    242242{
     243    m_pIconLabel->setVisible(true);
    243244    AssertReturnVoid(m_pIconLabel);
    244245    const int iIconMetric = QApplication::style()->pixelMetric(QStyle::PM_SmallIconSize);
     
    260261    m_pIconLabel = new QLabel;
    261262    AssertReturnVoid(m_pIconLabel);
     263    /* Show the icon label only if line edit is marked for error/no error.*/
     264    m_pIconLabel->hide();
    262265    pMainLayout->addWidget(m_pLineEdit);
    263266    pMainLayout->addWidget(m_pIconLabel);
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