mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
Add clear button to deck editor (#2654)
This commit is contained in:
parent
ce77d51a8f
commit
df211748ca
1 changed files with 3 additions and 0 deletions
|
|
@ -306,6 +306,9 @@ void TabDeckEditor::createCentralFrame()
|
||||||
{
|
{
|
||||||
searchEdit = new SearchLineEdit;
|
searchEdit = new SearchLineEdit;
|
||||||
searchEdit->setObjectName("searchEdit");
|
searchEdit->setObjectName("searchEdit");
|
||||||
|
#if QT_VERSION >= 0x050200
|
||||||
|
searchEdit->setClearButtonEnabled(true);
|
||||||
|
#endif
|
||||||
#if QT_VERSION >= 0x050300
|
#if QT_VERSION >= 0x050300
|
||||||
searchEdit->addAction(QPixmap("theme:icons/search"), QLineEdit::LeadingPosition);
|
searchEdit->addAction(QPixmap("theme:icons/search"), QLineEdit::LeadingPosition);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue