mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
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:
@@ -60,13 +60,13 @@ ElementScene::ElementScene(QETElementEditor *editor, QObject *parent) :
|
|||||||
//https://stackoverflow.com/questions/38458830/crash-after-qgraphicssceneremoveitem-with-custom-item-class
|
//https://stackoverflow.com/questions/38458830/crash-after-qgraphicssceneremoveitem-with-custom-item-class
|
||||||
//http://www.qtcentre.org/archive/index.php/t-33730.html
|
//http://www.qtcentre.org/archive/index.php/t-33730.html
|
||||||
//http://tech-artists.org/t/qt-properly-removing-qgraphicitems/3063
|
//http://tech-artists.org/t/qt-properly-removing-qgraphicitems/3063
|
||||||
|
|
||||||
m_behavior = Normal;
|
m_behavior = Normal;
|
||||||
setItemIndexMethod(NoIndex);
|
setItemIndexMethod(NoIndex);
|
||||||
setGrid(1, 1);
|
setGrid(1, 1);
|
||||||
initPasteArea();
|
initPasteArea();
|
||||||
m_undo_stack.setClean();
|
m_undo_stack.setClean();
|
||||||
m_decorator_lock = new QMutex(QMutex::NonRecursive);
|
m_decorator_lock = new QMutex();
|
||||||
connect(&m_undo_stack, SIGNAL(indexChanged(int)),
|
connect(&m_undo_stack, SIGNAL(indexChanged(int)),
|
||||||
this, SLOT(managePrimitivesGroups()));
|
this, SLOT(managePrimitivesGroups()));
|
||||||
connect(this, SIGNAL(selectionChanged()),
|
connect(this, SIGNAL(selectionChanged()),
|
||||||
|
|||||||
Reference in New Issue
Block a user