VirtualBox

Changeset 104982 in vbox


Ignore:
Timestamp:
Jun 20, 2024 1:28:23 PM (9 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
163592
Message:

FE/Qt: bugref:10666, bugref:10669: QILineEdit: Update optional icon-label position on visibility/icon changes.

File:
1 edited

Legend:

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

    r104981 r104982  
    8989    if (m_pLabelIcon)
    9090        m_pLabelIcon->setVisible(fMarkable);
     91
     92    /* Update label position on visibility changes: */
     93    moveIconLabel();
    9194}
    9295
     
    108111    m_pLabelIcon->setToolTip(strToolTip);
    109112    m_iIconMargin = (height() - m_pLabelIcon->height()) / 2;
    110     update();
     113
     114    /* Update label position on icon changes: */
     115    moveIconLabel();
    111116}
    112117
     
    201206    /* We do it cause we have manual layout for the label: */
    202207    m_pLabelIcon->move(width() - m_pLabelIcon->width() - m_iIconMargin, m_iIconMargin);
    203 }
     208    update();
     209}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette