aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/modeleditor/modeleditor.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2020-11-18 22:42:51 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2020-11-19 08:42:14 +0000
commitb2a766a79ac778febff87f0def34cf6d3f4f93e3 (patch)
tree8948acefd801721406f4e4015dde6616f4ee0303 /src/plugins/modeleditor/modeleditor.cpp
parent0c0347ce61a55b972178a8a07bb4f0c819555219 (diff)
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>
Diffstat (limited to 'src/plugins/modeleditor/modeleditor.cpp')
-rw-r--r--src/plugins/modeleditor/modeleditor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/modeleditor/modeleditor.cpp b/src/plugins/modeleditor/modeleditor.cpp
index 403ef07959d..2be6f0aa090 100644
--- a/src/plugins/modeleditor/modeleditor.cpp
+++ b/src/plugins/modeleditor/modeleditor.cpp
@@ -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