Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
1a3aa6a9
Commit
1a3aa6a9
authored
Dec 17, 2009
by
Erik Verbruggen
Browse files
Changed help file discovery to include all qch files found.
parent
cbe7d1ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qtversionmanager.cpp
View file @
1a3aa6a9
...
...
@@ -203,12 +203,14 @@ void QtVersionManager::updateDocumentation()
Help
::
HelpManager
*
helpManager
=
ExtensionSystem
::
PluginManager
::
instance
()
->
getObject
<
Help
::
HelpManager
>
();
Q_ASSERT
(
helpManager
);
QStringList
fileEndings
=
QStringList
()
<<
"/qch/qt.qch"
<<
"/qch/qmake.qch"
<<
"/qch/designer.qch"
;
QStringList
files
;
foreach
(
QtVersion
*
version
,
m_versions
)
{
QString
docPath
=
version
->
documentationPath
();
foreach
(
const
QString
&
fileEnding
,
fileEndings
)
files
<<
docPath
+
fileEnding
;
const
QString
docPath
=
version
->
documentationPath
()
+
QLatin1String
(
"/qch/"
);
const
QDir
versionHelpDir
(
docPath
);
foreach
(
const
QString
&
helpFile
,
versionHelpDir
.
entryList
(
QStringList
()
<<
QLatin1String
(
"*.qch"
),
QDir
::
Files
))
files
<<
docPath
+
helpFile
;
}
helpManager
->
registerDocumentation
(
files
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment