Web: move to new style connect()
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user