mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-30 06:39:58 +02:00
QT6: TeDo mod QList for DeleteQGraphicsItemCommand
This commit is contained in:
@@ -191,7 +191,14 @@ void DeleteQGraphicsItemCommand::setPotentialsOfRemovedElements()
|
|||||||
|
|
||||||
if (exist_ == false)
|
if (exist_ == false)
|
||||||
{
|
{
|
||||||
|
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
|
||||||
m_connected_terminals.append(qMakePair<Terminal *, Terminal *>(hub_terminal, t));
|
m_connected_terminals.append(qMakePair<Terminal *, Terminal *>(hub_terminal, t));
|
||||||
|
#else
|
||||||
|
#if TODO_LIST
|
||||||
|
#pragma message("@TODO remove code for QT 6 or later")
|
||||||
|
#endif
|
||||||
|
qDebug()<<"Help code for QT 6 or later";
|
||||||
|
#endif
|
||||||
Conductor *new_cond = new Conductor(hub_terminal, t);
|
Conductor *new_cond = new Conductor(hub_terminal, t);
|
||||||
new_cond->setProperties(properties);
|
new_cond->setProperties(properties);
|
||||||
new AddItemCommand<Conductor*>(new_cond, t->diagram(), QPointF(), this);
|
new AddItemCommand<Conductor*>(new_cond, t->diagram(), QPointF(), this);
|
||||||
|
|||||||
Reference in New Issue
Block a user