forked from qt-creator/qt-creator
ProFileHoverHandler: fix context help
for variables and functions Change-Id: I56aafb31f8e3a9df2677b98db03f82010b2564ca Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -61,7 +61,7 @@ void ProFileHoverHandler::identifyMatch(TextEditor::TextEditorWidget *editorWidg
|
||||
identifyQMakeKeyword(block.text(), pos - block.position());
|
||||
|
||||
if (m_manualKind != UnknownManual) {
|
||||
QUrl url(QString::fromLatin1("qthelp://com.trolltech.qmake/qdoc/qmake-%1-reference.html#%2")
|
||||
QUrl url(QString::fromLatin1("qthelp://org.qt-project.qmake/qmake/qmake-%1-reference.html#%2")
|
||||
.arg(manualName()).arg(m_docFragment));
|
||||
setLastHelpItemIdentified(TextEditor::HelpItem(url.toString(),
|
||||
m_docFragment, TextEditor::HelpItem::QMakeVariableOfFunction));
|
||||
@@ -134,7 +134,7 @@ void ProFileHoverHandler::identifyDocFragment(ProFileHoverHandler::ManualKind ma
|
||||
m_docFragment.replace(QLatin1Char('_'), QLatin1Char('-'));
|
||||
|
||||
if (m_manualKind == FunctionManual) {
|
||||
QUrl url(QString::fromLatin1("qthelp://com.trolltech.qmake/qdoc/qmake-%1-reference.html").arg(manualName()));
|
||||
QUrl url(QString::fromLatin1("qthelp://org.qt-project.qmake/qmake/qmake-%1-reference.html").arg(manualName()));
|
||||
const QByteArray html = Core::HelpManager::fileData(url);
|
||||
|
||||
Utils::HtmlDocExtractor htmlExtractor;
|
||||
|
||||
Reference in New Issue
Block a user