1 2 3 4 5 6 7 8 9 10
bool AkonadiServer::quit() { QTimer::singleShot( 0, this, SLOT ( doQuit( ) ) ); } void AkonadiServer::incomingConnection(quintptr socketDescriptor) { QPointer<ConnectionThread> thread = new ConnectionThread(socketDescriptor, this); connect(thread, SIGNAL(finished()), thread, SLOT(deleteLater())); }