From 01095b5ddf2c1edc26c24f09a13328f4dd432616 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 4 Jan 2017 13:00:12 +0100 Subject: [PATCH] QmlDesigner: Use stylesheet in TextEditorWidget Change-Id: I08d9e76a40f468a399b031dfa3af14e6b1118e19 Reviewed-by: Alessandro Portale Reviewed-by: Tim Jenssen --- .../qmldesigner/components/texteditor/texteditorwidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp b/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp index ad25fab0f4c..750d7da6ed6 100644 --- a/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp +++ b/src/plugins/qmldesigner/components/texteditor/texteditorwidget.cpp @@ -27,6 +27,10 @@ #include +#include + +#include + #include 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) {