Replaced method connect with old syntax.
--HG-- branch : develop
This commit is contained in:
parent
1ab3b6c608
commit
ebf03569da
|
@ -93,10 +93,10 @@ void TableWindow::AddDetail()
|
||||||
{
|
{
|
||||||
tableScene->clearSelection();
|
tableScene->clearSelection();
|
||||||
VItem* Detail = listDetails[indexDetail];
|
VItem* Detail = listDetails[indexDetail];
|
||||||
QObject::connect(Detail, SIGNAL(itemOut(int, bool)), this, SLOT(itemOut(int, bool)));
|
Q_CHECK_PTR(Detail);
|
||||||
QObject::connect(Detail, SIGNAL(itemColliding(QList<QGraphicsItem*>, int)), this,
|
connect(Detail, &VItem::itemOut, this, &TableWindow::itemOut);
|
||||||
SLOT(itemColliding(QList<QGraphicsItem*>, int)));
|
connect(Detail, &VItem::itemColliding, this, &TableWindow::itemColliding);
|
||||||
QObject::connect(this, SIGNAL(LengthChanged()), Detail, SLOT(LengthChanged()));
|
connect(this, &TableWindow::LengthChanged, Detail, &VItem::LengthChanged);
|
||||||
Detail->setPen(QPen(Qt::black, 1));
|
Detail->setPen(QPen(Qt::black, 1));
|
||||||
Detail->setBrush(QBrush(Qt::white));
|
Detail->setBrush(QBrush(Qt::white));
|
||||||
Detail->setPos(paper->boundingRect().center());
|
Detail->setPos(paper->boundingRect().center());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user