Add clear button to deck editor (#2654)

This commit is contained in:
ctrlaltca
2017-04-26 21:20:35 +02:00
committed by Zach H
parent ce77d51a8f
commit df211748ca

View File

@@ -306,6 +306,9 @@ void TabDeckEditor::createCentralFrame()
{
searchEdit = new SearchLineEdit;
searchEdit->setObjectName("searchEdit");
#if QT_VERSION >= 0x050200
searchEdit->setClearButtonEnabled(true);
#endif
#if QT_VERSION >= 0x050300
searchEdit->addAction(QPixmap("theme:icons/search"), QLineEdit::LeadingPosition);
#endif