Web: move to new style connect()

This commit is contained in:
wmayer
2023-01-13 15:14:29 +01:00
parent e47147ea37
commit 507a1f82bc
2 changed files with 6 additions and 6 deletions

View File

@@ -127,11 +127,11 @@ AppServer::AppServer( bool direct, QObject* parent)
void AppServer::incomingConnection(qintptr socket)
{
QTcpSocket* s = new QTcpSocket(this);
connect(s, SIGNAL(readyRead()), this, SLOT(readClient()));
connect(s, SIGNAL(disconnected()), this, SLOT(discardClient()));
s->setSocketDescriptor(socket);
addPendingConnection(s);
QTcpSocket* tcpSocket = new QTcpSocket(this);
connect(tcpSocket, &QTcpSocket::readyRead, this, &AppServer::readClient);
connect(tcpSocket, &QTcpSocket::disconnected, this, &AppServer::discardClient);
tcpSocket->setSocketDescriptor(socket);
addPendingConnection(tcpSocket);
}
void AppServer::readClient()

View File

@@ -48,7 +48,7 @@ FcCookieJar::FcCookieJar(QObject* parent)
// syscalls in sequence (when loading pages which set multiple cookies).
m_timer.setInterval(10000);
m_timer.setSingleShot(true);
connect(&m_timer, SIGNAL(timeout()), this, SLOT(saveToDisk()));
connect(&m_timer, &QTimer::timeout, this, &FcCookieJar::saveToDisk);
Base::FileInfo cookiefile(App::Application::getUserAppDataDir() + "cookies");
m_file.setFileName(QString::fromUtf8(cookiefile.filePath().c_str()));
if (allCookies().isEmpty())