diff options
author | Jarek Kobus <jaroslaw.kobus@qt.io> | 2019-02-19 14:00:39 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@qt.io> | 2019-03-01 10:12:03 +0000 |
commit | 36a7262f8ab56c7790afd0eb43f3b07413c8bc08 (patch) | |
tree | 375c0218febf0b42546934816ad66624366165f8 /src/assistant/help/qhelpcollectionhandler_p.h | |
parent | 0198964f88c938f07058fe6deefaaa79434dc002 (diff) |
Create default version filter
This mimics the behavior of old filters,
where in 98% of use cases the qch file provided
a separate filter for its module.
Change-Id: I537d8336ea3cc0c6c894b494d7f2346df7499572
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/assistant/help/qhelpcollectionhandler_p.h')
-rw-r--r-- | src/assistant/help/qhelpcollectionhandler_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/assistant/help/qhelpcollectionhandler_p.h b/src/assistant/help/qhelpcollectionhandler_p.h index c52498f4e..223f66012 100644 --- a/src/assistant/help/qhelpcollectionhandler_p.h +++ b/src/assistant/help/qhelpcollectionhandler_p.h @@ -220,7 +220,9 @@ private: bool createTables(QSqlQuery *query); void closeDB(); bool recreateIndexAndNamespaceFilterTables(QSqlQuery *query); - bool registerIndexAndNamespaceFilterTables(const QString &nameSpace); + bool registerIndexAndNamespaceFilterTables(const QString &nameSpace, + bool createDefaultVersionFilter = false); + void createVersionFilter(const QString &version); bool registerFilterAttributes(const QList<QStringList> &attributeSets, int nsId); bool registerFileAttributeSets(const QList<QStringList> &attributeSets, int nsId); bool registerIndexTable(const QHelpDBReader::IndexTable &indexTable, |