forked from qt-creator/qt-creator
Don't access static functions/fields via instance
Courtesy of readability-static-accessed-through-instance Change-Id: I71f54244f1e091315dac2943d9e1bfad6efa56a9 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -222,7 +222,7 @@ void ModelEditor::init()
|
||||
|
||||
d->leftToolBox = new QToolBox(d->leftGroup);
|
||||
// Windows style does not truncate the tab label to a very small width (GTK+ does)
|
||||
static QStyle *windowsStyle = QStyleFactory().create("Windows");
|
||||
static QStyle *windowsStyle = QStyleFactory::create("Windows");
|
||||
if (windowsStyle)
|
||||
d->leftToolBox->setStyle(windowsStyle);
|
||||
// TODO improve this (and the diagram colors) for use with dark theme
|
||||
|
||||
Reference in New Issue
Block a user