on xenial help sign in
Remove testing code that slipped in
fe50a4aMichael Terry
plugins/LightDM/Greeter.cpp−12
@@ -17,11 +17,8 @@
17 */
17 */
18
18
19#include "Greeter.h"
19#include "Greeter.h"
20−#include <QCoreApplication>
21#include <QLightDM/Greeter>
20#include <QLightDM/Greeter>
22
21
23−#include <QDebug>
24−
25class GreeterPrivate
22class GreeterPrivate
26{
23{
27public:
24public:
@@ -60,18 +57,9 @@ Greeter::Greeter(QObject* parent)
60 connect(d->m_greeter, SIGNAL(authenticationComplete()),
57 connect(d->m_greeter, SIGNAL(authenticationComplete()),
61 this, SLOT(authenticationCompleteFilter()));
58 this, SLOT(authenticationCompleteFilter()));
62
59
63− // Listen for "state resets"
64− connect(QCoreApplication::instance(), SIGNAL(applicationStateChanged(Qt::ApplicationState)),
65− this, SLOT(handleAppStateChange(Qt::ApplicationState)));
66−
67 d->m_greeter->connectSync();
60 d->m_greeter->connectSync();
68}
61}
69
62
70−void Greeter::handleAppStateChange(Qt::ApplicationState state)
71−{
72− qDebug() << "MIKE state change " << state;
73−}
74−
75bool Greeter::isAuthenticated() const
63bool Greeter::isAuthenticated() const
76{
64{
77 Q_D(const Greeter);
65 Q_D(const Greeter);
plugins/LightDM/Greeter.h−1
@@ -70,7 +70,6 @@ private Q_SLOTS:
70 void showMessageFilter(const QString &text, QLightDM::Greeter::MessageType type);
70 void showMessageFilter(const QString &text, QLightDM::Greeter::MessageType type);
71 void showPromptFilter(const QString &text, QLightDM::Greeter::PromptType type);
71 void showPromptFilter(const QString &text, QLightDM::Greeter::PromptType type);
72 void authenticationCompleteFilter();
72 void authenticationCompleteFilter();
73− void handleAppStateChange(Qt::ApplicationState state);
74};
73};
75
74
76#endif
75#endif