forked from qt-creator/qt-creator
Remove option to extend tooltips.
This commit is contained in:
@@ -152,7 +152,7 @@ void BaseHoverHandler::decorateToolTip(ITextEditor *editor)
|
||||
return;
|
||||
|
||||
if (lastHelpItemIdentified().isValid()) {
|
||||
const QString &contents = lastHelpItemIdentified().extractContent(extendToolTips(editor));
|
||||
const QString &contents = lastHelpItemIdentified().extractContent(false);
|
||||
if (!contents.isEmpty()) {
|
||||
appendToolTip(contents);
|
||||
} else {
|
||||
@@ -179,11 +179,3 @@ BaseTextEditor *BaseHoverHandler::baseTextEditor(ITextEditor *editor)
|
||||
return 0;
|
||||
return qobject_cast<BaseTextEditor *>(editor->widget());
|
||||
}
|
||||
|
||||
bool BaseHoverHandler::extendToolTips(ITextEditor *editor)
|
||||
{
|
||||
BaseTextEditor *baseEditor = baseTextEditor(editor);
|
||||
if (baseEditor && baseEditor->displaySettings().m_extendTooltips)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user