on xenial help sign in
Update to new connect syntax
commitd48d17f47eeba8fe0e42c0beed2080ef1ed64e64 authorJosh Arenson <joshua.arenson@canonical.com> dateWed 16 Sep 2015, 10:31 (11 years ago) parent8a9fd9d
2 files changed+2−3
plugins/LightDM/IntegratedLightDM/liblightdm/Greeter.cpp+1−1 plugins/LightDM/IntegratedLightDM/liblightdm/GreeterPrivate.cpp+1−2
plugins/LightDM/IntegratedLightDM/liblightdm/Greeter.cpp+1−1
@@ -175,7 +175,7 @@ void Greeter::sendAuthenticationComplete()
175175{
176176 if (qgetenv("UNITY_TESTING").isEmpty()) {
177177 // simulate PAM's delay
178− QTimer::singleShot(1000, this, SIGNAL(authenticationComplete()));
178+ QTimer::singleShot(1000, this, &Greeter::authenticationComplete);
179179 } else {
180180 Q_EMIT authenticationComplete();
181181 }
plugins/LightDM/IntegratedLightDM/liblightdm/GreeterPrivate.cpp+1−2
@@ -50,8 +50,7 @@ public:
5050 {
5151 qRegisterMetaType<QLightDM::GreeterImpl::ResponseFuture>("QLightDM::GreeterImpl::ResponseFuture");
5252
53− connect(&futureWatcher, SIGNAL(finished()),
54− this, SLOT(finishPam()));
53+connect(&futureWatcher, &QFutureWatcher<int>::finished, this, &GreeterImpl::finishPam);
5554 connect(this, SIGNAL(showMessage(pam_handle *, QString, QLightDM::Greeter::MessageType)),
5655 this, SLOT(handleMessage(pam_handle *, QString, QLightDM::Greeter::MessageType)));
5756 // This next connect is how we pass ResponseFutures between threads