VirtualBox

Ignore:
Timestamp:
Dec 15, 2023 4:58:54 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160770
Message:

FE/Qt: bugref:10513: UIAdvancedSettingsDialog: Small fixes for UIFilterEditor, code reordering, adjusting clear button layout.

File:
1 edited

Legend:

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

    r102613 r102615  
    234234    virtual QSize minimumSizeHint() const RT_OVERRIDE;
    235235
     236    /** Preprocesses Qt @a pEvent for passed @a pObject. */
     237    virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE;
     238
    236239    /** Handles resize @a pEvent. */
    237240    virtual void resizeEvent(QResizeEvent *pEvent) RT_OVERRIDE;
    238 
    239     /** Preprocesses Qt @a pEvent for passed @a pObject. */
    240     virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE;
    241241
    242242private slots:
     
    475475}
    476476
    477 void UIFilterEditor::resizeEvent(QResizeEvent *pEvent)
    478 {
    479     /* Call to base-class: */
    480     QWidget::resizeEvent(pEvent);
    481 
    482     /* Adjust filter editor geometry on each parent resize: */
    483     adjustEditorGeometry();
    484 }
    485 
    486477bool UIFilterEditor::eventFilter(QObject *pObject, QEvent *pEvent)
    487478{
     
    511502}
    512503
     504void UIFilterEditor::resizeEvent(QResizeEvent *pEvent)
     505{
     506    /* Call to base-class: */
     507    QWidget::resizeEvent(pEvent);
     508
     509    /* Adjust filter editor geometry on each parent resize: */
     510    adjustEditorGeometry();
     511}
     512
    513513void UIFilterEditor::sltHandleEditorTextChanged(const QString &strText)
    514514{
     
    584584    const int iMinimumButtonHeight = bsh.height();
    585585    const int iButtonY = iMinimumEditorHeight > iMinimumButtonHeight
    586                        ? (iMinimumEditorHeight - iMinimumButtonHeight) / 2
     586                       ? (iMinimumEditorHeight - iMinimumButtonHeight) / 2 + 1
    587587                       : 0;
    588588    m_pToolButton->setGeometry(iWidth - iMinimumButtonWidth - 1, iButtonY, iMinimumButtonWidth, iMinimumButtonHeight);
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