card filter: add clear button and placeholder text (#3003)

This commit is contained in:
tooomm 2018-01-11 22:43:08 +01:00 committed by Zach H
parent 6fc1aaef90
commit cc822dd8df
2 changed files with 6 additions and 2 deletions

View file

@ -32,6 +32,10 @@ FilterBuilder::FilterBuilder(QWidget *parent)
edit = new QLineEdit;
edit->setObjectName("edit");
edit->setPlaceholderText(tr("Type your filter here"));
#if QT_VERSION >= 0x050200
edit->setClearButtonEnabled(true);
#endif
edit->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
QGridLayout *layout = new QGridLayout;