diff options
author | JiDe Zhang <zhangjide@uniontech.com> | 2021-02-03 14:32:43 +0800 |
---|---|---|
committer | Qt CI Bot <qt_ci_bot@qt-project.org> | 2021-03-03 11:40:28 +0000 |
commit | b18a845befbd8fb38f78a279de07c4d21ac9460c (patch) | |
tree | 5186462dd1b0f8329e072f02e40efa25e0884301 /src/widgets/graphicsview/qgraphicswidget.cpp | |
parent | 6e0ce4ee8005d36ee5d080212b8d83b42ebcae17 (diff) | |
parent | cc7911beb11d69f556f1b5d31d3c4c56b7503086 (diff) |
Merge "fix: Print a warning message if the Xcb EGL initialize failed"
Diffstat (limited to 'src/widgets/graphicsview/qgraphicswidget.cpp')
-rw-r--r-- | src/widgets/graphicsview/qgraphicswidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicswidget.cpp b/src/widgets/graphicsview/qgraphicswidget.cpp index fea9e18b9c..a4b1b8ea6c 100644 --- a/src/widgets/graphicsview/qgraphicswidget.cpp +++ b/src/widgets/graphicsview/qgraphicswidget.cpp @@ -2143,7 +2143,7 @@ void QGraphicsWidget::setTabOrder(QGraphicsWidget *first, QGraphicsWidget *secon return; } QGraphicsScene *scene = first ? first->scene() : second->scene(); - if (!scene && (!first || !second)) { + if (!scene) { qWarning("QGraphicsWidget::setTabOrder: assigning tab order from/to the" " scene requires the item to be in a scene."); return; |