Changeset 102615 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 15, 2023 4:58:54 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160770
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp
r102613 r102615 234 234 virtual QSize minimumSizeHint() const RT_OVERRIDE; 235 235 236 /** Preprocesses Qt @a pEvent for passed @a pObject. */ 237 virtual bool eventFilter(QObject *pObject, QEvent *pEvent) RT_OVERRIDE; 238 236 239 /** Handles resize @a pEvent. */ 237 240 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;241 241 242 242 private slots: … … 475 475 } 476 476 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 486 477 bool UIFilterEditor::eventFilter(QObject *pObject, QEvent *pEvent) 487 478 { … … 511 502 } 512 503 504 void 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 513 513 void UIFilterEditor::sltHandleEditorTextChanged(const QString &strText) 514 514 { … … 584 584 const int iMinimumButtonHeight = bsh.height(); 585 585 const int iButtonY = iMinimumEditorHeight > iMinimumButtonHeight 586 ? (iMinimumEditorHeight - iMinimumButtonHeight) / 2 586 ? (iMinimumEditorHeight - iMinimumButtonHeight) / 2 + 1 587 587 : 0; 588 588 m_pToolButton->setGeometry(iWidth - iMinimumButtonWidth - 1, iButtonY, iMinimumButtonWidth, iMinimumButtonHeight);
Note:
See TracChangeset
for help on using the changeset viewer.