mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06:00
Add clear button to filter line edit widgets
When entering some filter value show a clear button in that line edit widget which when clicked clears the filter value.
This commit is contained in:
@@ -12,6 +12,9 @@ public:
|
||||
explicit FilterLineEdit(QWidget* parent, QList<FilterLineEdit*>* filters, int columnnum) : QLineEdit(parent), filterList(filters), columnNumber(columnnum)
|
||||
{
|
||||
setPlaceholderText(tr("Filter"));
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 2, 0)
|
||||
setClearButtonEnabled(true);
|
||||
#endif
|
||||
setProperty("column", columnnum); // Store the column number for later use
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user