MCPcopy Create free account
hub / github.com/codestation/qcma / updateCloseButton

Method updateCloseButton

gui/filterlineedit.cpp:48–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void FilterLineEdit::updateCloseButton(const QString& filter_text)
49{
50 if(filter_text.isEmpty() || filter_text == tr("Filter")) {
51 clearButton->setVisible(false);
52 } else {
53 clearButton->setVisible(true);
54 }
55}
56
57void FilterLineEdit::focusInEvent(QFocusEvent *e)
58{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected