forked from qt-creator/qt-creator
QmlDesigner: Fixing contextHelpId for TextEditorView
* Using the same pattern we use for FormEditorView Change-Id: I94f9219b1bd3f269a8288763fdea473f960efeaf Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -28,6 +28,7 @@
|
|||||||
#include "designmodewidget.h"
|
#include "designmodewidget.h"
|
||||||
#include "formeditorwidget.h"
|
#include "formeditorwidget.h"
|
||||||
#include "navigatorwidget.h"
|
#include "navigatorwidget.h"
|
||||||
|
#include "texteditorwidget.h"
|
||||||
|
|
||||||
namespace QmlDesigner {
|
namespace QmlDesigner {
|
||||||
namespace Internal {
|
namespace Internal {
|
||||||
@@ -77,10 +78,7 @@ TextEditorContext::TextEditorContext(QWidget *widget)
|
|||||||
|
|
||||||
QString TextEditorContext::contextHelpId() const
|
QString TextEditorContext::contextHelpId() const
|
||||||
{
|
{
|
||||||
// as TextEditorView::contextHelpId() uses the texteditor directly,
|
return qobject_cast<TextEditorWidget *>(m_widget)->contextHelpId();
|
||||||
// this should not happen
|
|
||||||
Q_ASSERT(false);
|
|
||||||
return QLatin1String("not_implemented");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user