From df211748caac8e7744b454d9bcdfee18b4c832b2 Mon Sep 17 00:00:00 2001 From: ctrlaltca Date: Wed, 26 Apr 2017 21:20:35 +0200 Subject: [PATCH] Add clear button to deck editor (#2654) --- cockatrice/src/tab_deck_editor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cockatrice/src/tab_deck_editor.cpp b/cockatrice/src/tab_deck_editor.cpp index ffe9b671e..df6194f4d 100644 --- a/cockatrice/src/tab_deck_editor.cpp +++ b/cockatrice/src/tab_deck_editor.cpp @@ -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