From ebf03569daef514d75bcd4eb94fbe7a33a8a7ef4 Mon Sep 17 00:00:00 2001 From: dismine Date: Fri, 28 Feb 2014 15:12:39 +0200 Subject: [PATCH] Replaced method connect with old syntax. --HG-- branch : develop --- src/tablewindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tablewindow.cpp b/src/tablewindow.cpp index c59521075..4f14159b7 100644 --- a/src/tablewindow.cpp +++ b/src/tablewindow.cpp @@ -93,10 +93,10 @@ void TableWindow::AddDetail() { tableScene->clearSelection(); VItem* Detail = listDetails[indexDetail]; - QObject::connect(Detail, SIGNAL(itemOut(int, bool)), this, SLOT(itemOut(int, bool))); - QObject::connect(Detail, SIGNAL(itemColliding(QList, int)), this, - SLOT(itemColliding(QList, int))); - QObject::connect(this, SIGNAL(LengthChanged()), Detail, SLOT(LengthChanged())); + Q_CHECK_PTR(Detail); + connect(Detail, &VItem::itemOut, this, &TableWindow::itemOut); + connect(Detail, &VItem::itemColliding, this, &TableWindow::itemColliding); + connect(this, &TableWindow::LengthChanged, Detail, &VItem::LengthChanged); Detail->setPen(QPen(Qt::black, 1)); Detail->setBrush(QBrush(Qt::white)); Detail->setPos(paper->boundingRect().center());