mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix TOC filtering with slashes (#12359)
Seems the * wildcard does not match these.
This commit is contained in:
parent
b4ff3fb287
commit
cfd3abbdb0
@ -485,8 +485,13 @@ void TocWidget::filterContents()
|
|||||||
|
|
||||||
QModelIndexList indices = tocTV->model()->match(
|
QModelIndexList indices = tocTV->model()->match(
|
||||||
tocTV->model()->index(0, 0),
|
tocTV->model()->index(0, 0),
|
||||||
Qt::DisplayRole, "*", -1,
|
Qt::DisplayRole, ".*", -1,
|
||||||
Qt::MatchFlags(Qt::MatchWildcard|Qt::MatchRecursive));
|
#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
|
||||||
|
|
||||||
int size = indices.size();
|
int size = indices.size();
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user