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:
parent
c786e180c3
commit
5d223b5917
1 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue