mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-10 18:58:10 +00:00
Fix TOC filtering with slashes (#12359)
Seems the * wildcard does not match these.
This commit is contained in:
parent
9929916935
commit
0f2d711f34
@ -523,8 +523,13 @@ void TocWidget::filterContents()
|
||||
|
||||
QModelIndexList indices = tocTV->model()->match(
|
||||
tocTV->model()->index(0, 0),
|
||||
Qt::DisplayRole, "*", -1,
|
||||
Qt::MatchFlags(Qt::MatchWildcard|Qt::MatchRecursive));
|
||||
Qt::DisplayRole, ".*", -1,
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
|
||||
Qt::MatchFlags(Qt::MatchRegularExpression|Qt::MatchRecursive));
|
||||
#else
|
||||
// deprecated in Qt 5.15.
|
||||
Qt::MatchFlags(Qt::MatchRegExp|Qt::MatchRecursive));
|
||||
#endif
|
||||
|
||||
bool const show_active =
|
||||
activeFilterCO->currentIndex() != 2;
|
||||
|
Loading…
Reference in New Issue
Block a user