VirtualBox

Ignore:
Timestamp:
Jun 27, 2018 2:12:45 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: In logviewer filter panel set the height of the line edit somewhat more smartly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.cpp

    r72666 r72702  
    150150        createButtons();
    151151    int clearButtonSize = height();
    152     m_pClearAllButton->setGeometry(width() - clearButtonSize, 0, clearButtonSize, clearButtonSize);
     152
     153    int deltaY = 0.5 * (height() - m_pClearAllButton->height());
     154    m_pClearAllButton->setGeometry(width() - clearButtonSize, deltaY, clearButtonSize, clearButtonSize);
    153155    /* If we have a selected term move the m_pRemoveTermButton to the end of the
    154156       or start of the word (depending on the location of the word within line edit itself: */
     
    214216        }
    215217    }
     218    if (!m_pRemoveTermButton && !m_pClearAllButton)
     219        setMinimumHeight(qMax(m_pRemoveTermButton->minimumHeight(), m_pClearAllButton->minimumHeight()));
     220    else if (!m_pRemoveTermButton)
     221        setMinimumHeight(m_pRemoveTermButton->minimumHeight());
     222    else if (!m_pClearAllButton)
     223        setMinimumHeight(m_pClearAllButton->minimumHeight());       
    216224}
    217225
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