Skip to content
GitLab
Menu
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
2e064af1
Commit
2e064af1
authored
Jan 06, 2009
by
con
Browse files
Fixes: - Move help collection also to qtcreator subdir.
parent
123ef3db
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/plugins/cppeditor/cpphoverhandler.cpp
View file @
2e064af1
...
...
@@ -72,10 +72,16 @@ CppHoverHandler::CppHoverHandler(QObject *parent)
m_modelManager
=
m_core
->
pluginManager
()
->
getObject
<
CppTools
::
CppModelManagerInterface
>
();
QFileInfo
fi
(
ExtensionSystem
::
PluginManager
::
instance
()
->
getObject
<
Core
::
ICore
>
()
->
settings
()
->
fileName
());
m_helpEngine
=
new
QHelpEngineCore
(
fi
.
absolutePath
()
// FIXME shouldn't the help engine create the directory if it doesn't exist?
QDir
directory
(
fi
.
absolutePath
()
+
"/qtcreator"
);
if
(
!
directory
.
exists
())
directory
.
mkpath
(
directory
.
absolutePath
());
m_helpEngine
=
new
QHelpEngineCore
(
directory
.
absolutePath
()
+
QLatin1String
(
"/helpcollection.qhc"
),
this
);
//m_helpEngine->setAutoSaveFilter(false);
m_helpEngine
->
setupData
();
if
(
!
m_helpEngine
->
setupData
())
qWarning
()
<<
"Could not initialize help engine:"
<<
m_helpEngine
->
error
();
m_helpEngine
->
setCurrentFilter
(
tr
(
"Unfiltered"
));
m_helpEngineNeedsSetup
=
m_helpEngine
->
registeredDocumentations
().
count
()
==
0
;
...
...
src/plugins/help/helpplugin.cpp
View file @
2e064af1
...
...
@@ -83,7 +83,8 @@ void HelpManager::registerDocumentation(const QStringList &fileNames)
bool
needsSetup
=
false
;
{
QHelpEngineCore
hc
(
m_helpEngine
->
collectionFile
());
hc
.
setupData
();
if
(
!
hc
.
setupData
())
qWarning
()
<<
"Could not initialize help engine:"
<<
hc
.
error
();
foreach
(
const
QString
&
fileName
,
fileNames
)
{
if
(
!
QFile
::
exists
(
fileName
))
continue
;
...
...
@@ -132,7 +133,7 @@ bool HelpPlugin::initialize(const QStringList & /*arguments*/, QString *)
// FIXME shouldn't the help engine create the directory if it doesn't exist?
QFileInfo
fi
(
m_core
->
settings
()
->
fileName
());
QDir
directory
(
fi
.
absolutePath
());
QDir
directory
(
fi
.
absolutePath
()
+
"/qtcreator"
);
if
(
!
directory
.
exists
())
directory
.
mkpath
(
directory
.
absolutePath
());
m_helpEngine
=
new
QHelpEngine
(
directory
.
absolutePath
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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