Commit 5d223b59 authored by sylvanbasilisk's avatar sylvanbasilisk
Browse files

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.
parent c786e180
...@@ -37,11 +37,12 @@ FilterBuilder::FilterBuilder(QWidget *parent) ...@@ -37,11 +37,12 @@ FilterBuilder::FilterBuilder(QWidget *parent)
layout->addLayout(addFilter); layout->addLayout(addFilter);
layout->addWidget(edit); layout->addWidget(edit);
setFrameStyle(QFrame::Plain | QFrame::Box); setFrameStyle(QFrame::Panel | QFrame::Raised);
layout->setAlignment(Qt::AlignTop); layout->setAlignment(Qt::AlignTop);
setLayout(layout); setLayout(layout);
connect(ok, SIGNAL(released()), this, SLOT(add_released())); connect(ok, SIGNAL(released()), this, SLOT(add_released()));
connect(filterCombo, SIGNAL(currentIndexChanged(int)), edit, SLOT(clear()));
fltr = NULL; fltr = NULL;
} }
...@@ -74,4 +75,5 @@ void FilterBuilder::add_released() ...@@ -74,4 +75,5 @@ void FilterBuilder::add_released()
static_cast<CardFilter::Type>(comboCurrentIntData(typeCombo)), static_cast<CardFilter::Type>(comboCurrentIntData(typeCombo)),
static_cast<CardFilter::Attr>(comboCurrentIntData(filterCombo))); static_cast<CardFilter::Attr>(comboCurrentIntData(filterCombo)));
emit add(fltr); emit add(fltr);
edit->clear();
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment