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
Marco Bubke
flatpak-qt-creator
Commits
5123f48b
Commit
5123f48b
authored
May 12, 2009
by
Daniel Molkentin
Browse files
Register as handler for qthelp://, remove obsolete started action slot.
parent
1144682d
Changes
2
Show whitespace changes
Inline
Side-by-side
src/plugins/help/helpplugin.cpp
View file @
5123f48b
...
...
@@ -356,6 +356,8 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
createRightPaneSideBar
();
QDesktopServices
::
setUrlHandler
(
"qthelp"
,
this
,
"openHelpPage"
);
return
true
;
}
...
...
@@ -523,7 +525,6 @@ void HelpPlugin::extensionsInitialized()
m_bookmarkManager
->
setupBookmarkModels
();
if
(
Core
::
Internal
::
WelcomeMode
*
welcomeMode
=
qobject_cast
<
Core
::
Internal
::
WelcomeMode
*>
(
m_core
->
modeManager
()
->
mode
(
Core
::
Constants
::
MODE_WELCOME
)))
{
connect
(
welcomeMode
,
SIGNAL
(
requestHelp
()),
this
,
SLOT
(
openGettingStarted
()));
connect
(
welcomeMode
,
SIGNAL
(
openHelpPage
(
const
QString
&
)),
this
,
SLOT
(
openHelpPage
(
const
QString
&
)));
}
}
...
...
@@ -722,11 +723,9 @@ void HelpPlugin::addNewBookmark(const QString &title, const QString &url)
m_bookmarkManager
->
showBookmarkDialog
(
m_centralWidget
,
title
,
url
);
}
void
HelpPlugin
::
open
GettingStarted
(
)
void
HelpPlugin
::
open
HelpPage
(
const
QUrl
&
url
)
{
openHelpPage
(
QString
(
"qthelp://com.nokia.qtcreator.%1%2/doc/index.html"
)
.
arg
(
IDE_VERSION_MAJOR
).
arg
(
IDE_VERSION_MINOR
));
openHelpPage
(
url
.
toString
());
}
void
HelpPlugin
::
openHelpPage
(
const
QString
&
url
)
...
...
src/plugins/help/helpplugin.h
View file @
5123f48b
...
...
@@ -128,7 +128,7 @@ private slots:
void
slotHideRightPane
();
void
copyFromSideBar
();
void
open
GettingStarted
(
);
void
open
HelpPage
(
const
QUrl
&
url
);
void
openHelpPage
(
const
QString
&
url
);
private:
...
...
Write
Preview
Supports
Markdown
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