Fix backwards-compatible Qt6 warnings
This commit is contained in:
committed by
Chris Hennes
parent
5b4eeb29a9
commit
33e91421b5
@@ -720,7 +720,7 @@ void MDIViewPage::sceneSelectionManager()
|
||||
//add to m_qgSceneSelected anything that is in q_sceneSel
|
||||
for (auto qts : sceneSel) {
|
||||
bool found = false;
|
||||
for (auto ms : qAsConst(m_qgSceneSelected)) {
|
||||
for (auto ms : std::as_const(m_qgSceneSelected)) {
|
||||
if (qts == ms) {
|
||||
found = true;
|
||||
break;
|
||||
@@ -734,7 +734,7 @@ void MDIViewPage::sceneSelectionManager()
|
||||
|
||||
//remove items from m_qgSceneSelected that are not in q_sceneSel
|
||||
QList<QGraphicsItem*> m_new;
|
||||
for (auto m : qAsConst(m_qgSceneSelected)) {
|
||||
for (auto m : std::as_const(m_qgSceneSelected)) {
|
||||
for (auto q : sceneSel) {
|
||||
if (m == q) {
|
||||
m_new.push_back(m);
|
||||
|
||||
Reference in New Issue
Block a user