Changeset 72702 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jun 27, 2018 2:12:45 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerFilterPanel.cpp
r72666 r72702 150 150 createButtons(); 151 151 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); 153 155 /* If we have a selected term move the m_pRemoveTermButton to the end of the 154 156 or start of the word (depending on the location of the word within line edit itself: */ … … 214 216 } 215 217 } 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()); 216 224 } 217 225
Note:
See TracChangeset
for help on using the changeset viewer.