diff --git a/src/plugins/qmldesigner/components/bindingeditor/abstracteditordialog.cpp b/src/plugins/qmldesigner/components/bindingeditor/abstracteditordialog.cpp index 35b9c501745..9718691eb3f 100644 --- a/src/plugins/qmldesigner/components/bindingeditor/abstracteditordialog.cpp +++ b/src/plugins/qmldesigner/components/bindingeditor/abstracteditordialog.cpp @@ -3,18 +3,17 @@ #include "abstracteditordialog.h" +#include #include - #include #include #include -#include #include -#include -#include #include #include +#include +#include namespace QmlDesigner { @@ -102,8 +101,6 @@ void AbstractEditorDialog::setupJSEditor() m_editorWidget->setLineNumbersVisible(false); m_editorWidget->setMarksVisible(false); m_editorWidget->setCodeFoldingSupported(false); - m_editorWidget->setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); - m_editorWidget->setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded); m_editorWidget->setTabChangesFocus(true); } diff --git a/src/plugins/qmldesigner/components/bindingeditor/bindingeditorwidget.cpp b/src/plugins/qmldesigner/components/bindingeditor/bindingeditorwidget.cpp index da52d37a7e0..109bcd0854e 100644 --- a/src/plugins/qmldesigner/components/bindingeditor/bindingeditorwidget.cpp +++ b/src/plugins/qmldesigner/components/bindingeditor/bindingeditorwidget.cpp @@ -19,6 +19,7 @@ #include #include +#include #include @@ -34,6 +35,8 @@ BindingEditorWidget::BindingEditorWidget() m_context->setContext(context); Core::ICore::addContextObject(m_context); + Utils::TransientScrollAreaSupport::support(this); + /* * We have to register our own active auto completion shortcut, because the original short cut will * use the cursor position of the original editor in the editor manager.