mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-08-02 17:08:12 -07:00
clear the filter term text edit box appropriately
clear the text box when the '+' button is pressed or when the filter attribute is changed. also changed the frame style to match the card frame style.
This commit is contained in:
@@ -37,11 +37,12 @@ FilterBuilder::FilterBuilder(QWidget *parent)
|
||||
layout->addLayout(addFilter);
|
||||
layout->addWidget(edit);
|
||||
|
||||
setFrameStyle(QFrame::Plain | QFrame::Box);
|
||||
setFrameStyle(QFrame::Panel | QFrame::Raised);
|
||||
layout->setAlignment(Qt::AlignTop);
|
||||
setLayout(layout);
|
||||
|
||||
connect(ok, SIGNAL(released()), this, SLOT(add_released()));
|
||||
connect(filterCombo, SIGNAL(currentIndexChanged(int)), edit, SLOT(clear()));
|
||||
fltr = NULL;
|
||||
}
|
||||
|
||||
@@ -74,4 +75,5 @@ void FilterBuilder::add_released()
|
||||
static_cast<CardFilter::Type>(comboCurrentIntData(typeCombo)),
|
||||
static_cast<CardFilter::Attr>(comboCurrentIntData(filterCombo)));
|
||||
emit add(fltr);
|
||||
edit->clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user