Page MenuHomePhabricator

Logging View: Reset search filter button is missing
Closed, ResolvedPublic

Description

The loggin view has a nice filter function to search for logging messages. It would be nice if a small button in the right corner of the corresponding text field would allow to remove the filter completely instead of beeing forced to delete it.

Event Timeline

Do you mean like this (see screenshot)?

screenshot-delete-button.png (203×393 px, 27 KB)

User reuterv has pushed new remote branch:

bug-18781-reset-search-filter-button

This bugfix colored the dashboard red as QLineEdit::setClearButtonEnabled was just introduced in Qt 5.2.

You can use something like the following in the ctor of berry::QtLogView (and revert your changes in the ui file:

#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)

ui.filterContent->setClearButtonEnabled(true);

#endif