From 106b17cf2fbd337d4bc3e24090dd58c0ed2c3a9f Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Tue, 13 Oct 2020 17:43:26 +0200 Subject: [PATCH] QT6: QMutex::RecursionMode are obsolete The default is QMutex::NonRecursive. https://doc-snapshots.qt.io/qt6-dev/qmutex-obsolete.html --- sources/editor/elementscene.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/editor/elementscene.cpp b/sources/editor/elementscene.cpp index deaada775..431f34fe5 100644 --- a/sources/editor/elementscene.cpp +++ b/sources/editor/elementscene.cpp @@ -60,13 +60,13 @@ ElementScene::ElementScene(QETElementEditor *editor, QObject *parent) : //https://stackoverflow.com/questions/38458830/crash-after-qgraphicssceneremoveitem-with-custom-item-class //http://www.qtcentre.org/archive/index.php/t-33730.html //http://tech-artists.org/t/qt-properly-removing-qgraphicitems/3063 - + m_behavior = Normal; setItemIndexMethod(NoIndex); setGrid(1, 1); initPasteArea(); m_undo_stack.setClean(); - m_decorator_lock = new QMutex(QMutex::NonRecursive); + m_decorator_lock = new QMutex(); connect(&m_undo_stack, SIGNAL(indexChanged(int)), this, SLOT(managePrimitivesGroups())); connect(this, SIGNAL(selectionChanged()),