forked from qt-creator/qt-creator
TextEditor: Remove BaseTextEditor::setContextHelp()
This is never called, neither directly nor indirectly via the IEditor/IContext base classes. Change-Id: Ie68595598c36dbbc6d0e3eb84aea756ed0e66029 Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -9687,12 +9687,6 @@ void BaseTextEditor::contextHelp(const HelpCallback &callback) const
|
|||||||
editorWidget()->contextHelpItem(callback);
|
editorWidget()->contextHelpItem(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
void BaseTextEditor::setContextHelp(const HelpItem &item)
|
|
||||||
{
|
|
||||||
IEditor::setContextHelp(item);
|
|
||||||
editorWidget()->setContextHelpItem(item);
|
|
||||||
}
|
|
||||||
|
|
||||||
void TextEditorWidget::contextHelpItem(const IContext::HelpCallback &callback)
|
void TextEditorWidget::contextHelpItem(const IContext::HelpCallback &callback)
|
||||||
{
|
{
|
||||||
if (!d->m_contextHelpItem.isEmpty()) {
|
if (!d->m_contextHelpItem.isEmpty()) {
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ public:
|
|||||||
QWidget *toolBar() override;
|
QWidget *toolBar() override;
|
||||||
|
|
||||||
void contextHelp(const HelpCallback &callback) const override; // from IContext
|
void contextHelp(const HelpCallback &callback) const override; // from IContext
|
||||||
void setContextHelp(const Core::HelpItem &item) override;
|
|
||||||
|
|
||||||
int currentLine() const override;
|
int currentLine() const override;
|
||||||
int currentColumn() const override;
|
int currentColumn() const override;
|
||||||
|
|||||||
Reference in New Issue
Block a user