summaryrefslogtreecommitdiff
path: root/liblightdm-qt
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2014-09-19 15:16:14 +1200
committerRobert Ancell <robert.ancell@canonical.com>2014-09-19 15:16:14 +1200
commit444f30cd26fdccb176f0c0a2d0461ab46d19369c (patch)
tree58572138d2b9d0dd2bb4c5e8c9de5ec0e42b1d96 /liblightdm-qt
parentaaef3c1e092bc6ece2a45d07ea398c871760275f (diff)
downloadlightdm-git-444f30cd26fdccb176f0c0a2d0461ab46d19369c.tar.gz
Remove trailing whitespace
Diffstat (limited to 'liblightdm-qt')
-rw-r--r--liblightdm-qt/QLightDM/greeter.h6
-rw-r--r--liblightdm-qt/QLightDM/sessionsmodel.h2
-rw-r--r--liblightdm-qt/greeter.cpp8
-rw-r--r--liblightdm-qt/power.cpp2
4 files changed, 9 insertions, 9 deletions
diff --git a/liblightdm-qt/QLightDM/greeter.h b/liblightdm-qt/QLightDM/greeter.h
index 91a2a059..5413db78 100644
--- a/liblightdm-qt/QLightDM/greeter.h
+++ b/liblightdm-qt/QLightDM/greeter.h
@@ -23,7 +23,7 @@ namespace QLightDM
class Q_DECL_EXPORT Greeter : public QObject
{
Q_OBJECT
-
+
Q_PROPERTY(bool authenticated READ isAuthenticated ) //NOTFIY authenticationComplete
Q_PROPERTY(QString authenticationUser READ authenticationUser )
Q_PROPERTY(QString defaultSession READ defaultSessionHint CONSTANT)
@@ -33,7 +33,7 @@ class Q_DECL_EXPORT Greeter : public QObject
Q_PROPERTY(QString hostname READ hostname CONSTANT)
Q_PROPERTY(bool hasGuestAccount READ hasGuestAccountHint CONSTANT)
Q_PROPERTY(bool locked READ lockHint CONSTANT)
-
+
Q_PROPERTY(QString hostname READ hostname CONSTANT)
Q_ENUMS(PromptType MessageType)
@@ -52,7 +52,7 @@ public:
explicit Greeter(QObject* parent=0);
virtual ~Greeter();
- QString getHint(const QString &name) const;
+ QString getHint(const QString &name) const;
QString defaultSessionHint() const;
bool hideUsersHint() const;
bool showManualLoginHint() const;
diff --git a/liblightdm-qt/QLightDM/sessionsmodel.h b/liblightdm-qt/QLightDM/sessionsmodel.h
index dd200990..45eae846 100644
--- a/liblightdm-qt/QLightDM/sessionsmodel.h
+++ b/liblightdm-qt/QLightDM/sessionsmodel.h
@@ -45,7 +45,7 @@ namespace QLightDM {
protected:
SessionsModelPrivate *d_ptr;
-
+
private:
Q_DECLARE_PRIVATE(SessionsModel)
};
diff --git a/liblightdm-qt/greeter.cpp b/liblightdm-qt/greeter.cpp
index 5a52618e..3ef6996b 100644
--- a/liblightdm-qt/greeter.cpp
+++ b/liblightdm-qt/greeter.cpp
@@ -28,14 +28,14 @@ public:
LightDMGreeter *ldmGreeter;
protected:
Greeter* q_ptr;
-
+
static void cb_showPrompt(LightDMGreeter *greeter, const gchar *text, LightDMPromptType type, gpointer data);
static void cb_showMessage(LightDMGreeter *greeter, const gchar *text, LightDMMessageType type, gpointer data);
static void cb_authenticationComplete(LightDMGreeter *greeter, gpointer data);
static void cb_autoLoginExpired(LightDMGreeter *greeter, gpointer data);
static void cb_idle(LightDMGreeter *greeter, gpointer data);
static void cb_reset(LightDMGreeter *greeter, gpointer data);
-
+
private:
Q_DECLARE_PUBLIC(Greeter)
};
@@ -59,10 +59,10 @@ GreeterPrivate::GreeterPrivate(Greeter *parent) :
void GreeterPrivate::cb_showPrompt(LightDMGreeter *greeter, const gchar *text, LightDMPromptType type, gpointer data)
{
Q_UNUSED(greeter);
-
+
GreeterPrivate *that = static_cast<GreeterPrivate*>(data);
QString message = QString::fromUtf8(text);
-
+
Q_EMIT that->q_func()->showPrompt(message, type == LIGHTDM_PROMPT_TYPE_QUESTION ?
Greeter::PromptTypeQuestion : Greeter::PromptTypeSecret);
}
diff --git a/liblightdm-qt/power.cpp b/liblightdm-qt/power.cpp
index eb0c82cd..a8cb4fae 100644
--- a/liblightdm-qt/power.cpp
+++ b/liblightdm-qt/power.cpp
@@ -152,7 +152,7 @@ bool PowerInterface::canRestart()
}
}
qWarning() << d->login1Interface->lastError();
-
+
QDBusReply<bool> reply = d->consoleKitInterface->call("CanRestart");
if (reply.isValid()) {
return reply.value();