QT6: QMutex::RecursionMode are obsolete

The default is QMutex::NonRecursive.
https://doc-snapshots.qt.io/qt6-dev/qmutex-obsolete.html
This commit is contained in:
Simon De Backer
2020-10-13 17:43:26 +02:00
parent d3da5a98a5
commit 106b17cf2f

View File

@@ -66,7 +66,7 @@ ElementScene::ElementScene(QETElementEditor *editor, QObject *parent) :
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()),