Changeset 102696 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Dec 25, 2023 9:28:49 AM (12 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp
r102636 r102696 178 178 /** Adjusts editor geometry. */ 179 179 void adjustEditorGeometry(); 180 /** Adjusts editor button icon. */ 181 void adjustEditorButtonIcon(); 180 182 181 183 /** Defines internal widget @a iWidth. */ … … 478 480 void UIFilterEditor::sltHandleEditorTextChanged(const QString &strText) 479 481 { 480 m_pToolButton->setHidden(m_pLineEdit->text().isEmpty());482 adjustEditorButtonIcon(); 481 483 emit sigTextChanged(strText); 482 484 } … … 519 521 image: none;\ 520 522 }"); 521 m_pToolButton->hide();522 523 m_pToolButton->setIconSize(QSize(10, 10)); 523 m_pToolButton->setIcon(UIIconPool::iconSet(":/close_16px.png"));524 524 connect(m_pToolButton, &QToolButton::clicked, 525 525 this, &UIFilterEditor::sltHandleButtonClicked); … … 532 532 SIGNAL(sigFocused()), SIGNAL(sigUnfocused())); 533 533 534 /* Adjust filter editor geometryinitially: */534 /* Adjust stuff initially: */ 535 535 adjustEditorGeometry(); 536 adjustEditorButtonIcon(); 536 537 } 537 538 … … 569 570 m_pAnimation->update(); 570 571 setEditorWidth(m_fFocused ? m_iFocusedEditorWidth : m_iUnfocusedEditorWidth); 572 } 573 574 void UIFilterEditor::adjustEditorButtonIcon() 575 { 576 AssertPtrReturnVoid(m_pLineEdit); 577 AssertPtrReturnVoid(m_pToolButton); 578 m_pToolButton->setIcon( m_pLineEdit->text().isEmpty() 579 ? UIIconPool::iconSet(":/search_16px.png") 580 : UIIconPool::iconSet(":/close_16px.png")); 571 581 } 572 582
Note:
See TracChangeset
for help on using the changeset viewer.