forked from qt-creator/qt-creator
QmlDesigner: Fix 'could not parse style sheet' runtime warning
Reviewed-by: Thomas Hartmann
This commit is contained in:
@@ -522,7 +522,7 @@ void DesignModeWidget::setup()
|
|||||||
QFile file2(":/qmldesigner/scrollbar.css");
|
QFile file2(":/qmldesigner/scrollbar.css");
|
||||||
file2.open(QFile::ReadOnly);
|
file2.open(QFile::ReadOnly);
|
||||||
|
|
||||||
QString labelStyle = QLatin1String("QLabel { background-color: ##4f4f4f; }");
|
QString labelStyle = QLatin1String("QLabel { background-color: #4f4f4f; }");
|
||||||
|
|
||||||
QString styleSheet = file.readAll() + file2.readAll() + labelStyle;
|
QString styleSheet = file.readAll() + file2.readAll() + labelStyle;
|
||||||
navigationView.widget->setStyleSheet(styleSheet);
|
navigationView.widget->setStyleSheet(styleSheet);
|
||||||
|
|||||||
Reference in New Issue
Block a user