mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-20 15:40:32 +00:00
Add a default filter to CS tables
This fixes the single most annoying issue of OpenMW-CS: inability for users to filter records in the table if they don't happen to know by heart the syntax of the very powerful filter engine. Because simply typing the text into the search field did not work. Now, existence of .* suggests that regex is used, and users still can replace the text with a custom filter if they wish.
This commit is contained in:
parent
7d8949ec3f
commit
ec576b36f1
@ -42,6 +42,8 @@ CSVFilter::EditWidget::EditWidget (CSMWorld::Data& data, QWidget *parent)
|
||||
addAction (mHelpAction);
|
||||
auto* openHelpShortcut = new CSMPrefs::Shortcut("help", this);
|
||||
openHelpShortcut->associateAction(mHelpAction);
|
||||
|
||||
setText("!string(\"ID\", \".*\")");
|
||||
}
|
||||
|
||||
void CSVFilter::EditWidget::textChanged (const QString& text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user