diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2021-03-09 16:56:25 +0100 |
---|---|---|
committer | Alessandro Portale <alessandro.portale@qt.io> | 2021-03-18 19:12:39 +0000 |
commit | 93fbd5be02a95a00d8710637f9c4986e77e07ef0 (patch) | |
tree | 8c56dfce8f5bede07bcc0aa533041047386c75a9 /src/plugins/scxmleditor/plugin_interface/sceneutils.cpp | |
parent | e960062b80e0b37aaf6586d0524f95b4d5fd2d67 (diff) | |
download | qt-creator-93fbd5be02a95a00d8710637f9c4986e77e07ef0.tar.gz |
Remove dead code "< QT_VERSION_CHECK(5, 14, 0)"
Qt Creator required Qt 5.14 or higher. Let's removed the #idef-ed code
for building against lower Qt versions.
Add a comment in porting.h where we still need such code for sdktool.
Change-Id: Ib330275208eec4a2f285b4b9f480530c171f538a
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor/plugin_interface/sceneutils.cpp')
-rw-r--r-- | src/plugins/scxmleditor/plugin_interface/sceneutils.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/plugins/scxmleditor/plugin_interface/sceneutils.cpp b/src/plugins/scxmleditor/plugin_interface/sceneutils.cpp index d90dbabe95..97fd56c7f6 100644 --- a/src/plugins/scxmleditor/plugin_interface/sceneutils.cpp +++ b/src/plugins/scxmleditor/plugin_interface/sceneutils.cpp @@ -225,11 +225,7 @@ void layout(const QList<QGraphicsItem*> &items) firstItem = initialItem->outputTransitions().constFirst()->connectedItem(initialItem); int index = childItems.indexOf(firstItem); if (index > 0) -#if QT_VERSION < QT_VERSION_CHECK(5, 13, 0) - childItems.swap(index, 0); -#else childItems.swapItemsAt(index, 0); -#endif } // Search final-item |