forked from qt-creator/qt-creator
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user