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
2e6217b7
Commit
2e6217b7
authored
Sep 29, 2010
by
kh1
Browse files
Prefer never documentation over old ones.
Task-number: QTCREATORBUG-2080 Reviewed-by: ck
parent
81d40def
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/help/helpplugin.cpp
View file @
2e6217b7
...
...
@@ -73,6 +73,7 @@
#include
<QtCore/QTimer>
#include
<QtCore/QTranslator>
#include
<QtCore/qplugin.h>
#include
<QtCore/QRegExp>
#include
<QtGui/QAction>
#include
<QtGui/QComboBox>
...
...
@@ -839,7 +840,21 @@ void HelpPlugin::activateContext()
"available.</center></body></html>"
).
arg
(
m_idFromContext
));
viewer
->
setSource
(
QUrl
());
}
else
{
const
QUrl
&
source
=
*
links
.
begin
();
int
version
=
0
;
const
QRegExp
exp
(
"(
\\
d+)"
);
QUrl
source
=
*
links
.
begin
();
foreach
(
const
QUrl
&
tmp
,
links
)
{
const
QString
&
authority
=
tmp
.
authority
();
if
(
authority
.
startsWith
(
QLatin1String
(
"com.trolltech.qt"
)))
{
if
(
exp
.
indexIn
(
authority
)
>=
0
)
{
const
int
tmpVersion
=
exp
.
cap
(
1
).
toInt
();
if
(
tmpVersion
>
version
)
{
source
=
tmp
;
version
=
tmpVersion
;
}
}
}
}
const
QUrl
&
oldSource
=
viewer
->
source
();
if
(
source
!=
oldSource
)
{
#if !defined(QT_NO_WEBKIT)
...
...
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