Use override

parent 442e09bb
......@@ -41,7 +41,7 @@ class BackgroundWindow : public QRasterWindow
Q_OBJECT
public:
explicit BackgroundWindow(AbstractLocker *lock);
virtual ~BackgroundWindow();
~BackgroundWindow() override;
void emergencyShow();
......@@ -58,7 +58,7 @@ class AbstractLocker : public QObject
Q_OBJECT
public:
AbstractLocker(QObject *parent);
virtual ~AbstractLocker();
~AbstractLocker() override;
virtual void showLockWindow() = 0;
virtual void hideLockWindow() = 0;
......
......@@ -31,7 +31,7 @@ class FakeLogind : public QObject
Q_CLASSINFO("D-Bus Interface", "org.freedesktop.login1.Manager")
public:
explicit FakeLogind(QObject *parent = nullptr);
virtual ~FakeLogind();
~FakeLogind() override;
FakeLogindSession *session() const {
return m_session;
......@@ -52,7 +52,7 @@ class FakeLogindSession : public QObject
Q_CLASSINFO("D-Bus Interface", "org.freedesktop.login1.Session")
public:
explicit FakeLogindSession(const QString &path, QObject *parent = nullptr);
virtual ~FakeLogindSession();
~FakeLogindSession() override;
const QString &path() {
return m_path;
......
......@@ -37,7 +37,7 @@ class Authenticator : public QObject
Q_PROPERTY(bool graceLocked READ isGraceLocked NOTIFY graceLockedChanged)
public:
explicit Authenticator(AuthenticationMode mode = AuthenticationMode::Direct, QObject *parent = nullptr);
~Authenticator();
~Authenticator() override;
bool isGraceLocked() const;
......@@ -62,7 +62,7 @@ class KCheckPass : public QObject
Q_OBJECT
public:
explicit KCheckPass(AuthenticationMode mode, QObject *parent = nullptr);
~KCheckPass();
~KCheckPass() override;
void start();
......
......@@ -52,7 +52,7 @@ class UnlockApp : public QGuiApplication
Q_OBJECT
public:
explicit UnlockApp(int &argc, char **argv);
virtual ~UnlockApp();
~UnlockApp() override;
void setTesting(bool enable);
void setTheme(const QString &theme);
......
......@@ -46,7 +46,7 @@ class LnFIntegration : public QObject
public:
LnFIntegration(QObject *parent);
virtual ~LnFIntegration();
~LnFIntegration() override;
void init();
......
......@@ -46,7 +46,7 @@ class WallpaperIntegration : public QObject
public:
WallpaperIntegration(QObject *parent);
virtual ~WallpaperIntegration();
~WallpaperIntegration() override;
void init();
......
......@@ -45,7 +45,7 @@ class Interface : public QObject, protected QDBusContext
Q_CLASSINFO("D-Bus Interface", "org.freedesktop.ScreenSaver")
public:
explicit Interface(KSldApp *parent = nullptr);
virtual ~Interface();
~Interface() override;
public Q_SLOTS:
/**
......
......@@ -71,7 +71,7 @@ public:
static KSldApp* self();
KSldApp(QObject * parent = nullptr);
virtual ~KSldApp();
~KSldApp() override;
LockState lockState() const {
return m_lockState;
......
......@@ -32,7 +32,7 @@ class LogindIntegration : public QObject
Q_OBJECT
public:
explicit LogindIntegration(QObject *parent = nullptr);
~LogindIntegration();
~LogindIntegration() override;
bool isConnected() const {
return m_connected;
......
......@@ -28,7 +28,7 @@ class PowerManagement : public QObject
Q_PROPERTY(bool canSuspend READ canSuspend NOTIFY canSuspendChanged)
Q_PROPERTY(bool canHibernate READ canHibernate NOTIFY canHibernateChanged)
public:
virtual ~PowerManagement();
~PowerManagement() override;
bool canSuspend() const;
bool canHibernate() const;
......
......@@ -31,7 +31,7 @@ class PowerManagementInhibition : public QObject
Q_OBJECT
public:
PowerManagementInhibition(QObject *parent = nullptr);
virtual ~PowerManagementInhibition();
~PowerManagementInhibition() override;
bool isInhibited() const {
return m_inhibited;
......
......@@ -40,7 +40,7 @@ class WaylandLocker : public AbstractLocker
public:
WaylandLocker(KWayland::Server::Display *display, QObject *parent);
virtual ~WaylandLocker();
~WaylandLocker() override;
void showLockWindow() override;
void hideLockWindow() override;
......
......@@ -43,7 +43,7 @@ class WaylandServer : public QObject
Q_OBJECT
public:
explicit WaylandServer(QObject *parent = nullptr);
virtual ~WaylandServer();
~WaylandServer() override;
int start();
void stop();
......
......@@ -42,14 +42,14 @@ class X11Locker : public AbstractLocker, public QAbstractNativeEventFilter
Q_OBJECT
public:
X11Locker(QObject *parent = nullptr);
virtual ~X11Locker();
~X11Locker() override;
void showLockWindow() override;
void hideLockWindow() override;
void addAllowedWindow(quint32 window) override;
virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;
bool nativeEventFilter(const QByteArray &eventType, void *message, long *result) override;
private Q_SLOTS:
void updateGeo();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment