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
Tobias Hunger
qt-creator
Commits
119bb180
Commit
119bb180
authored
Sep 15, 2009
by
con
Browse files
Remove old Qt Creator documentation.
parent
29ecb233
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/help/helpplugin.cpp
View file @
119bb180
...
...
@@ -573,14 +573,26 @@ void HelpPlugin::extensionsInitialized()
bool
needsSetup
=
false
;
bool
assistantInternalDocRegistered
=
false
;
QStringList
documentationToRemove
;
const
QString
&
docInternal
=
QString
(
"com.nokia.qtcreator.%1%2"
)
.
arg
(
IDE_VERSION_MAJOR
).
arg
(
IDE_VERSION_MINOR
);
const
QString
&
docInternal
=
QString
(
"com.nokia.qtcreator.%1%2
%3
"
)
.
arg
(
IDE_VERSION_MAJOR
).
arg
(
IDE_VERSION_MINOR
)
.
arg
(
IDE_VERSION_RELEASE
)
;
const
QStringList
&
docs
=
m_helpEngine
->
registeredDocumentations
();
foreach
(
const
QString
&
ns
,
docs
)
{
if
(
ns
==
docInternal
)
{
assistantInternalDocRegistered
=
true
;
break
;
}
else
if
(
ns
.
startsWith
(
"com.nokia.qtcreator."
))
{
documentationToRemove
<<
ns
;
}
}
//remove any qtcreator documentation that doesn't belong to current version
if
(
!
documentationToRemove
.
isEmpty
())
{
QHelpEngineCore
hc
(
m_helpEngine
->
collectionFile
());
hc
.
setupData
();
foreach
(
const
QString
&
ns
,
documentationToRemove
)
{
if
(
hc
.
unregisterDocumentation
(
ns
))
needsSetup
=
true
;
}
}
...
...
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