Added close button to find/replace.

This commit is contained in:
Leonardo Zide 2024-01-14 19:34:01 -08:00
parent 9430e339c9
commit c75c645675

View file

@ -78,6 +78,12 @@ lcFindReplaceWidget::lcFindReplaceWidget(QWidget* Parent, lcModel* Model, bool R
mReplacePartComboBox->setCurrentIndex(0); mReplacePartComboBox->setCurrentIndex(0);
} }
QToolButton* CloseButton = new QToolButton(this);
CloseButton->setAutoRaise(true);
CloseButton->setDefaultAction(gMainWindow->mActions[LC_EDIT_CANCEL]);
CloseButton->setIcon(QIcon(":/stylesheet/close.png"));
Layout->addWidget(CloseButton, 0, 5);
lcPartsList PartsList; lcPartsList PartsList;
Model->GetPartsList(gDefaultColor, false, true, PartsList); Model->GetPartsList(gDefaultColor, false, true, PartsList);