QmlDesigner: Use stylesheet in TextEditorWidget

Change-Id: I08d9e76a40f468a399b031dfa3af14e6b1118e19
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2017-01-04 13:00:12 +01:00
parent 5913e15011
commit 01095b5ddf

View File

@@ -27,6 +27,10 @@
#include <texteditorview.h>
#include <theming.h>
#include <utils/fileutils.h>
#include <QVBoxLayout>
namespace QmlDesigner {
@@ -37,6 +41,8 @@ TextEditorWidget::TextEditorWidget(TextEditorView *textEditorView) : QWidget()
{
QBoxLayout *layout = new QVBoxLayout(this);
layout->setMargin(0);
setStyleSheet(Theming::replaceCssColors(QString::fromUtf8(Utils::FileReader::fetchQrc(QLatin1String(":/qmldesigner/scrollbar.css")))));
}
void TextEditorWidget::setTextEditor(TextEditor::BaseTextEditor *textEditor) {