CPaster: Use Qt5-style connect

Change-Id: I22cbec892d1f0cd347929308f6aab40d9483fd88
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
This commit is contained in:
Orgad Shaneh
2016-05-28 23:52:16 +03:00
committed by Orgad Shaneh
parent 928ba8aa84
commit 702fd2e62c
2 changed files with 3 additions and 3 deletions

View File

@@ -72,7 +72,7 @@ public:
qApp->exit(EXIT_FAILURE);
return;
}
connect(m_protocol.data(), SIGNAL(pasteDone(QString)), SLOT(handlePasteDone(QString)));
connect(m_protocol.data(), &Protocol::pasteDone, this, &PasteReceiver::handlePasteDone);
m_protocol->paste(content);
}
@@ -113,7 +113,7 @@ int main(int argc, char *argv[])
return EXIT_SUCCESS;
case ArgumentsCollector::RequestTypePaste: {
PasteReceiver pr(argsCollector.protocol(), argsCollector.inputFilePath());
QTimer::singleShot(0, &pr, SLOT(paste()));
QTimer::singleShot(0, &pr, &PasteReceiver::paste);
return app.exec();
}
}

View File

@@ -209,7 +209,7 @@ bool NetworkProtocol::httpStatus(QString url, QString *errorMessage, bool useHtt
tr("Connecting to %1...").arg(url),
QMessageBox::Cancel,
Core::ICore::mainWindow());
connect(reply.data(), SIGNAL(finished()), &box, SLOT(close()));
connect(reply.data(), &QNetworkReply::finished, &box, &QWidget::close);
QApplication::setOverrideCursor(Qt::WaitCursor);
box.exec();
QApplication::restoreOverrideCursor();