on xenial help sign in
Update to new connect syntax
d48d17fJosh Arenson
plugins/LightDM/IntegratedLightDM/liblightdm/Greeter.cpp+1−1
@@ -175,7 +175,7 @@ void Greeter::sendAuthenticationComplete()
175{
175{
176 if (qgetenv("UNITY_TESTING").isEmpty()) {
176 if (qgetenv("UNITY_TESTING").isEmpty()) {
177 // simulate PAM's delay
177 // simulate PAM's delay
178− QTimer::singleShot(1000, this, SIGNAL(authenticationComplete()));
178+ QTimer::singleShot(1000, this, &Greeter::authenticationComplete);
179 } else {
179 } else {
180 Q_EMIT authenticationComplete();
180 Q_EMIT authenticationComplete();
181 }
181 }
plugins/LightDM/IntegratedLightDM/liblightdm/GreeterPrivate.cpp+1−2
@@ -50,8 +50,7 @@ public:
50 {
50 {
51 qRegisterMetaType<QLightDM::GreeterImpl::ResponseFuture>("QLightDM::GreeterImpl::ResponseFuture");
51 qRegisterMetaType<QLightDM::GreeterImpl::ResponseFuture>("QLightDM::GreeterImpl::ResponseFuture");
52
52
53− connect(&futureWatcher, SIGNAL(finished()),
53+connect(&futureWatcher, &QFutureWatcher<int>::finished, this, &GreeterImpl::finishPam);
54− this, SLOT(finishPam()));
55 connect(this, SIGNAL(showMessage(pam_handle *, QString, QLightDM::Greeter::MessageType)),
54 connect(this, SIGNAL(showMessage(pam_handle *, QString, QLightDM::Greeter::MessageType)),
56 this, SLOT(handleMessage(pam_handle *, QString, QLightDM::Greeter::MessageType)));
55 this, SLOT(handleMessage(pam_handle *, QString, QLightDM::Greeter::MessageType)));
57 // This next connect is how we pass ResponseFutures between threads
56 // This next connect is how we pass ResponseFutures between threads