Paste P290

Fix -Wsuggest-override patch
ActivePublic

Authored by zzag on Jan 20 2019, 4:48 PM.
From ed4491ecb4770feaac4d65c0d11a2d34dd5e8e51 Mon Sep 17 00:00:00 2001
From: Vlad Zagorodniy <vladzzag@gmail.com>
Date: Sun, 20 Jan 2019 18:46:59 +0200
Subject: [PATCH] Fix -Wsuggest-override warnings
---
abstract_client.h | 4 +-
abstract_output.h | 2 +-
activities.h | 2 +-
autotests/fakeeffectplugin.cpp | 2 +-
autotests/fakeeffectplugin_version.cpp | 4 +-
autotests/integration/debug_console_test.cpp | 2 +-
autotests/integration/helper/copy.cpp | 2 +-
autotests/integration/helper/paste.cpp | 2 +-
autotests/integration/internal_window.cpp | 2 +-
autotests/integration/kwin_wayland_test.h | 2 +-
autotests/integration/lockscreen.cpp | 2 +-
.../modifier_only_shortcut_test.cpp | 2 +-
.../integration/no_global_shortcuts_test.cpp | 2 +-
autotests/integration/plasmawindow_test.cpp | 2 +-
autotests/integration/pointer_input.cpp | 2 +-
autotests/mock_abstract_client.h | 2 +-
autotests/mock_client.h | 2 +-
autotests/mock_effectshandler.h | 4 +-
autotests/mock_screens.h | 2 +-
autotests/mock_workspace.h | 2 +-
autotests/tabbox/mock_tabboxclient.h | 22 ++---
autotests/tabbox/mock_tabboxhandler.h | 42 ++++-----
autotests/test_virtualkeyboard_dbus.cpp | 2 +-
autotests/test_x11_timestamp_update.cpp | 2 +-
client.h | 24 ++---
client_machine.h | 4 +-
colorcorrection/colorcorrectdbusinterface.h | 2 +-
composite.h | 4 +-
cursor.h | 10 +--
dbusinterface.h | 6 +-
debug_console.h | 12 +--
decorations/decoratedclient.h | 4 +-
decorations/decorationbridge.h | 2 +-
decorations/decorationrenderer.h | 2 +-
decorations/settings.h | 2 +-
deleted.h | 26 +++---
effectloader.h | 2 +-
effects.h | 10 +--
effects/blur/blur_config.h | 4 +-
effects/colorpicker/colorpicker.h | 2 +-
effects/coverswitch/coverswitch.h | 2 +-
effects/coverswitch/coverswitch_config.h | 2 +-
effects/cube/cube.h | 24 ++---
effects/cube/cube_config.h | 2 +-
effects/cube/cube_inside.h | 2 +-
effects/cubeslide/cubeslide.h | 16 ++--
effects/cubeslide/cubeslide_config.h | 2 +-
effects/desktopgrid/desktopgrid.h | 22 ++---
effects/desktopgrid/desktopgrid_config.h | 8 +-
effects/fallapart/fallapart.h | 12 +--
effects/flipswitch/flipswitch.h | 22 ++---
effects/flipswitch/flipswitch_config.h | 4 +-
effects/highlightwindow/highlightwindow.h | 8 +-
effects/invert/invert.h | 10 +--
effects/invert/invert_config.h | 8 +-
effects/kscreen/kscreen.h | 14 +--
effects/lookingglass/lookingglass.h | 8 +-
effects/lookingglass/lookingglass_config.h | 6 +-
effects/magiclamp/magiclamp.h | 12 +--
effects/magiclamp/magiclamp_config.h | 2 +-
effects/magnifier/magnifier.h | 12 +--
effects/magnifier/magnifier_config.h | 6 +-
effects/mouseclick/mouseclick.h | 12 +--
effects/mouseclick/mouseclick_config.h | 4 +-
effects/mousemark/mousemark.h | 8 +-
effects/mousemark/mousemark_config.h | 4 +-
effects/presentwindows/presentwindows.h | 24 ++---
.../presentwindows/presentwindows_config.h | 6 +-
effects/resize/resize.h | 14 +--
effects/resize/resize_config.h | 2 +-
effects/screenedge/screenedgeeffect.h | 8 +-
effects/showfps/showfps.h | 10 +--
effects/showfps/showfps_config.h | 4 +-
effects/slide/slide_config.h | 4 +-
effects/slideback/slideback.h | 12 +--
effects/startupfeedback/startupfeedback.h | 12 +--
effects/thumbnailaside/thumbnailaside.h | 8 +-
.../thumbnailaside/thumbnailaside_config.h | 4 +-
effects/touchpoints/touchpoints.h | 2 +-
effects/trackmouse/trackmouse.h | 12 +--
effects/trackmouse/trackmouse_config.h | 8 +-
effects/windowgeometry/windowgeometry.h | 10 +--
.../windowgeometry/windowgeometry_config.h | 6 +-
effects/wobblywindows/wobblywindows.h | 16 ++--
effects/wobblywindows/wobblywindows_config.h | 4 +-
effects/zoom/zoom.h | 12 +--
effects/zoom/zoom_config.h | 4 +-
focuschain.h | 2 +-
geometrytip.h | 2 +-
globalshortcuts.h | 4 +-
helpers/xclipboardsync/waylandclipboard.h | 2 +-
idle_inhibition.h | 2 +-
input.h | 4 +-
kcmkwin/kwincompositing/compositing.h | 4 +-
kcmkwin/kwincompositing/model.h | 2 +-
.../declarative-plugin/buttonsmodel.h | 2 +-
.../declarative-plugin/previewbridge.h | 4 +-
.../declarative-plugin/previewbutton.h | 2 +-
.../declarative-plugin/previewclient.h | 4 +-
.../declarative-plugin/previewitem.h | 4 +-
.../declarative-plugin/previewsettings.h | 8 +-
kcmkwin/kwindecoration/decorationmodel.h | 2 +-
kcmkwin/kwindecoration/kcm.h | 2 +-
kcmkwin/kwinoptions/main.h | 18 ++--
kcmkwin/kwinoptions/mouse.h | 22 ++---
kcmkwin/kwinoptions/windows.h | 30 +++----
kcmkwin/kwinrules/kcm.h | 8 +-
kcmkwin/kwinrules/ruleslist.h | 2 +-
kcmkwin/kwinrules/ruleswidget.h | 4 +-
kcmkwin/kwinscreenedges/main.h | 10 +--
kcmkwin/kwinscreenedges/monitor.h | 14 +--
kcmkwin/kwinscreenedges/screenpreviewwidget.h | 8 +-
kcmkwin/kwinscreenedges/touch.h | 10 +--
kcmkwin/kwinscripts/module.h | 8 +-
kcmkwin/kwintabbox/layoutpreview.h | 12 +--
kcmkwin/kwintabbox/main.h | 8 +-
kcmkwin/kwintabbox/thumbnailitem.h | 16 ++--
keyboard_input.h | 2 +-
keyboard_layout_switching.h | 2 +-
lanczosfilter.h | 4 +-
libinput/connection.cpp | 2 +-
libinput/connection.h | 2 +-
libinput/device.h | 2 +-
libinput/events.h | 12 +--
libkwineffects/kwinanimationeffect.h | 14 +--
libkwineffects/kwineffects.h | 12 +--
logind.h | 2 +-
main.h | 4 +-
main_wayland.h | 2 +-
main_x11.h | 8 +-
netinfo.h | 24 ++---
options.h | 2 +-
orientation_sensor.h | 2 +-
outline.h | 8 +-
outputscreens.h | 6 +-
platform.h | 2 +-
.../scenes/opengl/abstract_egl_backend.h | 4 +-
platformsupport/scenes/opengl/texture.h | 4 +-
plugins/idletime/poller.h | 2 +-
plugins/kdecorations/aurorae/src/aurorae.h | 2 +-
.../kdecorations/aurorae/src/colorhelper.h | 2 +-
.../aurorae/src/decorationoptions.h | 4 +-
.../aurorae/src/decorationplugin.h | 2 +-
.../aurorae/src/lib/auroraetheme.h | 2 +-
.../themes/plastik/code/plastikbutton.h | 2 +-
.../themes/plastik/code/plastikplugin.h | 4 +-
plugins/kglobalaccel/kglobalaccel_plugin.h | 2 +-
plugins/platforms/drm/drm_backend.h | 2 +-
plugins/platforms/drm/drm_buffer.h | 2 +-
plugins/platforms/drm/drm_buffer_gbm.h | 2 +-
plugins/platforms/drm/drm_inputeventfilter.h | 2 +-
plugins/platforms/drm/drm_object_connector.h | 6 +-
plugins/platforms/drm/drm_object_crtc.h | 6 +-
plugins/platforms/drm/drm_object_plane.h | 8 +-
plugins/platforms/drm/egl_gbm_backend.h | 4 +-
plugins/platforms/drm/remoteaccess_manager.h | 2 +-
.../drm/scene_qpainter_drm_backend.h | 2 +-
plugins/platforms/drm/screens_drm.h | 2 +-
plugins/platforms/fbdev/fb_backend.h | 2 +-
.../fbdev/scene_qpainter_fb_backend.h | 2 +-
plugins/platforms/virtual/egl_gbm_backend.h | 4 +-
.../virtual/scene_qpainter_virtual_backend.h | 2 +-
plugins/platforms/virtual/screens_virtual.h | 2 +-
plugins/platforms/virtual/virtual_backend.h | 2 +-
plugins/platforms/virtual/virtual_output.h | 2 +-
.../platforms/wayland/egl_wayland_backend.h | 16 ++--
.../wayland/scene_qpainter_wayland_backend.h | 14 +--
plugins/platforms/wayland/wayland_backend.h | 4 +-
plugins/platforms/x11/common/eglonxbackend.h | 20 ++---
plugins/platforms/x11/standalone/edge.h | 14 +--
.../platforms/x11/standalone/effects_x11.h | 2 +-
plugins/platforms/x11/standalone/glxbackend.h | 28 +++---
.../x11/standalone/non_composited_outline.h | 6 +-
.../x11/standalone/overlaywindow_x11.h | 2 +-
.../platforms/x11/standalone/screens_xrandr.h | 2 +-
.../platforms/x11/standalone/windowselector.h | 2 +-
.../x11/standalone/x11_decoration_renderer.h | 2 +-
.../platforms/x11/standalone/x11_platform.h | 2 +-
plugins/platforms/x11/standalone/x11cursor.h | 16 ++--
.../x11/standalone/xinputintegration.cpp | 4 +-
.../x11/standalone/xinputintegration.h | 2 +-
.../platforms/x11/windowed/egl_x11_backend.h | 10 +--
.../x11/windowed/scene_qpainter_x11_backend.h | 2 +-
.../x11/windowed/x11windowed_backend.h | 2 +-
plugins/qpa/abstractplatformcontext.h | 2 +-
plugins/qpa/backingstore.h | 2 +-
plugins/qpa/integration.h | 2 +-
plugins/qpa/platformcursor.h | 2 +-
plugins/qpa/screen.h | 2 +-
plugins/qpa/window.h | 2 +-
plugins/scenes/opengl/scene_opengl.h | 88 +++++++++----------
plugins/scenes/qpainter/scene_qpainter.h | 56 ++++++------
plugins/scenes/xrender/scene_xrender.h | 76 ++++++++--------
pointer_input.h | 6 +-
rules.h | 2 +-
scene.h | 4 +-
screenedge.h | 4 +-
screenlockerwatcher.h | 2 +-
screens.h | 4 +-
scripting/dbuscall.h | 2 +-
scripting/genericscriptedconfig.h | 20 ++---
scripting/screenedgeitem.h | 2 +-
scripting/scriptedeffect.h | 8 +-
scripting/scripting.h | 16 ++--
scripting/scripting_model.h | 62 ++++++-------
shadow.h | 2 +-
shell_client.h | 2 +-
sm.h | 2 +-
tabbox/clientmodel.h | 12 +--
tabbox/desktopchain.h | 2 +-
tabbox/desktopmodel.h | 12 +--
tabbox/switcheritem.h | 2 +-
tabbox/tabbox.h | 70 +++++++--------
tabbox/tabboxhandler.h | 2 +-
tabletmodemanager.h | 2 +-
tests/cursorhotspottest.cpp | 2 +-
tests/pointergesturestest.cpp | 2 +-
tests/screenedgeshowtest.cpp | 6 +-
tests/waylandclienttest.h | 2 +-
thumbnailitem.h | 14 +--
toplevel.h | 2 +-
touch_input.h | 4 +-
unmanaged.h | 20 ++---
useractions.h | 6 +-
utils.h | 2 +-
virtual_terminal.h | 2 +-
virtualdesktops.h | 4 +-
virtualkeyboard.h | 2 +-
virtualkeyboard_dbus.h | 2 +-
wayland_cursor_theme.h | 2 +-
wayland_server.h | 2 +-
workspace.h | 4 +-
xkb.h | 2 +-
233 files changed, 881 insertions(+), 881 deletions(-)
diff --git a/abstract_client.h b/abstract_client.h
index 390010226..d192a9390 100644
--- a/abstract_client.h
+++ b/abstract_client.h
@@ -292,7 +292,7 @@ class KWIN_EXPORT AbstractClient : public Toplevel
Q_PROPERTY(QString colorScheme READ colorScheme NOTIFY colorSchemeChanged)
public:
- virtual ~AbstractClient();
+ ~AbstractClient() override;
QWeakPointer<TabBox::TabBoxClientImpl> tabBoxClient() const {
return m_tabBoxClient.toWeakRef();
@@ -440,7 +440,7 @@ public:
int desktop() const override {
return m_desktops.isEmpty() ? (int)NET::OnAllDesktops : m_desktops.last()->x11DesktopNumber();
}
- virtual QVector<VirtualDesktop *> desktops() const {
+ QVector<VirtualDesktop *> desktops() const override {
return m_desktops;
}
QVector<uint> x11DesktopIds() const;
diff --git a/abstract_output.h b/abstract_output.h
index cd98b4973..e68cf3f5f 100644
--- a/abstract_output.h
+++ b/abstract_output.h
@@ -60,7 +60,7 @@ class KWIN_EXPORT AbstractOutput : public QObject
Q_OBJECT
public:
explicit AbstractOutput(QObject *parent = nullptr);
- virtual ~AbstractOutput();
+ ~AbstractOutput() override;
QString name() const;
bool isEnabled() const {
diff --git a/activities.h b/activities.h
index c3496b2f8..f3fb87264 100644
--- a/activities.h
+++ b/activities.h
@@ -40,7 +40,7 @@ class KWIN_EXPORT Activities : public QObject
Q_OBJECT
public:
- ~Activities();
+ ~Activities() override;
bool stop(const QString &id);
bool start(const QString &id);
diff --git a/autotests/fakeeffectplugin.cpp b/autotests/fakeeffectplugin.cpp
index 73cc7e4bc..ddb5d41dd 100644
--- a/autotests/fakeeffectplugin.cpp
+++ b/autotests/fakeeffectplugin.cpp
@@ -27,7 +27,7 @@ class FakeEffect : public Effect
Q_OBJECT
public:
FakeEffect() {}
- virtual ~FakeEffect() {}
+ ~FakeEffect() override {}
static bool supported() {
return effects->isOpenGLCompositing();
diff --git a/autotests/fakeeffectplugin_version.cpp b/autotests/fakeeffectplugin_version.cpp
index 07066d0d0..e897ac067 100644
--- a/autotests/fakeeffectplugin_version.cpp
+++ b/autotests/fakeeffectplugin_version.cpp
@@ -27,7 +27,7 @@ class FakeVersionEffect : public Effect
Q_OBJECT
public:
FakeVersionEffect() {}
- virtual ~FakeVersionEffect() {}
+ ~FakeVersionEffect() override {}
};
} // namespace
@@ -39,7 +39,7 @@ class FakeEffectPluginFactory : public KWin::EffectPluginFactory
Q_INTERFACES(KPluginFactory)
public:
FakeEffectPluginFactory() {}
- ~FakeEffectPluginFactory() {}
+ ~FakeEffectPluginFactory() override {}
KWin::Effect *createEffect() const override {
return new KWin::FakeVersionEffect();
}
diff --git a/autotests/integration/debug_console_test.cpp b/autotests/integration/debug_console_test.cpp
index 399b6d0fb..9b1f713cc 100644
--- a/autotests/integration/debug_console_test.cpp
+++ b/autotests/integration/debug_console_test.cpp
@@ -413,7 +413,7 @@ class HelperWindow : public QRasterWindow
Q_OBJECT
public:
HelperWindow() : QRasterWindow(nullptr) {}
- ~HelperWindow() = default;
+ ~HelperWindow() override = default;
Q_SIGNALS:
void entered();
diff --git a/autotests/integration/helper/copy.cpp b/autotests/integration/helper/copy.cpp
index c27ec3c88..855a96338 100644
--- a/autotests/integration/helper/copy.cpp
+++ b/autotests/integration/helper/copy.cpp
@@ -28,7 +28,7 @@ class Window : public QRasterWindow
Q_OBJECT
public:
explicit Window();
- virtual ~Window();
+ ~Window() override;
protected:
void paintEvent(QPaintEvent *event) override;
diff --git a/autotests/integration/helper/paste.cpp b/autotests/integration/helper/paste.cpp
index 0f1428c1a..8eea910df 100644
--- a/autotests/integration/helper/paste.cpp
+++ b/autotests/integration/helper/paste.cpp
@@ -28,7 +28,7 @@ class Window : public QRasterWindow
Q_OBJECT
public:
explicit Window();
- virtual ~Window();
+ ~Window() override;
protected:
void paintEvent(QPaintEvent *event) override;
diff --git a/autotests/integration/internal_window.cpp b/autotests/integration/internal_window.cpp
index bacdc2030..9747336ba 100644
--- a/autotests/integration/internal_window.cpp
+++ b/autotests/integration/internal_window.cpp
@@ -74,7 +74,7 @@ class HelperWindow : public QRasterWindow
Q_OBJECT
public:
HelperWindow();
- ~HelperWindow();
+ ~HelperWindow() override;
QPoint latestGlobalMousePos() const {
return m_latestGlobalMousePos;
diff --git a/autotests/integration/kwin_wayland_test.h b/autotests/integration/kwin_wayland_test.h
index 6d62e0a7c..a5091905f 100644
--- a/autotests/integration/kwin_wayland_test.h
+++ b/autotests/integration/kwin_wayland_test.h
@@ -61,7 +61,7 @@ class WaylandTestApplication : public Application
Q_OBJECT
public:
WaylandTestApplication(OperationMode mode, int &argc, char **argv);
- virtual ~WaylandTestApplication();
+ ~WaylandTestApplication() override;
protected:
void performStartup() override;
diff --git a/autotests/integration/lockscreen.cpp b/autotests/integration/lockscreen.cpp
index 04a87d9ad..d9e07e55e 100644
--- a/autotests/integration/lockscreen.cpp
+++ b/autotests/integration/lockscreen.cpp
@@ -93,7 +93,7 @@ class HelperEffect : public Effect
Q_OBJECT
public:
HelperEffect() {}
- ~HelperEffect() {}
+ ~HelperEffect() override {}
void windowInputMouseEvent(QEvent*) override {
emit inputEvent();
diff --git a/autotests/integration/modifier_only_shortcut_test.cpp b/autotests/integration/modifier_only_shortcut_test.cpp
index 00dc2d7d1..e88cbb0a5 100644
--- a/autotests/integration/modifier_only_shortcut_test.cpp
+++ b/autotests/integration/modifier_only_shortcut_test.cpp
@@ -61,7 +61,7 @@ class Target : public QObject
public:
Target();
- virtual ~Target();
+ ~Target() override;
public Q_SLOTS:
Q_SCRIPTABLE void shortcut();
diff --git a/autotests/integration/no_global_shortcuts_test.cpp b/autotests/integration/no_global_shortcuts_test.cpp
index 10d0a4f6e..bcf588660 100644
--- a/autotests/integration/no_global_shortcuts_test.cpp
+++ b/autotests/integration/no_global_shortcuts_test.cpp
@@ -70,7 +70,7 @@ class Target : public QObject
public:
Target();
- virtual ~Target();
+ ~Target() override;
public Q_SLOTS:
Q_SCRIPTABLE void shortcut();
diff --git a/autotests/integration/plasmawindow_test.cpp b/autotests/integration/plasmawindow_test.cpp
index 74e529c2e..60129d825 100644
--- a/autotests/integration/plasmawindow_test.cpp
+++ b/autotests/integration/plasmawindow_test.cpp
@@ -207,7 +207,7 @@ class HelperWindow : public QRasterWindow
Q_OBJECT
public:
HelperWindow();
- ~HelperWindow();
+ ~HelperWindow() override;
protected:
void paintEvent(QPaintEvent *event) override;
diff --git a/autotests/integration/pointer_input.cpp b/autotests/integration/pointer_input.cpp
index 1e7a45ac4..6023afdb7 100644
--- a/autotests/integration/pointer_input.cpp
+++ b/autotests/integration/pointer_input.cpp
@@ -1079,7 +1079,7 @@ class HelperEffect : public Effect
Q_OBJECT
public:
HelperEffect() {}
- ~HelperEffect() {}
+ ~HelperEffect() override {}
};
void PointerInputTest::testEffectOverrideCursorImage()
diff --git a/autotests/mock_abstract_client.h b/autotests/mock_abstract_client.h
index 8d7e825d7..54c13e44d 100644
--- a/autotests/mock_abstract_client.h
+++ b/autotests/mock_abstract_client.h
@@ -31,7 +31,7 @@ class AbstractClient : public QObject
Q_OBJECT
public:
explicit AbstractClient(QObject *parent);
- virtual ~AbstractClient();
+ ~AbstractClient() override;
int screen() const;
bool isOnScreen(int screen) const;
diff --git a/autotests/mock_client.h b/autotests/mock_client.h
index 17db3c8c7..7900f80dc 100644
--- a/autotests/mock_client.h
+++ b/autotests/mock_client.h
@@ -33,7 +33,7 @@ class Client : public AbstractClient
Q_OBJECT
public:
explicit Client(QObject *parent);
- virtual ~Client();
+ ~Client() override;
void showOnScreenEdge() override;
};
diff --git a/autotests/mock_effectshandler.h b/autotests/mock_effectshandler.h
index bfed41840..3a58a3382 100644
--- a/autotests/mock_effectshandler.h
+++ b/autotests/mock_effectshandler.h
@@ -29,7 +29,7 @@ class MockEffectsHandler : public KWin::EffectsHandler
public:
explicit MockEffectsHandler(KWin::CompositingType type);
void activateWindow(KWin::EffectWindow *) override {}
- KWin::Effect *activeFullScreenEffect() const {
+ KWin::Effect *activeFullScreenEffect() const override {
return nullptr;
}
bool hasActiveFullScreenEffect() const override {
@@ -263,7 +263,7 @@ public:
}
void hideOnScreenMessage(OnScreenMessageHideFlags flags = OnScreenMessageHideFlags()) override { Q_UNUSED(flags)}
- void windowToDesktops(KWin::EffectWindow *w, const QVector<uint> &desktops) {
+ void windowToDesktops(KWin::EffectWindow *w, const QVector<uint> &desktops) override {
Q_UNUSED(w)
Q_UNUSED(desktops)
}
diff --git a/autotests/mock_screens.h b/autotests/mock_screens.h
index 5c6b8c2d1..1150e034f 100644
--- a/autotests/mock_screens.h
+++ b/autotests/mock_screens.h
@@ -30,7 +30,7 @@ class MockScreens : public Screens
Q_OBJECT
public:
explicit MockScreens(QObject *parent = nullptr);
- virtual ~MockScreens();
+ ~MockScreens() override;
QRect geometry(int screen) const override;
int number(const QPoint &pos) const override;
QString name(int screen) const override;
diff --git a/autotests/mock_workspace.h b/autotests/mock_workspace.h
index c04ef3763..489f9efce 100644
--- a/autotests/mock_workspace.h
+++ b/autotests/mock_workspace.h
@@ -38,7 +38,7 @@ class MockWorkspace : public QObject
Q_OBJECT
public:
explicit MockWorkspace(QObject *parent = nullptr);
- virtual ~MockWorkspace();
+ ~MockWorkspace() override;
AbstractClient *activeClient() const;
AbstractClient *getMovingClient() const;
void setShowingDesktop(bool showing);
diff --git a/autotests/tabbox/mock_tabboxclient.h b/autotests/tabbox/mock_tabboxclient.h
index 32b42d720..25817ee8f 100644
--- a/autotests/tabbox/mock_tabboxclient.h
+++ b/autotests/tabbox/mock_tabboxclient.h
@@ -30,38 +30,38 @@ class MockTabBoxClient : public TabBox::TabBoxClient
{
public:
explicit MockTabBoxClient(QString caption, WId id);
- virtual bool isMinimized() const {
+ bool isMinimized() const override {
return false;
}
- virtual QString caption() const {
+ QString caption() const override {
return m_caption;
}
- virtual void close();
- virtual int height() const {
+ void close() override;
+ int height() const override {
return 100;
}
virtual QPixmap icon(const QSize &size = QSize(32, 32)) const {
return QPixmap(size);
}
- virtual bool isCloseable() const {
+ bool isCloseable() const override {
return true;
}
- virtual bool isFirstInTabBox() const {
+ bool isFirstInTabBox() const override {
return false;
}
- virtual int width() const {
+ int width() const override {
return 100;
}
- virtual WId window() const {
+ WId window() const override {
return m_wId;
}
- virtual int x() const {
+ int x() const override {
return 0;
}
- virtual int y() const {
+ int y() const override {
return 0;
}
- virtual QIcon icon() const {
+ QIcon icon() const override {
return QIcon();
}
diff --git a/autotests/tabbox/mock_tabboxhandler.h b/autotests/tabbox/mock_tabboxhandler.h
index 4820a3d6a..841f189d4 100644
--- a/autotests/tabbox/mock_tabboxhandler.h
+++ b/autotests/tabbox/mock_tabboxhandler.h
@@ -28,70 +28,70 @@ class MockTabBoxHandler : public TabBox::TabBoxHandler
Q_OBJECT
public:
MockTabBoxHandler(QObject *parent = nullptr);
- virtual ~MockTabBoxHandler();
- virtual void activateAndClose() {
+ ~MockTabBoxHandler() override;
+ void activateAndClose() override {
}
- virtual QWeakPointer< TabBox::TabBoxClient > activeClient() const;
+ QWeakPointer< TabBox::TabBoxClient > activeClient() const override;
void setActiveClient(const QWeakPointer<TabBox::TabBoxClient> &client);
- virtual int activeScreen() const {
+ int activeScreen() const override {
return 0;
}
- virtual QWeakPointer< TabBox::TabBoxClient > clientToAddToList(TabBox::TabBoxClient *client, int desktop) const;
- virtual int currentDesktop() const {
+ QWeakPointer< TabBox::TabBoxClient > clientToAddToList(TabBox::TabBoxClient *client, int desktop) const override;
+ int currentDesktop() const override {
return 1;
}
- virtual QWeakPointer< TabBox::TabBoxClient > desktopClient() const {
+ QWeakPointer< TabBox::TabBoxClient > desktopClient() const override {
return QWeakPointer<TabBox::TabBoxClient>();
}
- virtual QString desktopName(int desktop) const {
+ QString desktopName(int desktop) const override {
Q_UNUSED(desktop)
return "desktop 1";
}
- virtual QString desktopName(TabBox::TabBoxClient *client) const {
+ QString desktopName(TabBox::TabBoxClient *client) const override {
Q_UNUSED(client)
return "desktop";
}
- virtual void elevateClient(TabBox::TabBoxClient *c, QWindow *tabbox, bool elevate) const {
+ void elevateClient(TabBox::TabBoxClient *c, QWindow *tabbox, bool elevate) const override {
Q_UNUSED(c)
Q_UNUSED(tabbox)
Q_UNUSED(elevate)
}
- virtual void shadeClient(TabBox::TabBoxClient *c, bool b) const {
+ void shadeClient(TabBox::TabBoxClient *c, bool b) const override {
Q_UNUSED(c)
Q_UNUSED(b)
}
virtual void hideOutline() {
}
- virtual QWeakPointer< TabBox::TabBoxClient > nextClientFocusChain(TabBox::TabBoxClient *client) const;
- virtual QWeakPointer<TabBox::TabBoxClient> firstClientFocusChain() const;
- virtual bool isInFocusChain (TabBox::TabBoxClient* client) const;
- virtual int nextDesktopFocusChain(int desktop) const {
+ QWeakPointer< TabBox::TabBoxClient > nextClientFocusChain(TabBox::TabBoxClient *client) const override;
+ QWeakPointer<TabBox::TabBoxClient> firstClientFocusChain() const override;
+ bool isInFocusChain (TabBox::TabBoxClient* client) const override;
+ int nextDesktopFocusChain(int desktop) const override {
Q_UNUSED(desktop)
return 1;
}
- virtual int numberOfDesktops() const {
+ int numberOfDesktops() const override {
return 1;
}
virtual QVector< xcb_window_t > outlineWindowIds() const {
return QVector<xcb_window_t>();
}
- virtual bool isKWinCompositing() const {
+ bool isKWinCompositing() const override {
return false;
}
- virtual void raiseClient(TabBox::TabBoxClient *c) const {
+ void raiseClient(TabBox::TabBoxClient *c) const override {
Q_UNUSED(c)
}
- virtual void restack(TabBox::TabBoxClient *c, TabBox::TabBoxClient *under) {
+ void restack(TabBox::TabBoxClient *c, TabBox::TabBoxClient *under) override {
Q_UNUSED(c)
Q_UNUSED(under)
}
virtual void showOutline(const QRect &outline) {
Q_UNUSED(outline)
}
- virtual TabBox::TabBoxClientList stackingOrder() const {
+ TabBox::TabBoxClientList stackingOrder() const override {
return TabBox::TabBoxClientList();
}
- virtual void grabbedKeyEvent(QKeyEvent *event) const;
+ void grabbedKeyEvent(QKeyEvent *event) const override;
void highlightWindows(TabBox::TabBoxClient *window = nullptr, QWindow *controller = nullptr) override {
Q_UNUSED(window)
diff --git a/autotests/test_virtualkeyboard_dbus.cpp b/autotests/test_virtualkeyboard_dbus.cpp
index ba83c8726..57123562f 100644
--- a/autotests/test_virtualkeyboard_dbus.cpp
+++ b/autotests/test_virtualkeyboard_dbus.cpp
@@ -52,7 +52,7 @@ public:
this,
SLOT(slotEnabledChanged()));
}
- ~DbusPropertyHelper() = default;
+ ~DbusPropertyHelper() override = default;
Q_SIGNALS:
void enabledChanged();
diff --git a/autotests/test_x11_timestamp_update.cpp b/autotests/test_x11_timestamp_update.cpp
index c6169e1ab..5e7f40cfa 100644
--- a/autotests/test_x11_timestamp_update.cpp
+++ b/autotests/test_x11_timestamp_update.cpp
@@ -35,7 +35,7 @@ class X11TestApplication : public Application
Q_OBJECT
public:
X11TestApplication(int &argc, char **argv);
- virtual ~X11TestApplication();
+ ~X11TestApplication() override;
protected:
void performStartup() override;
diff --git a/client.h b/client.h
index 0a88bb63a..0382426cb 100644
--- a/client.h
+++ b/client.h
@@ -90,7 +90,7 @@ public:
explicit Client();
xcb_window_t wrapperId() const;
xcb_window_t inputId() const { return m_decoInputExtent; }
- virtual xcb_window_t frameId() const override;
+ xcb_window_t frameId() const override;
bool isTransient() const override;
bool groupTransient() const override;
@@ -111,17 +111,17 @@ public:
QSize minSize() const override;
QSize maxSize() const override;
QSize basicUnit() const;
- virtual QSize clientSize() const;
+ QSize clientSize() const override;
QPoint inputPos() const { return input_offset; } // Inside of geometry()
bool windowEvent(xcb_generic_event_t *e);
- NET::WindowType windowType(bool direct = false, int supported_types = 0) const;
+ NET::WindowType windowType(bool direct = false, int supported_types = 0) const override;
bool manage(xcb_window_t w, bool isMapped);
void releaseWindow(bool on_shutdown = false);
void destroyClient();
- virtual QStringList activities() const;
+ QStringList activities() const override;
void setOnActivity(const QString &activity, bool enable);
void setOnAllActivities(bool set) override;
void setOnActivities(QStringList newActivitiesList) override;
@@ -201,7 +201,7 @@ public:
void hideClient(bool hide) override;
bool hiddenPreview() const; ///< Window is mapped in order to get a window pixmap
- virtual bool setupCompositing();
+ bool setupCompositing() override;
void finishCompositing(ReleaseReason releaseReason = ReleaseReason::Release) override;
void setBlockingCompositing(bool block);
inline bool isBlockingCompositing() { return blocks_compositing; }
@@ -261,9 +261,9 @@ public:
bool hasOffscreenXineramaStrut() const;
// Decorations <-> Effects
- QRect decorationRect() const;
+ QRect decorationRect() const override;
- QRect transparentRect() const;
+ QRect transparentRect() const override;
bool isClientSideDecorated() const;
bool wantsShadowToBeRendered() const override;
@@ -279,7 +279,7 @@ public:
//sets whether the client should be faked as being on all activities (and be shown during session save)
void setSessionActivityOverride(bool needed);
- virtual bool isClient() const;
+ bool isClient() const override;
template <typename T>
void print(T &stream) const;
@@ -325,20 +325,20 @@ private Q_SLOTS:
private:
// Use Workspace::createClient()
- virtual ~Client(); ///< Use destroyClient() or releaseWindow()
+ ~Client() override; ///< Use destroyClient() or releaseWindow()
// Handlers for X11 events
bool mapRequestEvent(xcb_map_request_event_t *e);
void unmapNotifyEvent(xcb_unmap_notify_event_t *e);
void destroyNotifyEvent(xcb_destroy_notify_event_t *e);
void configureRequestEvent(xcb_configure_request_event_t *e);
- virtual void propertyNotifyEvent(xcb_property_notify_event_t *e) override;
+ void propertyNotifyEvent(xcb_property_notify_event_t *e) override;
void clientMessageEvent(xcb_client_message_event_t *e) override;
void enterNotifyEvent(xcb_enter_notify_event_t *e);
void leaveNotifyEvent(xcb_leave_notify_event_t *e);
void focusInEvent(xcb_focus_in_event_t *e);
void focusOutEvent(xcb_focus_out_event_t *e);
- virtual void damageNotifyEvent();
+ void damageNotifyEvent() override;
bool buttonPressEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root, xcb_timestamp_t time = XCB_CURRENT_TIME);
bool buttonReleaseEvent(xcb_window_t w, int button, int state, int x, int y, int x_root, int y_root);
@@ -347,7 +347,7 @@ private:
Client* findAutogroupCandidate() const;
protected:
- virtual void debug(QDebug& stream) const;
+ void debug(QDebug& stream) const override;
void addDamage(const QRegion &damage) override;
bool belongsToSameApplication(const AbstractClient *other, SameApplicationChecks checks) const override;
void doSetActive() override;
diff --git a/client_machine.h b/client_machine.h
index e56ffc70c..a3fc1f5a3 100644
--- a/client_machine.h
+++ b/client_machine.h
@@ -35,7 +35,7 @@ class GetAddrInfo : public QObject
Q_OBJECT
public:
explicit GetAddrInfo(const QByteArray &hostName, QObject *parent = NULL);
- virtual ~GetAddrInfo();
+ ~GetAddrInfo() override;
void resolve();
@@ -65,7 +65,7 @@ class ClientMachine : public QObject
Q_OBJECT
public:
explicit ClientMachine(QObject *parent = NULL);
- virtual ~ClientMachine();
+ ~ClientMachine() override;
void resolve(xcb_window_t window, xcb_window_t clientLeader);
const QByteArray &hostName() const;
diff --git a/colorcorrection/colorcorrectdbusinterface.h b/colorcorrection/colorcorrectdbusinterface.h
index 311436d32..30fabdb74 100644
--- a/colorcorrection/colorcorrectdbusinterface.h
+++ b/colorcorrection/colorcorrectdbusinterface.h
@@ -39,7 +39,7 @@ class ColorCorrectDBusInterface : public QObject
public:
explicit ColorCorrectDBusInterface(Manager *parent);
- virtual ~ColorCorrectDBusInterface() = default;
+ ~ColorCorrectDBusInterface() override = default;
public Q_SLOTS:
/**
diff --git a/composite.h b/composite.h
index 220d78f60..1a85295e1 100644
--- a/composite.h
+++ b/composite.h
@@ -54,7 +54,7 @@ class KWIN_EXPORT Compositor : public QObject {
public:
enum SuspendReason { NoReasonSuspend = 0, UserSuspend = 1<<0, BlockRuleSuspend = 1<<1, ScriptSuspend = 1<<2, AllReasonSuspend = 0xff };
Q_DECLARE_FLAGS(SuspendReasons, SuspendReason)
- ~Compositor();
+ ~Compositor() override;
// when adding repaints caused by a window, you probably want to use
// either Toplevel::addRepaint() or Toplevel::addWorkspaceRepaint()
void addRepaint(const QRect& r);
@@ -179,7 +179,7 @@ Q_SIGNALS:
void sceneCreated();
protected:
- void timerEvent(QTimerEvent *te);
+ void timerEvent(QTimerEvent *te) override;
private Q_SLOTS:
void setup();
diff --git a/cursor.h b/cursor.h
index c79cbc15b..e52264ca6 100644
--- a/cursor.h
+++ b/cursor.h
@@ -98,7 +98,7 @@ class KWIN_EXPORT Cursor : public QObject
{
Q_OBJECT
public:
- virtual ~Cursor();
+ ~Cursor() override;
void startMousePolling();
void stopMousePolling();
/**
@@ -260,11 +260,11 @@ class InputRedirectionCursor : public Cursor
Q_OBJECT
public:
explicit InputRedirectionCursor(QObject *parent);
- virtual ~InputRedirectionCursor();
+ ~InputRedirectionCursor() override;
protected:
- virtual void doSetPos();
- virtual void doStartCursorTracking();
- virtual void doStopCursorTracking();
+ void doSetPos() override;
+ void doStartCursorTracking() override;
+ void doStopCursorTracking() override;
private Q_SLOTS:
void slotPosChanged(const QPointF &pos);
void slotPointerButtonChanged();
diff --git a/dbusinterface.h b/dbusinterface.h
index 8a61a2c18..290ac51ec 100644
--- a/dbusinterface.h
+++ b/dbusinterface.h
@@ -52,7 +52,7 @@ class DBusInterface: public QObject, protected QDBusContext
Q_CLASSINFO("D-Bus Interface", "org.kde.KWin")
public:
explicit DBusInterface(QObject *parent);
- virtual ~DBusInterface();
+ ~DBusInterface() override;
public: // PROPERTIES
public Q_SLOTS: // METHODS
@@ -125,7 +125,7 @@ class CompositorDBusInterface : public QObject
Q_PROPERTY(bool platformRequiresCompositing READ platformRequiresCompositing)
public:
explicit CompositorDBusInterface(Compositor *parent);
- virtual ~CompositorDBusInterface() = default;
+ ~CompositorDBusInterface() override = default;
bool isActive() const;
bool isCompositingPossible() const;
@@ -205,7 +205,7 @@ class VirtualDesktopManagerDBusInterface : public QObject
public:
VirtualDesktopManagerDBusInterface(VirtualDesktopManager *parent);
- ~VirtualDesktopManagerDBusInterface() = default;
+ ~VirtualDesktopManagerDBusInterface() override = default;
uint count() const;
diff --git a/debug_console.h b/debug_console.h
index 6cda3ff52..7fb826183 100644
--- a/debug_console.h
+++ b/debug_console.h
@@ -49,7 +49,7 @@ class KWIN_EXPORT DebugConsoleModel : public QAbstractItemModel
Q_OBJECT
public:
explicit DebugConsoleModel(QObject *parent = nullptr);
- virtual ~DebugConsoleModel();
+ ~DebugConsoleModel() override;
int columnCount(const QModelIndex &parent) const override;
@@ -90,7 +90,7 @@ class DebugConsoleDelegate : public QStyledItemDelegate
Q_OBJECT
public:
explicit DebugConsoleDelegate(QObject *parent = nullptr);
- virtual ~DebugConsoleDelegate();
+ ~DebugConsoleDelegate() override;
QString displayText(const QVariant &value, const QLocale &locale) const override;
};
@@ -100,7 +100,7 @@ class KWIN_EXPORT DebugConsole : public QWidget
Q_OBJECT
public:
DebugConsole();
- virtual ~DebugConsole();
+ ~DebugConsole() override;
protected:
void showEvent(QShowEvent *event) override;
@@ -118,7 +118,7 @@ class SurfaceTreeModel : public QAbstractItemModel
Q_OBJECT
public:
explicit SurfaceTreeModel(QObject *parent = nullptr);
- virtual ~SurfaceTreeModel();
+ ~SurfaceTreeModel() override;
int columnCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
@@ -131,7 +131,7 @@ class DebugConsoleFilter : public InputEventSpy
{
public:
explicit DebugConsoleFilter(QTextEdit *textEdit);
- virtual ~DebugConsoleFilter();
+ ~DebugConsoleFilter() override;
void pointerEvent(MouseEvent *event) override;
void wheelEvent(WheelEvent *event) override;
@@ -166,7 +166,7 @@ class InputDeviceModel : public QAbstractItemModel
Q_OBJECT
public:
explicit InputDeviceModel(QObject *parent = nullptr);
- virtual ~InputDeviceModel();
+ ~InputDeviceModel() override;
int columnCount(const QModelIndex &parent) const override;
QVariant data(const QModelIndex &index, int role) const override;
diff --git a/decorations/decoratedclient.h b/decorations/decoratedclient.h
index f21503256..9cfd6634a 100644
--- a/decorations/decoratedclient.h
+++ b/decorations/decoratedclient.h
@@ -42,7 +42,7 @@ class DecoratedClientImpl : public QObject, public KDecoration2::ApplicationMenu
Q_OBJECT
public:
explicit DecoratedClientImpl(AbstractClient *client, KDecoration2::DecoratedClient *decoratedClient, KDecoration2::Decoration *decoration);
- virtual ~DecoratedClientImpl();
+ ~DecoratedClientImpl() override;
QString caption() const override;
WId decorationId() const override;
int desktop() const override;
@@ -87,7 +87,7 @@ public:
void requestToggleOnAllDesktops() override;
void requestToggleShade() override;
- void showApplicationMenu(int actionId);
+ void showApplicationMenu(int actionId) override;
AbstractClient *client() {
return m_client;
diff --git a/decorations/decorationbridge.h b/decorations/decorationbridge.h
index db0d7940d..8c6f576a2 100644
--- a/decorations/decorationbridge.h
+++ b/decorations/decorationbridge.h
@@ -48,7 +48,7 @@ class DecorationBridge : public KDecoration2::DecorationBridge
{
Q_OBJECT
public:
- virtual ~DecorationBridge();
+ ~DecorationBridge() override;
void init();
KDecoration2::Decoration *createDecoration(AbstractClient *client);
diff --git a/decorations/decorationrenderer.h b/decorations/decorationrenderer.h
index 417bf849f..ca63fc391 100644
--- a/decorations/decorationrenderer.h
+++ b/decorations/decorationrenderer.h
@@ -39,7 +39,7 @@ class KWIN_EXPORT Renderer : public QObject
{
Q_OBJECT
public:
- virtual ~Renderer();
+ ~Renderer() override;
void schedule(const QRect &rect);
diff --git a/decorations/settings.h b/decorations/settings.h
index a35be06ef..7a72cda16 100644
--- a/decorations/settings.h
+++ b/decorations/settings.h
@@ -36,7 +36,7 @@ class SettingsImpl : public QObject, public KDecoration2::DecorationSettingsPriv
Q_OBJECT
public:
explicit SettingsImpl(KDecoration2::DecorationSettings *parent);
- virtual ~SettingsImpl();
+ ~SettingsImpl() override;
bool isAlphaChannelSupported() const override;
bool isOnAllDesktopsAvailable() const override;
bool isCloseOnDoubleClickOnMenu() const override;
diff --git a/deleted.h b/deleted.h
index 132b61abf..a12dcde83 100644
--- a/deleted.h
+++ b/deleted.h
@@ -50,23 +50,23 @@ public:
void refWindow();
void unrefWindow();
void discard();
- virtual int desktop() const;
- virtual QStringList activities() const;
- virtual QVector<VirtualDesktop *> desktops() const;
- virtual QPoint clientPos() const;
- virtual QSize clientSize() const;
+ int desktop() const override;
+ QStringList activities() const override;
+ QVector<VirtualDesktop *> desktops() const override;
+ QPoint clientPos() const override;
+ QSize clientSize() const override;
QPoint clientContentPos() const override {
return m_contentPos;
}
- virtual QRect transparentRect() const;
- virtual bool isDeleted() const;
- virtual xcb_window_t frameId() const override;
+ QRect transparentRect() const override;
+ bool isDeleted() const override;
+ xcb_window_t frameId() const override;
bool noBorder() const {
return no_border;
}
void layoutDecorationRects(QRect &left, QRect &top, QRect &right, QRect &bottom) const;
- QRect decorationRect() const;
- virtual Layer layer() const {
+ QRect decorationRect() const override;
+ Layer layer() const override {
return m_layer;
}
bool isMinimized() const {
@@ -78,7 +78,7 @@ public:
QList<AbstractClient*> mainClients() const {
return m_mainClients;
}
- NET::WindowType windowType(bool direct = false, int supported_types = 0) const;
+ NET::WindowType windowType(bool direct = false, int supported_types = 0) const override;
bool wasClient() const {
return m_wasClient;
}
@@ -184,7 +184,7 @@ public:
QVector<uint> x11DesktopIds() const;
protected:
- virtual void debug(QDebug& stream) const;
+ void debug(QDebug& stream) const override;
private Q_SLOTS:
void mainClientClosed(KWin::Toplevel *client);
void transientForClosed(Toplevel *toplevel, Deleted *deleted);
@@ -192,7 +192,7 @@ private Q_SLOTS:
private:
Deleted(); // use create()
void copyToDeleted(Toplevel* c);
- virtual ~Deleted(); // deleted only using unrefWindow()
+ ~Deleted() override; // deleted only using unrefWindow()
void addTransient(Deleted *transient);
void removeTransient(Deleted *transient);
diff --git a/effectloader.h b/effectloader.h
index b817adecf..4bff94318 100644
--- a/effectloader.h
+++ b/effectloader.h
@@ -70,7 +70,7 @@ class KWIN_EXPORT AbstractEffectLoader : public QObject
{
Q_OBJECT
public:
- virtual ~AbstractEffectLoader();
+ ~AbstractEffectLoader() override;
/**
* @brief The KSharedConfig this EffectLoader should operate on.
diff --git a/effects.h b/effects.h
index 17db6c020..9c84c4003 100644
--- a/effects.h
+++ b/effects.h
@@ -72,7 +72,7 @@ class KWIN_EXPORT EffectsHandlerImpl : public EffectsHandler
Q_PROPERTY(QStringList listOfEffects READ listOfEffects)
public:
EffectsHandlerImpl(Compositor *compositor, Scene *scene);
- virtual ~EffectsHandlerImpl();
+ ~EffectsHandlerImpl() override;
void prePaintScreen(ScreenPrePaintData& data, int time) override;
void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
/**
@@ -260,7 +260,7 @@ public:
return registered_atoms.contains(atom);
}
- void windowToDesktops(EffectWindow *w, const QVector<uint> &desktops);
+ void windowToDesktops(EffectWindow *w, const QVector<uint> &desktops) override;
/**
* Finds an effect with the given name.
@@ -484,8 +484,8 @@ public:
void elevate(bool elevate);
- void setData(int role, const QVariant &data);
- QVariant data(int role) const;
+ void setData(int role, const QVariant &data) override;
+ QVariant data(int role) const override;
void registerThumbnail(AbstractThumbnailItem *item);
QHash<WindowThumbnailItem*, QWeakPointer<EffectWindowImpl> > const &thumbnails() const {
@@ -528,7 +528,7 @@ class KWIN_EXPORT EffectFrameImpl
public:
explicit EffectFrameImpl(EffectFrameStyle style, bool staticSize = true, QPoint position = QPoint(-1, -1),
Qt::Alignment alignment = Qt::AlignCenter);
- virtual ~EffectFrameImpl();
+ ~EffectFrameImpl() override;
void free() override;
void render(QRegion region = infiniteRegion(), double opacity = 1.0, double frameOpacity = 1.0) override;
diff --git a/effects/blur/blur_config.h b/effects/blur/blur_config.h
index bc33efc9d..a766eec68 100644
--- a/effects/blur/blur_config.h
+++ b/effects/blur/blur_config.h
@@ -32,9 +32,9 @@ class BlurEffectConfig : public KCModule
public:
explicit BlurEffectConfig(QWidget *parent = 0, const QVariantList& args = QVariantList());
- ~BlurEffectConfig();
+ ~BlurEffectConfig() override;
- void save();
+ void save() override;
private:
::Ui::BlurEffectConfig ui;
diff --git a/effects/colorpicker/colorpicker.h b/effects/colorpicker/colorpicker.h
index f3856cea8..79dade4c1 100644
--- a/effects/colorpicker/colorpicker.h
+++ b/effects/colorpicker/colorpicker.h
@@ -36,7 +36,7 @@ class ColorPickerEffect : public Effect, protected QDBusContext
Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.ColorPicker")
public:
ColorPickerEffect();
- virtual ~ColorPickerEffect();
+ ~ColorPickerEffect() override;
void paintScreen(int mask, QRegion region, ScreenPaintData &data) override;
void postPaintScreen() override;
bool isActive() const override;
diff --git a/effects/coverswitch/coverswitch.h b/effects/coverswitch/coverswitch.h
index 4c3b15b0d..994df1c1f 100644
--- a/effects/coverswitch/coverswitch.h
+++ b/effects/coverswitch/coverswitch.h
@@ -55,7 +55,7 @@ public:
void reconfigure(ReconfigureFlags) override;
void prePaintScreen(ScreenPrePaintData &data, int time) override;
void paintScreen(int mask, QRegion region, ScreenPaintData &data) override;
- void postPaintScreen();
+ void postPaintScreen() override;
void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override;
void windowInputMouseEvent(QEvent *e) override;
bool isActive() const override;
diff --git a/effects/coverswitch/coverswitch_config.h b/effects/coverswitch/coverswitch_config.h
index 7945de230..f6986a5db 100644
--- a/effects/coverswitch/coverswitch_config.h
+++ b/effects/coverswitch/coverswitch_config.h
@@ -43,7 +43,7 @@ public:
explicit CoverSwitchEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
public Q_SLOTS:
- virtual void save();
+ void save() override;
private:
CoverSwitchEffectConfigForm* m_ui;
diff --git a/effects/cube/cube.h b/effects/cube/cube.h
index 8da87a6a6..654df2115 100644
--- a/effects/cube/cube.h
+++ b/effects/cube/cube.h
@@ -56,24 +56,24 @@ class CubeEffect
// TODO: electric borders: not a registered type
public:
CubeEffect();
- ~CubeEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void postPaintScreen();
- virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual bool borderActivated(ElectricBorder border);
- virtual void grabbedKeyboardEvent(QKeyEvent* e);
- virtual void windowInputMouseEvent(QEvent* e);
- virtual bool isActive() const;
+ ~CubeEffect() override;
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void postPaintScreen() override;
+ void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ bool borderActivated(ElectricBorder border) override;
+ void grabbedKeyboardEvent(QKeyEvent* e) override;
+ void windowInputMouseEvent(QEvent* e) override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 50;
}
// proxy functions
- virtual void* proxy();
+ void* proxy() override;
void registerCubeInsideEffect(CubeInsideEffect* effect);
void unregisterCubeInsideEffect(CubeInsideEffect* effect);
diff --git a/effects/cube/cube_config.h b/effects/cube/cube_config.h
index 378d7e13d..1cb151ab4 100644
--- a/effects/cube/cube_config.h
+++ b/effects/cube/cube_config.h
@@ -43,7 +43,7 @@ public:
explicit CubeEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
public Q_SLOTS:
- virtual void save();
+ void save() override;
private Q_SLOTS:
void capsSelectionChanged();
diff --git a/effects/cube/cube_inside.h b/effects/cube/cube_inside.h
index b8223d02f..4b347b144 100644
--- a/effects/cube/cube_inside.h
+++ b/effects/cube/cube_inside.h
@@ -29,7 +29,7 @@ class CubeInsideEffect : public Effect
{
public:
CubeInsideEffect() {}
- virtual ~CubeInsideEffect() {}
+ ~CubeInsideEffect() override {}
virtual void paint() = 0;
virtual void setActive(bool active) = 0;
diff --git a/effects/cubeslide/cubeslide.h b/effects/cubeslide/cubeslide.h
index 9fac0dad7..c5fbff1fc 100644
--- a/effects/cubeslide/cubeslide.h
+++ b/effects/cubeslide/cubeslide.h
@@ -40,14 +40,14 @@ class CubeSlideEffect
Q_PROPERTY(bool useWindowMoving READ isUseWindowMoving)
public:
CubeSlideEffect();
- ~CubeSlideEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void postPaintScreen();
- virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual bool isActive() const;
+ ~CubeSlideEffect() override;
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void postPaintScreen() override;
+ void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 50;
diff --git a/effects/cubeslide/cubeslide_config.h b/effects/cubeslide/cubeslide_config.h
index fa7f18ddb..647a2621c 100644
--- a/effects/cubeslide/cubeslide_config.h
+++ b/effects/cubeslide/cubeslide_config.h
@@ -43,7 +43,7 @@ public:
explicit CubeSlideEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
public Q_SLOTS:
- virtual void save();
+ void save() override;
private:
CubeSlideEffectConfigForm* m_ui;
diff --git a/effects/desktopgrid/desktopgrid.h b/effects/desktopgrid/desktopgrid.h
index 62c4d7166..abcf98d50 100644
--- a/effects/desktopgrid/desktopgrid.h
+++ b/effects/desktopgrid/desktopgrid.h
@@ -67,17 +67,17 @@ class DesktopGridEffect
// TODO: electric borders
public:
DesktopGridEffect();
- ~DesktopGridEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void postPaintScreen();
- virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual void windowInputMouseEvent(QEvent* e);
- virtual void grabbedKeyboardEvent(QKeyEvent* e);
- virtual bool borderActivated(ElectricBorder border);
- virtual bool isActive() const;
+ ~DesktopGridEffect() override;
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void postPaintScreen() override;
+ void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ void windowInputMouseEvent(QEvent* e) override;
+ void grabbedKeyboardEvent(QKeyEvent* e) override;
+ bool borderActivated(ElectricBorder border) override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 50;
diff --git a/effects/desktopgrid/desktopgrid_config.h b/effects/desktopgrid/desktopgrid_config.h
index 8bd87276b..1654d3623 100644
--- a/effects/desktopgrid/desktopgrid_config.h
+++ b/effects/desktopgrid/desktopgrid_config.h
@@ -42,12 +42,12 @@ class DesktopGridEffectConfig : public KCModule
Q_OBJECT
public:
explicit DesktopGridEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- ~DesktopGridEffectConfig();
+ ~DesktopGridEffectConfig() override;
public Q_SLOTS:
- virtual void save();
- virtual void load();
- virtual void defaults();
+ void save() override;
+ void load() override;
+ void defaults() override;
private Q_SLOTS:
void layoutSelectionChanged();
diff --git a/effects/fallapart/fallapart.h b/effects/fallapart/fallapart.h
index b8d27a588..4d400d678 100644
--- a/effects/fallapart/fallapart.h
+++ b/effects/fallapart/fallapart.h
@@ -33,12 +33,12 @@ class FallApartEffect
Q_PROPERTY(int blockSize READ configuredBlockSize)
public:
FallApartEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual void postPaintScreen();
- virtual bool isActive() const;
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ void postPaintScreen() override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 70;
diff --git a/effects/flipswitch/flipswitch.h b/effects/flipswitch/flipswitch.h
index add05b4ff..6f86e6d93 100644
--- a/effects/flipswitch/flipswitch.h
+++ b/effects/flipswitch/flipswitch.h
@@ -43,17 +43,17 @@ class FlipSwitchEffect
Q_PROPERTY(bool windowTitle READ isWindowTitle)
public:
FlipSwitchEffect();
- ~FlipSwitchEffect();
-
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void postPaintScreen();
- virtual void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual void grabbedKeyboardEvent(QKeyEvent* e);
- virtual void windowInputMouseEvent(QEvent* e);
- virtual bool isActive() const;
+ ~FlipSwitchEffect() override;
+
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void postPaintScreen() override;
+ void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ void grabbedKeyboardEvent(QKeyEvent* e) override;
+ void windowInputMouseEvent(QEvent* e) override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 50;
diff --git a/effects/flipswitch/flipswitch_config.h b/effects/flipswitch/flipswitch_config.h
index 2c1e0fa57..27252e474 100644
--- a/effects/flipswitch/flipswitch_config.h
+++ b/effects/flipswitch/flipswitch_config.h
@@ -42,10 +42,10 @@ class FlipSwitchEffectConfig : public KCModule
Q_OBJECT
public:
explicit FlipSwitchEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- ~FlipSwitchEffectConfig();
+ ~FlipSwitchEffectConfig() override;
public Q_SLOTS:
- virtual void save();
+ void save() override;
private:
FlipSwitchEffectConfigForm* m_ui;
diff --git a/effects/highlightwindow/highlightwindow.h b/effects/highlightwindow/highlightwindow.h
index 2de9b3d9c..58158813c 100644
--- a/effects/highlightwindow/highlightwindow.h
+++ b/effects/highlightwindow/highlightwindow.h
@@ -32,11 +32,11 @@ class HighlightWindowEffect
Q_OBJECT
public:
HighlightWindowEffect();
- virtual ~HighlightWindowEffect();
+ ~HighlightWindowEffect() override;
- virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual bool isActive() const;
+ void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 70;
diff --git a/effects/invert/invert.h b/effects/invert/invert.h
index 65d2e8d1c..598faddc0 100644
--- a/effects/invert/invert.h
+++ b/effects/invert/invert.h
@@ -38,12 +38,12 @@ class InvertEffect
Q_OBJECT
public:
InvertEffect();
- ~InvertEffect();
+ ~InvertEffect() override;
- virtual void drawWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual void paintEffectFrame(KWin::EffectFrame* frame, QRegion region, double opacity, double frameOpacity);
- virtual bool isActive() const;
- virtual bool provides(Feature);
+ void drawWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ void paintEffectFrame(KWin::EffectFrame* frame, QRegion region, double opacity, double frameOpacity) override;
+ bool isActive() const override;
+ bool provides(Feature) override;
int requestedEffectChainPosition() const override;
diff --git a/effects/invert/invert_config.h b/effects/invert/invert_config.h
index 1fab78ccd..b4269a19b 100644
--- a/effects/invert/invert_config.h
+++ b/effects/invert/invert_config.h
@@ -33,12 +33,12 @@ class InvertEffectConfig : public KCModule
Q_OBJECT
public:
explicit InvertEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- ~InvertEffectConfig();
+ ~InvertEffectConfig() override;
public Q_SLOTS:
- virtual void save();
- virtual void load();
- virtual void defaults();
+ void save() override;
+ void load() override;
+ void defaults() override;
private:
KShortcutsEditor* mShortcutEditor;
diff --git a/effects/kscreen/kscreen.h b/effects/kscreen/kscreen.h
index 2f9dad1df..b0feae0b3 100644
--- a/effects/kscreen/kscreen.h
+++ b/effects/kscreen/kscreen.h
@@ -31,15 +31,15 @@ class KscreenEffect : public Effect
public:
KscreenEffect();
- virtual ~KscreenEffect();
+ ~KscreenEffect() override;
- virtual void prePaintScreen(ScreenPrePaintData &data, int time);
- virtual void postPaintScreen();
- virtual void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time);
- virtual void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data);
+ void prePaintScreen(ScreenPrePaintData &data, int time) override;
+ void postPaintScreen() override;
+ void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time) override;
+ void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override;
- void reconfigure(ReconfigureFlags flags);
- virtual bool isActive() const;
+ void reconfigure(ReconfigureFlags flags) override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 99;
diff --git a/effects/lookingglass/lookingglass.h b/effects/lookingglass/lookingglass.h
index 2252a7007..84a0e63bc 100644
--- a/effects/lookingglass/lookingglass.h
+++ b/effects/lookingglass/lookingglass.h
@@ -41,13 +41,13 @@ class LookingGlassEffect : public Effect
Q_PROPERTY(int initialRadius READ initialRadius)
public:
LookingGlassEffect();
- virtual ~LookingGlassEffect();
+ ~LookingGlassEffect() override;
- virtual void reconfigure(ReconfigureFlags);
+ void reconfigure(ReconfigureFlags) override;
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
void paintScreen(int mask, QRegion region, ScreenPaintData &data) override;
- virtual bool isActive() const;
+ bool isActive() const override;
static bool supported();
diff --git a/effects/lookingglass/lookingglass_config.h b/effects/lookingglass/lookingglass_config.h
index ef81612bf..22adf1b10 100644
--- a/effects/lookingglass/lookingglass_config.h
+++ b/effects/lookingglass/lookingglass_config.h
@@ -42,10 +42,10 @@ class LookingGlassEffectConfig : public KCModule
Q_OBJECT
public:
explicit LookingGlassEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- virtual ~LookingGlassEffectConfig();
+ ~LookingGlassEffectConfig() override;
- virtual void save();
- virtual void defaults();
+ void save() override;
+ void defaults() override;
private:
LookingGlassEffectConfigForm* m_ui;
diff --git a/effects/magiclamp/magiclamp.h b/effects/magiclamp/magiclamp.h
index 0bd900b2c..6626241a9 100644
--- a/effects/magiclamp/magiclamp.h
+++ b/effects/magiclamp/magiclamp.h
@@ -34,12 +34,12 @@ class MagicLampEffect
public:
MagicLampEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual void postPaintScreen();
- virtual bool isActive() const;
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ void postPaintScreen() override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 50;
diff --git a/effects/magiclamp/magiclamp_config.h b/effects/magiclamp/magiclamp_config.h
index 4f07dd881..2f074c07d 100644
--- a/effects/magiclamp/magiclamp_config.h
+++ b/effects/magiclamp/magiclamp_config.h
@@ -43,7 +43,7 @@ public:
explicit MagicLampEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
public Q_SLOTS:
- virtual void save();
+ void save() override;
private:
MagicLampEffectConfigForm* m_ui;
diff --git a/effects/magnifier/magnifier.h b/effects/magnifier/magnifier.h
index 14345bc45..de2a215ba 100644
--- a/effects/magnifier/magnifier.h
+++ b/effects/magnifier/magnifier.h
@@ -39,12 +39,12 @@ class MagnifierEffect
Q_PROPERTY(qreal targetZoom READ targetZoom)
public:
MagnifierEffect();
- virtual ~MagnifierEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void postPaintScreen();
- virtual bool isActive() const;
+ ~MagnifierEffect() override;
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void postPaintScreen() override;
+ bool isActive() const override;
static bool supported();
// for properties
diff --git a/effects/magnifier/magnifier_config.h b/effects/magnifier/magnifier_config.h
index f21652a1b..6dafd4f87 100644
--- a/effects/magnifier/magnifier_config.h
+++ b/effects/magnifier/magnifier_config.h
@@ -42,10 +42,10 @@ class MagnifierEffectConfig : public KCModule
Q_OBJECT
public:
explicit MagnifierEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- virtual ~MagnifierEffectConfig();
+ ~MagnifierEffectConfig() override;
- virtual void save();
- virtual void defaults();
+ void save() override;
+ void defaults() override;
private:
MagnifierEffectConfigForm* m_ui;
diff --git a/effects/mouseclick/mouseclick.h b/effects/mouseclick/mouseclick.h
index afcd170bc..1c4eb1e49 100644
--- a/effects/mouseclick/mouseclick.h
+++ b/effects/mouseclick/mouseclick.h
@@ -101,12 +101,12 @@ class MouseClickEffect
Q_PROPERTY(bool enabled READ isEnabled)
public:
MouseClickEffect();
- ~MouseClickEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void postPaintScreen();
- virtual bool isActive() const;
+ ~MouseClickEffect() override;
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void postPaintScreen() override;
+ bool isActive() const override;
// for properties
QColor color1() const {
diff --git a/effects/mouseclick/mouseclick_config.h b/effects/mouseclick/mouseclick_config.h
index 028662c6e..9e8ef375c 100644
--- a/effects/mouseclick/mouseclick_config.h
+++ b/effects/mouseclick/mouseclick_config.h
@@ -42,9 +42,9 @@ class MouseClickEffectConfig : public KCModule
Q_OBJECT
public:
explicit MouseClickEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- virtual ~MouseClickEffectConfig();
+ ~MouseClickEffectConfig() override;
- virtual void save();
+ void save() override;
private:
MouseClickEffectConfigForm* m_ui;
diff --git a/effects/mousemark/mousemark.h b/effects/mousemark/mousemark.h
index 2f24f7596..eab3c2705 100644
--- a/effects/mousemark/mousemark.h
+++ b/effects/mousemark/mousemark.h
@@ -38,10 +38,10 @@ class MouseMarkEffect
Q_PROPERTY(QColor color READ configuredColor)
public:
MouseMarkEffect();
- ~MouseMarkEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual bool isActive() const;
+ ~MouseMarkEffect() override;
+ void reconfigure(ReconfigureFlags) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ bool isActive() const override;
// for properties
int configuredWidth() const {
diff --git a/effects/mousemark/mousemark_config.h b/effects/mousemark/mousemark_config.h
index 290c9add7..aea63f0c0 100644
--- a/effects/mousemark/mousemark_config.h
+++ b/effects/mousemark/mousemark_config.h
@@ -42,9 +42,9 @@ class MouseMarkEffectConfig : public KCModule
Q_OBJECT
public:
explicit MouseMarkEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- virtual ~MouseMarkEffectConfig();
+ ~MouseMarkEffectConfig() override;
- virtual void save();
+ void save() override;
private:
MouseMarkEffectConfigForm* m_ui;
diff --git a/effects/presentwindows/presentwindows.h b/effects/presentwindows/presentwindows.h
index 6e95bdada..27533bbb2 100644
--- a/effects/presentwindows/presentwindows.h
+++ b/effects/presentwindows/presentwindows.h
@@ -107,25 +107,25 @@ private:
public:
PresentWindowsEffect();
- virtual ~PresentWindowsEffect();
+ ~PresentWindowsEffect() override;
- virtual void reconfigure(ReconfigureFlags);
- virtual void* proxy();
+ void reconfigure(ReconfigureFlags) override;
+ void* proxy() override;
// Screen painting
- virtual void prePaintScreen(ScreenPrePaintData &data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData &data);
- virtual void postPaintScreen();
+ void prePaintScreen(ScreenPrePaintData &data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData &data) override;
+ void postPaintScreen() override;
// Window painting
- virtual void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time);
- virtual void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data);
+ void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time) override;
+ void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override;
// User interaction
- virtual bool borderActivated(ElectricBorder border);
- virtual void windowInputMouseEvent(QEvent *e);
- virtual void grabbedKeyboardEvent(QKeyEvent *e);
- virtual bool isActive() const;
+ bool borderActivated(ElectricBorder border) override;
+ void windowInputMouseEvent(QEvent *e) override;
+ void grabbedKeyboardEvent(QKeyEvent *e) override;
+ bool isActive() const override;
bool touchDown(quint32 id, const QPointF &pos, quint32 time) override;
bool touchMotion(quint32 id, const QPointF &pos, quint32 time) override;
diff --git a/effects/presentwindows/presentwindows_config.h b/effects/presentwindows/presentwindows_config.h
index 6eae72b01..4607be00b 100644
--- a/effects/presentwindows/presentwindows_config.h
+++ b/effects/presentwindows/presentwindows_config.h
@@ -41,11 +41,11 @@ class PresentWindowsEffectConfig : public KCModule
Q_OBJECT
public:
explicit PresentWindowsEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- ~PresentWindowsEffectConfig();
+ ~PresentWindowsEffectConfig() override;
public Q_SLOTS:
- virtual void save();
- virtual void defaults();
+ void save() override;
+ void defaults() override;
private:
PresentWindowsEffectConfigForm* m_ui;
diff --git a/effects/resize/resize.h b/effects/resize/resize.h
index 4b79bbc98..299ae1982 100644
--- a/effects/resize/resize.h
+++ b/effects/resize/resize.h
@@ -34,15 +34,15 @@ class ResizeEffect
Q_PROPERTY(bool outline READ isOutline)
public:
ResizeEffect();
- ~ResizeEffect();
- virtual inline bool provides(Effect::Feature ef) {
+ ~ResizeEffect() override;
+ inline bool provides(Effect::Feature ef) override {
return ef == Effect::Resize;
}
- inline bool isActive() const { return m_active || AnimationEffect::isActive(); }
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual void reconfigure(ReconfigureFlags);
+ inline bool isActive() const override { return m_active || AnimationEffect::isActive(); }
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ void reconfigure(ReconfigureFlags) override;
int requestedEffectChainPosition() const override {
return 60;
diff --git a/effects/resize/resize_config.h b/effects/resize/resize_config.h
index f9742e0ff..e02e596e3 100644
--- a/effects/resize/resize_config.h
+++ b/effects/resize/resize_config.h
@@ -43,7 +43,7 @@ public:
explicit ResizeEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
public Q_SLOTS:
- virtual void save();
+ void save() override;
private:
ResizeEffectConfigForm* m_ui;
diff --git a/effects/screenedge/screenedgeeffect.h b/effects/screenedge/screenedgeeffect.h
index d940e6191..9ed7a524d 100644
--- a/effects/screenedge/screenedgeeffect.h
+++ b/effects/screenedge/screenedgeeffect.h
@@ -35,10 +35,10 @@ class ScreenEdgeEffect : public Effect
Q_OBJECT
public:
ScreenEdgeEffect();
- virtual ~ScreenEdgeEffect();
- virtual void prePaintScreen(ScreenPrePaintData &data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData &data);
- virtual bool isActive() const;
+ ~ScreenEdgeEffect() override;
+ void prePaintScreen(ScreenPrePaintData &data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData &data) override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 90;
diff --git a/effects/showfps/showfps.h b/effects/showfps/showfps.h
index 40c6a86dd..3f5cb1583 100644
--- a/effects/showfps/showfps.h
+++ b/effects/showfps/showfps.h
@@ -44,11 +44,11 @@ class ShowFpsEffect
Q_PROPERTY(QColor textColor READ configuredTextColor)
public:
ShowFpsEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual void postPaintScreen();
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ void postPaintScreen() override;
enum { INSIDE_GRAPH, NOWHERE, TOP_LEFT, TOP_RIGHT, BOTTOM_LEFT, BOTTOM_RIGHT }; // fps text position
// for properties
diff --git a/effects/showfps/showfps_config.h b/effects/showfps/showfps_config.h
index 9858d5f4c..7ac264d08 100644
--- a/effects/showfps/showfps_config.h
+++ b/effects/showfps/showfps_config.h
@@ -33,10 +33,10 @@ class ShowFpsEffectConfig : public KCModule
Q_OBJECT
public:
explicit ShowFpsEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- ~ShowFpsEffectConfig();
+ ~ShowFpsEffectConfig() override;
public Q_SLOTS:
- virtual void save();
+ void save() override;
private:
Ui::ShowFpsEffectConfigForm *m_ui;
diff --git a/effects/slide/slide_config.h b/effects/slide/slide_config.h
index f6286b1f6..d13acd607 100644
--- a/effects/slide/slide_config.h
+++ b/effects/slide/slide_config.h
@@ -34,9 +34,9 @@ class SlideEffectConfig : public KCModule
public:
explicit SlideEffectConfig(QWidget *parent = nullptr, const QVariantList &args = QVariantList());
- ~SlideEffectConfig();
+ ~SlideEffectConfig() override;
- void save();
+ void save() override;
private:
::Ui::SlideEffectConfig m_ui;
diff --git a/effects/slideback/slideback.h b/effects/slideback/slideback.h
index c71502e5e..6cdf5f005 100644
--- a/effects/slideback/slideback.h
+++ b/effects/slideback/slideback.h
@@ -34,13 +34,13 @@ class SlideBackEffect
public:
SlideBackEffect();
- virtual void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual void postPaintWindow(EffectWindow* w);
+ void prePaintWindow(EffectWindow *w, WindowPrePaintData &data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ void postPaintWindow(EffectWindow* w) override;
- virtual void prePaintScreen(ScreenPrePaintData &data, int time);
- virtual void postPaintScreen();
- virtual bool isActive() const;
+ void prePaintScreen(ScreenPrePaintData &data, int time) override;
+ void postPaintScreen() override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 50;
diff --git a/effects/startupfeedback/startupfeedback.h b/effects/startupfeedback/startupfeedback.h
index 96ed0d857..204f79850 100644
--- a/effects/startupfeedback/startupfeedback.h
+++ b/effects/startupfeedback/startupfeedback.h
@@ -36,13 +36,13 @@ class StartupFeedbackEffect
Q_PROPERTY(int type READ type)
public:
StartupFeedbackEffect();
- virtual ~StartupFeedbackEffect();
+ ~StartupFeedbackEffect() override;
- virtual void reconfigure(ReconfigureFlags flags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void postPaintScreen();
- virtual bool isActive() const;
+ void reconfigure(ReconfigureFlags flags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void postPaintScreen() override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 90;
diff --git a/effects/thumbnailaside/thumbnailaside.h b/effects/thumbnailaside/thumbnailaside.h
index bfe4931cd..bea01e2e2 100644
--- a/effects/thumbnailaside/thumbnailaside.h
+++ b/effects/thumbnailaside/thumbnailaside.h
@@ -45,9 +45,9 @@ class ThumbnailAsideEffect
Q_PROPERTY(int screen READ configuredScreen)
public:
ThumbnailAsideEffect();
- virtual void reconfigure(ReconfigureFlags);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data);
+ void reconfigure(ReconfigureFlags) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void paintWindow(EffectWindow *w, int mask, QRegion region, WindowPaintData &data) override;
// for properties
int configuredMaxWidth() const {
@@ -67,7 +67,7 @@ private Q_SLOTS:
void slotWindowClosed(KWin::EffectWindow *w);
void slotWindowGeometryShapeChanged(KWin::EffectWindow *w, const QRect &old);
void slotWindowDamaged(KWin::EffectWindow* w, const QRect& damage);
- virtual bool isActive() const;
+ bool isActive() const override;
void repaintAll();
private:
void addThumbnail(EffectWindow* w);
diff --git a/effects/thumbnailaside/thumbnailaside_config.h b/effects/thumbnailaside/thumbnailaside_config.h
index 675667228..88973b832 100644
--- a/effects/thumbnailaside/thumbnailaside_config.h
+++ b/effects/thumbnailaside/thumbnailaside_config.h
@@ -42,9 +42,9 @@ class ThumbnailAsideEffectConfig : public KCModule
Q_OBJECT
public:
explicit ThumbnailAsideEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- virtual ~ThumbnailAsideEffectConfig();
+ ~ThumbnailAsideEffectConfig() override;
- virtual void save();
+ void save() override;
private:
ThumbnailAsideEffectConfigForm* m_ui;
diff --git a/effects/touchpoints/touchpoints.h b/effects/touchpoints/touchpoints.h
index 15296514e..d5c168ed7 100644
--- a/effects/touchpoints/touchpoints.h
+++ b/effects/touchpoints/touchpoints.h
@@ -37,7 +37,7 @@ class TouchPointsEffect
Q_PROPERTY(int ringCount READ ringCount)
public:
TouchPointsEffect();
- ~TouchPointsEffect();
+ ~TouchPointsEffect() override;
void prePaintScreen(ScreenPrePaintData& data, int time) override;
void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
void postPaintScreen() override;
diff --git a/effects/trackmouse/trackmouse.h b/effects/trackmouse/trackmouse.h
index f2eb602ca..76f9ac9db 100644
--- a/effects/trackmouse/trackmouse.h
+++ b/effects/trackmouse/trackmouse.h
@@ -39,12 +39,12 @@ class TrackMouseEffect
Q_PROPERTY(bool mousePolling READ isMousePolling)
public:
TrackMouseEffect();
- virtual ~TrackMouseEffect();
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void postPaintScreen();
- virtual void reconfigure(ReconfigureFlags);
- virtual bool isActive() const;
+ ~TrackMouseEffect() override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void postPaintScreen() override;
+ void reconfigure(ReconfigureFlags) override;
+ bool isActive() const override;
// for properties
Qt::KeyboardModifiers modifiers() const {
diff --git a/effects/trackmouse/trackmouse_config.h b/effects/trackmouse/trackmouse_config.h
index 56f9a60db..7a6a8d3f1 100644
--- a/effects/trackmouse/trackmouse_config.h
+++ b/effects/trackmouse/trackmouse_config.h
@@ -43,12 +43,12 @@ class TrackMouseEffectConfig : public KCModule
Q_OBJECT
public:
explicit TrackMouseEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- ~TrackMouseEffectConfig();
+ ~TrackMouseEffectConfig() override;
public Q_SLOTS:
- virtual void save();
- virtual void load();
- virtual void defaults();
+ void save() override;
+ void load() override;
+ void defaults() override;
private Q_SLOTS:
void shortcutChanged(const QKeySequence &seq);
private:
diff --git a/effects/windowgeometry/windowgeometry.h b/effects/windowgeometry/windowgeometry.h
index 6c05550bb..3c98cb3da 100644
--- a/effects/windowgeometry/windowgeometry.h
+++ b/effects/windowgeometry/windowgeometry.h
@@ -33,14 +33,14 @@ class WindowGeometry : public Effect
Q_PROPERTY(bool handlesResizes READ isHandlesResizes)
public:
WindowGeometry();
- ~WindowGeometry();
+ ~WindowGeometry() override;
- inline bool provides(Effect::Feature ef) {
+ inline bool provides(Effect::Feature ef) override {
return ef == Effect::GeometryTip;
}
- void reconfigure(ReconfigureFlags);
- void paintScreen(int mask, QRegion region, ScreenPaintData &data);
- virtual bool isActive() const;
+ void reconfigure(ReconfigureFlags) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData &data) override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
return 90;
diff --git a/effects/windowgeometry/windowgeometry_config.h b/effects/windowgeometry/windowgeometry_config.h
index eaa49c43b..b45d30275 100644
--- a/effects/windowgeometry/windowgeometry_config.h
+++ b/effects/windowgeometry/windowgeometry_config.h
@@ -41,11 +41,11 @@ class WindowGeometryConfig : public KCModule
Q_OBJECT
public:
explicit WindowGeometryConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- ~WindowGeometryConfig();
+ ~WindowGeometryConfig() override;
public Q_SLOTS:
- void save();
- void defaults();
+ void save() override;
+ void defaults() override;
private:
WindowGeometryConfigForm* myUi;
diff --git a/effects/wobblywindows/wobblywindows.h b/effects/wobblywindows/wobblywindows.h
index 643cc75b3..8169cd739 100644
--- a/effects/wobblywindows/wobblywindows.h
+++ b/effects/wobblywindows/wobblywindows.h
@@ -44,14 +44,14 @@ class WobblyWindowsEffect : public Effect
public:
WobblyWindowsEffect();
- virtual ~WobblyWindowsEffect();
-
- virtual void reconfigure(ReconfigureFlags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time);
- virtual void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data);
- virtual void postPaintScreen();
- virtual bool isActive() const;
+ ~WobblyWindowsEffect() override;
+
+ void reconfigure(ReconfigureFlags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void prePaintWindow(EffectWindow* w, WindowPrePaintData& data, int time) override;
+ void paintWindow(EffectWindow* w, int mask, QRegion region, WindowPaintData& data) override;
+ void postPaintScreen() override;
+ bool isActive() const override;
int requestedEffectChainPosition() const override {
// Please notice that the Wobbly Windows effect has to be placed
diff --git a/effects/wobblywindows/wobblywindows_config.h b/effects/wobblywindows/wobblywindows_config.h
index 196246a5a..3dadb60fb 100644
--- a/effects/wobblywindows/wobblywindows_config.h
+++ b/effects/wobblywindows/wobblywindows_config.h
@@ -35,10 +35,10 @@ class WobblyWindowsEffectConfig : public KCModule
Q_OBJECT
public:
explicit WobblyWindowsEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- ~WobblyWindowsEffectConfig();
+ ~WobblyWindowsEffectConfig() override;
public Q_SLOTS:
- virtual void save();
+ void save() override;
private Q_SLOTS:
void wobblinessChanged();
diff --git a/effects/zoom/zoom.h b/effects/zoom/zoom.h
index 09bb3da57..153434121 100644
--- a/effects/zoom/zoom.h
+++ b/effects/zoom/zoom.h
@@ -46,12 +46,12 @@ class ZoomEffect
Q_PROPERTY(qreal targetZoom READ targetZoom)
public:
ZoomEffect();
- virtual ~ZoomEffect();
- virtual void reconfigure(ReconfigureFlags flags);
- virtual void prePaintScreen(ScreenPrePaintData& data, int time);
- virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data);
- virtual void postPaintScreen();
- virtual bool isActive() const;
+ ~ZoomEffect() override;
+ void reconfigure(ReconfigureFlags flags) override;
+ void prePaintScreen(ScreenPrePaintData& data, int time) override;
+ void paintScreen(int mask, QRegion region, ScreenPaintData& data) override;
+ void postPaintScreen() override;
+ bool isActive() const override;
// for properties
qreal configuredZoomFactor() const {
return zoomFactor;
diff --git a/effects/zoom/zoom_config.h b/effects/zoom/zoom_config.h
index b59aa55f0..c40c8be97 100644
--- a/effects/zoom/zoom_config.h
+++ b/effects/zoom/zoom_config.h
@@ -42,10 +42,10 @@ class ZoomEffectConfig : public KCModule
Q_OBJECT
public:
explicit ZoomEffectConfig(QWidget* parent = 0, const QVariantList& args = QVariantList());
- virtual ~ZoomEffectConfig();
+ ~ZoomEffectConfig() override;
public Q_SLOTS:
- virtual void save();
+ void save() override;
private:
ZoomEffectConfigForm* m_ui;
diff --git a/focuschain.h b/focuschain.h
index 662cffd07..91e834fa6 100644
--- a/focuschain.h
+++ b/focuschain.h
@@ -55,7 +55,7 @@ public:
Update,
MakeFirstMinimized = MakeFirst
};
- virtual ~FocusChain();
+ ~FocusChain() override;
/**
* @brief Updates the position of the @p client according to the requested @p change in the
* focus chain.
diff --git a/geometrytip.h b/geometrytip.h
index 8a8d5e317..e856b529f 100644
--- a/geometrytip.h
+++ b/geometrytip.h
@@ -32,7 +32,7 @@ class GeometryTip: public QLabel
Q_OBJECT
public:
GeometryTip(const Xcb::GeometryHints* xSizeHints);
- ~GeometryTip();
+ ~GeometryTip() override;
void setGeometry(const QRect& geom);
private:
diff --git a/globalshortcuts.h b/globalshortcuts.h
index 8efbca7a4..b64177d55 100644
--- a/globalshortcuts.h
+++ b/globalshortcuts.h
@@ -49,7 +49,7 @@ class GlobalShortcutsManager : public QObject
Q_OBJECT
public:
explicit GlobalShortcutsManager(QObject *parent = nullptr);
- virtual ~GlobalShortcutsManager();
+ ~GlobalShortcutsManager() override;
void init();
/**
@@ -149,7 +149,7 @@ public:
InternalGlobalShortcut(Qt::KeyboardModifiers pointerButtonModifiers, Qt::MouseButtons pointerButtons, QAction *action);
InternalGlobalShortcut(Qt::KeyboardModifiers axisModifiers, PointerAxisDirection axis, QAction *action);
InternalGlobalShortcut(Qt::KeyboardModifiers swipeModifier, SwipeDirection direction, QAction *action);
- virtual ~InternalGlobalShortcut();
+ ~InternalGlobalShortcut() override;
void invoke() override;
diff --git a/helpers/xclipboardsync/waylandclipboard.h b/helpers/xclipboardsync/waylandclipboard.h
index 2009959b5..dd9eed99e 100644
--- a/helpers/xclipboardsync/waylandclipboard.h
+++ b/helpers/xclipboardsync/waylandclipboard.h
@@ -41,7 +41,7 @@ class WaylandClipboard : public QObject
Q_OBJECT
public:
explicit WaylandClipboard(QObject *parent);
- ~WaylandClipboard();
+ ~WaylandClipboard() override;
private:
void setup();
diff --git a/idle_inhibition.h b/idle_inhibition.h
index a5f310e2b..1cdae7cd1 100644
--- a/idle_inhibition.h
+++ b/idle_inhibition.h
@@ -44,7 +44,7 @@ class IdleInhibition : public QObject
Q_OBJECT
public:
explicit IdleInhibition(IdleInterface *idle);
- ~IdleInhibition();
+ ~IdleInhibition() override;
void registerShellClient(ShellClient *client);
diff --git a/input.h b/input.h
index d32f814bf..90f52f4b9 100644
--- a/input.h
+++ b/input.h
@@ -85,7 +85,7 @@ public:
KeyboardKeyPressed,
KeyboardKeyAutoRepeat
};
- virtual ~InputRedirection();
+ ~InputRedirection() override;
void init();
/**
@@ -370,7 +370,7 @@ class KWIN_EXPORT InputDeviceHandler : public QObject
{
Q_OBJECT
public:
- virtual ~InputDeviceHandler();
+ ~InputDeviceHandler() override;
virtual void init();
void update();
diff --git a/kcmkwin/kwincompositing/compositing.h b/kcmkwin/kwincompositing/compositing.h
index 80c2815f7..0439e81b5 100644
--- a/kcmkwin/kwincompositing/compositing.h
+++ b/kcmkwin/kwincompositing/compositing.h
@@ -140,7 +140,7 @@ public:
int columnCount(const QModelIndex &parent = QModelIndex()) const override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
- virtual QHash< int, QByteArray > roleNames() const override;
+ QHash< int, QByteArray > roleNames() const override;
Q_INVOKABLE int compositingTypeForIndex(int row) const;
Q_INVOKABLE int indexForCompositingType(int type) const;
@@ -161,7 +161,7 @@ class OpenGLPlatformInterfaceModel : public QAbstractListModel
Q_OBJECT
public:
explicit OpenGLPlatformInterfaceModel(QObject *parent = nullptr);
- virtual ~OpenGLPlatformInterfaceModel();
+ ~OpenGLPlatformInterfaceModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
diff --git a/kcmkwin/kwincompositing/model.h b/kcmkwin/kwincompositing/model.h
index c0b4ad3d3..f08fb65ee 100644
--- a/kcmkwin/kwincompositing/model.h
+++ b/kcmkwin/kwincompositing/model.h
@@ -102,7 +102,7 @@ public Q_SLOTS:
void setFilter(const QString &filter);
protected:
- virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
+ bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
Q_SIGNALS:
void effectModelChanged();
diff --git a/kcmkwin/kwindecoration/declarative-plugin/buttonsmodel.h b/kcmkwin/kwindecoration/declarative-plugin/buttonsmodel.h
index 13f628dd6..1500e32e5 100644
--- a/kcmkwin/kwindecoration/declarative-plugin/buttonsmodel.h
+++ b/kcmkwin/kwindecoration/declarative-plugin/buttonsmodel.h
@@ -36,7 +36,7 @@ class ButtonsModel : public QAbstractListModel
public:
explicit ButtonsModel(const QVector< DecorationButtonType > &buttons, QObject *parent = 0);
explicit ButtonsModel(QObject *parent = nullptr);
- virtual ~ButtonsModel();
+ ~ButtonsModel() override;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
QHash< int, QByteArray > roleNames() const override;
diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewbridge.h b/kcmkwin/kwindecoration/declarative-plugin/previewbridge.h
index fe366eb42..7e1d8f3d4 100644
--- a/kcmkwin/kwindecoration/declarative-plugin/previewbridge.h
+++ b/kcmkwin/kwindecoration/declarative-plugin/previewbridge.h
@@ -45,7 +45,7 @@ class PreviewBridge : public DecorationBridge
Q_PROPERTY(bool valid READ isValid NOTIFY validChanged)
public:
explicit PreviewBridge(QObject *parent = nullptr);
- virtual ~PreviewBridge();
+ ~PreviewBridge() override;
std::unique_ptr<DecoratedClientPrivate> createClient(DecoratedClient *client, Decoration *decoration) override;
void update(Decoration* decoration, const QRect& geometry) override;
std::unique_ptr<DecorationSettingsPrivate> settings(DecorationSettings *parent) override;
@@ -99,7 +99,7 @@ class BridgeItem : public QObject
public:
explicit BridgeItem(QObject *parent = nullptr);
- virtual ~BridgeItem();
+ ~BridgeItem() override;
void setPlugin(const QString &plugin) {
m_bridge->setPlugin(plugin);
diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewbutton.h b/kcmkwin/kwindecoration/declarative-plugin/previewbutton.h
index 0afdf301b..cc536c7ab 100644
--- a/kcmkwin/kwindecoration/declarative-plugin/previewbutton.h
+++ b/kcmkwin/kwindecoration/declarative-plugin/previewbutton.h
@@ -42,7 +42,7 @@ class PreviewButtonItem : public QQuickPaintedItem
public:
explicit PreviewButtonItem(QQuickItem *parent = nullptr);
- virtual ~PreviewButtonItem();
+ ~PreviewButtonItem() override;
void paint(QPainter *painter) override;
PreviewBridge *bridge() const;
diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h
index df3608393..ced66cade 100644
--- a/kcmkwin/kwindecoration/declarative-plugin/previewclient.h
+++ b/kcmkwin/kwindecoration/declarative-plugin/previewclient.h
@@ -64,7 +64,7 @@ class PreviewClient : public QObject, public ApplicationMenuEnabledDecoratedClie
Q_PROPERTY(bool bordersBottomEdge READ bordersBottomEdge WRITE setBordersBottomEdge NOTIFY bordersBottomEdgeChanged)
public:
explicit PreviewClient(DecoratedClient *client, Decoration *decoration);
- virtual ~PreviewClient();
+ ~PreviewClient() override;
QString caption() const override;
WId decorationId() const override;
@@ -110,7 +110,7 @@ public:
void requestShowApplicationMenu(const QRect &rect, int actionId) override;
void requestToggleOnAllDesktops() override;
- void showApplicationMenu(int actionId);
+ void showApplicationMenu(int actionId) override;
void setCaption(const QString &caption);
void setActive(bool active);
diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewitem.h b/kcmkwin/kwindecoration/declarative-plugin/previewitem.h
index e052751ef..cd9ed6dad 100644
--- a/kcmkwin/kwindecoration/declarative-plugin/previewitem.h
+++ b/kcmkwin/kwindecoration/declarative-plugin/previewitem.h
@@ -47,8 +47,8 @@ class PreviewItem : public QQuickPaintedItem
Q_PROPERTY(bool drawBackground READ isDrawingBackground WRITE setDrawingBackground NOTIFY drawingBackgroundChanged)
public:
PreviewItem(QQuickItem *parent = nullptr);
- virtual ~PreviewItem();
- void paint(QPainter *painter);
+ ~PreviewItem() override;
+ void paint(QPainter *painter) override;
KDecoration2::Decoration *decoration() const;
void setDecoration(KDecoration2::Decoration *deco);
diff --git a/kcmkwin/kwindecoration/declarative-plugin/previewsettings.h b/kcmkwin/kwindecoration/declarative-plugin/previewsettings.h
index dcebdabcc..f206e79ff 100644
--- a/kcmkwin/kwindecoration/declarative-plugin/previewsettings.h
+++ b/kcmkwin/kwindecoration/declarative-plugin/previewsettings.h
@@ -38,7 +38,7 @@ class BorderSizesModel : public QAbstractListModel
Q_OBJECT
public:
explicit BorderSizesModel(QObject *parent = 0);
- virtual ~BorderSizesModel();
+ ~BorderSizesModel() override;
QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex& parent = QModelIndex()) const override;
QHash< int, QByteArray > roleNames() const override;
@@ -70,7 +70,7 @@ class PreviewSettings : public QObject, public DecorationSettingsPrivate
Q_PROPERTY(QFont font READ font WRITE setFont NOTIFY fontChanged)
public:
explicit PreviewSettings(DecorationSettings *parent);
- virtual ~PreviewSettings();
+ ~PreviewSettings() override;
bool isAlphaChannelSupported() const override;
bool isOnAllDesktopsAvailable() const override;
bool isCloseOnDoubleClickOnMenu() const override {
@@ -100,7 +100,7 @@ public:
}
void setBorderSizesIndex(int index);
- QFont font() const {
+ QFont font() const override {
return m_font;
}
void setFont(const QFont &font);
@@ -132,7 +132,7 @@ class Settings : public QObject
Q_PROPERTY(int borderSizesIndex READ borderSizesIndex WRITE setBorderSizesIndex NOTIFY borderSizesIndexChanged)
public:
explicit Settings(QObject *parent = nullptr);
- virtual ~Settings();
+ ~Settings() override;
PreviewBridge *bridge() const;
void setBridge(PreviewBridge *bridge);
diff --git a/kcmkwin/kwindecoration/decorationmodel.h b/kcmkwin/kwindecoration/decorationmodel.h
index 41af88d3e..ec81ada3d 100644
--- a/kcmkwin/kwindecoration/decorationmodel.h
+++ b/kcmkwin/kwindecoration/decorationmodel.h
@@ -33,7 +33,7 @@ class DecorationsModel : public QAbstractListModel
Q_OBJECT
public:
explicit DecorationsModel(QObject *parent = nullptr);
- virtual ~DecorationsModel();
+ ~DecorationsModel() override;
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
diff --git a/kcmkwin/kwindecoration/kcm.h b/kcmkwin/kwindecoration/kcm.h
index 99fa43114..5ccaa99cf 100644
--- a/kcmkwin/kwindecoration/kcm.h
+++ b/kcmkwin/kwindecoration/kcm.h
@@ -49,7 +49,7 @@ class ConfigurationModule : public KCModule
Q_OBJECT
public:
explicit ConfigurationModule(QWidget *parent = nullptr, const QVariantList &args = QVariantList());
- virtual ~ConfigurationModule();
+ ~ConfigurationModule() override;
bool eventFilter(QObject *watched, QEvent *e) override;
diff --git a/kcmkwin/kwinoptions/main.h b/kcmkwin/kwinoptions/main.h
index b7f28df99..0d8879d74 100644
--- a/kcmkwin/kwinoptions/main.h
+++ b/kcmkwin/kwinoptions/main.h
@@ -42,12 +42,12 @@ class KWinOptions : public KCModule
public:
KWinOptions(QWidget *parent, const QVariantList &args);
- virtual ~KWinOptions();
+ ~KWinOptions() override;
- void load();
- void save();
- void defaults();
- QString quickHelp() const;
+ void load() override;
+ void save() override;
+ void defaults() override;
+ QString quickHelp() const override;
protected Q_SLOTS:
@@ -75,11 +75,11 @@ class KActionsOptions : public KCModule
public:
KActionsOptions(QWidget *parent, const QVariantList &args);
- virtual ~KActionsOptions();
+ ~KActionsOptions() override;
- void load();
- void save();
- void defaults();
+ void load() override;
+ void save() override;
+ void defaults() override;
protected Q_SLOTS:
diff --git a/kcmkwin/kwinoptions/mouse.h b/kcmkwin/kwinoptions/mouse.h
index c7a1e3c11..1dee6eb34 100644
--- a/kcmkwin/kwinoptions/mouse.h
+++ b/kcmkwin/kwinoptions/mouse.h
@@ -54,15 +54,15 @@ class KTitleBarActionsConfig : public KCModule
public:
KTitleBarActionsConfig(bool _standAlone, KConfig *_config, QWidget *parent);
- ~KTitleBarActionsConfig();
+ ~KTitleBarActionsConfig() override;
- void load();
- void save();
- void defaults();
+ void load() override;
+ void save() override;
+ void defaults() override;
protected:
- void showEvent(QShowEvent *ev);
- void changeEvent(QEvent *ev);
+ void showEvent(QShowEvent *ev) override;
+ void changeEvent(QEvent *ev) override;
public Q_SLOTS:
void changed() {
@@ -98,14 +98,14 @@ class KWindowActionsConfig : public KCModule
public:
KWindowActionsConfig(bool _standAlone, KConfig *_config, QWidget *parent);
- ~KWindowActionsConfig();
+ ~KWindowActionsConfig() override;
- void load();
- void save();
- void defaults();
+ void load() override;
+ void save() override;
+ void defaults() override;
protected:
- void showEvent(QShowEvent *ev);
+ void showEvent(QShowEvent *ev) override;
public Q_SLOTS:
void changed() {
diff --git a/kcmkwin/kwinoptions/windows.h b/kcmkwin/kwinoptions/windows.h
index 959afacfb..0de3a215d 100644
--- a/kcmkwin/kwinoptions/windows.h
+++ b/kcmkwin/kwinoptions/windows.h
@@ -71,14 +71,14 @@ class KFocusConfig : public KCModule
Q_OBJECT
public:
KFocusConfig(bool _standAlone, KConfig *_config, QWidget *parent);
- ~KFocusConfig();
+ ~KFocusConfig() override;
- void load();
- void save();
- void defaults();
+ void load() override;
+ void save() override;
+ void defaults() override;
protected:
- void showEvent(QShowEvent *ev);
+ void showEvent(QShowEvent *ev) override;
private Q_SLOTS:
void setDelayFocusEnabled();
@@ -119,14 +119,14 @@ class KMovingConfig : public KCModule
Q_OBJECT
public:
KMovingConfig(bool _standAlone, KConfig *config, QWidget *parent);
- ~KMovingConfig();
+ ~KMovingConfig() override;
- void load();
- void save();
- void defaults();
+ void load() override;
+ void save() override;
+ void defaults() override;
protected:
- void showEvent(QShowEvent *ev);
+ void showEvent(QShowEvent *ev) override;
private Q_SLOTS:
void changed() {
@@ -156,14 +156,14 @@ class KAdvancedConfig : public KCModule
Q_OBJECT
public:
KAdvancedConfig(bool _standAlone, KConfig *config, QWidget *parent);
- ~KAdvancedConfig();
+ ~KAdvancedConfig() override;
- void load();
- void save();
- void defaults();
+ void load() override;
+ void save() override;
+ void defaults() override;
protected:
- void showEvent(QShowEvent *ev);
+ void showEvent(QShowEvent *ev) override;
private Q_SLOTS:
void shadeHoverChanged(bool);
diff --git a/kcmkwin/kwinrules/kcm.h b/kcmkwin/kwinrules/kcm.h
index f804ee9d5..cb1f48dd8 100644
--- a/kcmkwin/kwinrules/kcm.h
+++ b/kcmkwin/kwinrules/kcm.h
@@ -36,10 +36,10 @@ class KCMRules
Q_OBJECT
public:
KCMRules(QWidget *parent, const QVariantList &args);
- virtual void load();
- virtual void save();
- virtual void defaults();
- virtual QString quickHelp() const;
+ void load() override;
+ void save() override;
+ void defaults() override;
+ QString quickHelp() const override;
protected Q_SLOTS:
void moduleChanged(bool state);
private:
diff --git a/kcmkwin/kwinrules/ruleslist.h b/kcmkwin/kwinrules/ruleslist.h
index eb9a1ad1a..c480d1081 100644
--- a/kcmkwin/kwinrules/ruleslist.h
+++ b/kcmkwin/kwinrules/ruleslist.h
@@ -33,7 +33,7 @@ class KCMRulesList
Q_OBJECT
public:
explicit KCMRulesList(QWidget* parent = nullptr);
- virtual ~KCMRulesList();
+ ~KCMRulesList() override;
void load();
void save();
void defaults();
diff --git a/kcmkwin/kwinrules/ruleswidget.h b/kcmkwin/kwinrules/ruleswidget.h
index 6c1253d4c..feaf1a221 100644
--- a/kcmkwin/kwinrules/ruleswidget.h
+++ b/kcmkwin/kwinrules/ruleswidget.h
@@ -129,7 +129,7 @@ public:
explicit RulesDialog(QWidget* parent = nullptr, const char* name = nullptr);
Rules* edit(Rules* r, const QVariantMap& info, bool show_hints);
protected:
- virtual void accept();
+ void accept() override;
private Q_SLOTS:
void displayHints();
private:
@@ -167,7 +167,7 @@ class ShortcutDialog
Q_OBJECT
public:
explicit ShortcutDialog(const QKeySequence& cut, QWidget* parent = nullptr);
- virtual void accept();
+ void accept() override;
QKeySequence shortcut() const;
private:
KKeySequenceWidget* widget;
diff --git a/kcmkwin/kwinscreenedges/main.h b/kcmkwin/kwinscreenedges/main.h
index 4b7eb4fb5..00b1f01d6 100644
--- a/kcmkwin/kwinscreenedges/main.h
+++ b/kcmkwin/kwinscreenedges/main.h
@@ -48,15 +48,15 @@ class KWinScreenEdgesConfig : public KCModule
public:
explicit KWinScreenEdgesConfig(QWidget* parent, const QVariantList& args);
- ~KWinScreenEdgesConfig();
+ ~KWinScreenEdgesConfig() override;
public Q_SLOTS:
virtual void groupChanged();
- virtual void save();
- virtual void load();
- virtual void defaults();
+ void save() override;
+ void load() override;
+ void defaults() override;
protected:
- virtual void showEvent(QShowEvent* e);
+ void showEvent(QShowEvent* e) override;
private Q_SLOTS:
void sanitizeCooldown();
private:
diff --git a/kcmkwin/kwinscreenedges/monitor.h b/kcmkwin/kwinscreenedges/monitor.h
index 919937da8..0ae079894 100644
--- a/kcmkwin/kwinscreenedges/monitor.h
+++ b/kcmkwin/kwinscreenedges/monitor.h
@@ -72,7 +72,7 @@ Q_SIGNALS:
void changed();
void edgeSelectionChanged(int edge, int index);
protected:
- virtual void resizeEvent(QResizeEvent* e);
+ void resizeEvent(QResizeEvent* e) override;
private:
class Corner;
void popup(Corner* c, QPoint pos);
@@ -92,15 +92,15 @@ class Monitor::Corner
{
public:
Corner(Monitor* m);
- ~Corner();
+ ~Corner() override;
void setActive(bool active);
bool active() const;
protected:
- virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* e);
- virtual void mousePressEvent(QGraphicsSceneMouseEvent* e);
- virtual void hoverEnterEvent(QGraphicsSceneHoverEvent * e);
- virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent * e);
- virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0);
+ void contextMenuEvent(QGraphicsSceneContextMenuEvent* e) override;
+ void mousePressEvent(QGraphicsSceneMouseEvent* e) override;
+ void hoverEnterEvent(QGraphicsSceneHoverEvent * e) override;
+ void hoverLeaveEvent(QGraphicsSceneHoverEvent * e) override;
+ void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0) override;
private:
Monitor* monitor;
Plasma::FrameSvg *button;
diff --git a/kcmkwin/kwinscreenedges/screenpreviewwidget.h b/kcmkwin/kwinscreenedges/screenpreviewwidget.h
index 470d31456..02c5984f9 100644
--- a/kcmkwin/kwinscreenedges/screenpreviewwidget.h
+++ b/kcmkwin/kwinscreenedges/screenpreviewwidget.h
@@ -31,7 +31,7 @@ class ScreenPreviewWidget : public QWidget
public:
ScreenPreviewWidget(QWidget *parent);
- ~ScreenPreviewWidget();
+ ~ScreenPreviewWidget() override;
void setPreview(const QPixmap &preview);
const QPixmap preview() const;
@@ -41,9 +41,9 @@ public:
QRect previewRect() const;
protected:
- void resizeEvent(QResizeEvent *event);
- void paintEvent(QPaintEvent *event);
- virtual void dropEvent(QDropEvent *event);
+ void resizeEvent(QResizeEvent *event) override;
+ void paintEvent(QPaintEvent *event) override;
+ void dropEvent(QDropEvent *event) override;
Q_SIGNALS:
void imageDropped(const QString &);
diff --git a/kcmkwin/kwinscreenedges/touch.h b/kcmkwin/kwinscreenedges/touch.h
index 8fc61e33a..92c47d9bf 100644
--- a/kcmkwin/kwinscreenedges/touch.h
+++ b/kcmkwin/kwinscreenedges/touch.h
@@ -48,14 +48,14 @@ class KWinScreenEdgesConfig : public KCModule
public:
explicit KWinScreenEdgesConfig(QWidget* parent, const QVariantList& args);
- ~KWinScreenEdgesConfig();
+ ~KWinScreenEdgesConfig() override;
public Q_SLOTS:
- virtual void save();
- virtual void load();
- virtual void defaults();
+ void save() override;
+ void load() override;
+ void defaults() override;
protected:
- virtual void showEvent(QShowEvent* e);
+ void showEvent(QShowEvent* e) override;
private:
KWinScreenEdgesConfigForm* m_ui;
KSharedConfigPtr m_config;
diff --git a/kcmkwin/kwinscripts/module.h b/kcmkwin/kwinscripts/module.h
index a7017d3ee..983d37b4a 100644
--- a/kcmkwin/kwinscripts/module.h
+++ b/kcmkwin/kwinscripts/module.h
@@ -44,10 +44,10 @@ public:
/**
* Destructor.
*/
- ~Module();
- virtual void load();
- virtual void save();
- virtual void defaults();
+ ~Module() override;
+ void load() override;
+ void save() override;
+ void defaults() override;
protected Q_SLOTS:
diff --git a/kcmkwin/kwintabbox/layoutpreview.h b/kcmkwin/kwintabbox/layoutpreview.h
index 9a7d65ef5..5b4c1a746 100644
--- a/kcmkwin/kwintabbox/layoutpreview.h
+++ b/kcmkwin/kwintabbox/layoutpreview.h
@@ -38,9 +38,9 @@ class LayoutPreview : public QObject
Q_OBJECT
public:
explicit LayoutPreview(const QString &path, QObject *parent = nullptr);
- virtual ~LayoutPreview();
+ ~LayoutPreview() override;
- virtual bool eventFilter(QObject *object, QEvent *event) override;
+ bool eventFilter(QObject *object, QEvent *event) override;
private:
SwitcherItem *m_item;
};
@@ -50,10 +50,10 @@ class ExampleClientModel : public QAbstractListModel
Q_OBJECT
public:
explicit ExampleClientModel(QObject *parent = nullptr);
- virtual ~ExampleClientModel();
+ ~ExampleClientModel() override;
- virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
- virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
Q_INVOKABLE QString longestCaption() const;
private:
@@ -83,7 +83,7 @@ class SwitcherItem : public QObject
Q_CLASSINFO("DefaultProperty", "item")
public:
SwitcherItem(QObject *parent = nullptr);
- virtual ~SwitcherItem();
+ ~SwitcherItem() override;
QAbstractItemModel *model() const;
QRect screenGeometry() const;
diff --git a/kcmkwin/kwintabbox/main.h b/kcmkwin/kwintabbox/main.h
index d454e26e3..e167e8345 100644
--- a/kcmkwin/kwintabbox/main.h
+++ b/kcmkwin/kwintabbox/main.h
@@ -54,12 +54,12 @@ class KWinTabBoxConfig : public KCModule
public:
explicit KWinTabBoxConfig(QWidget* parent, const QVariantList& args);
- ~KWinTabBoxConfig();
+ ~KWinTabBoxConfig() override;
public Q_SLOTS:
- virtual void save();
- virtual void load();
- virtual void defaults();
+ void save() override;
+ void load() override;
+ void defaults() override;
private Q_SLOTS:
void effectSelectionChanged(int index);
diff --git a/kcmkwin/kwintabbox/thumbnailitem.h b/kcmkwin/kwintabbox/thumbnailitem.h
index 070fe399b..a5acf11a0 100644
--- a/kcmkwin/kwintabbox/thumbnailitem.h
+++ b/kcmkwin/kwintabbox/thumbnailitem.h
@@ -32,11 +32,11 @@ class BrightnessSaturationShader : public QSGMaterialShader
{
public:
BrightnessSaturationShader();
- virtual const char* vertexShader() const override;
- virtual const char* fragmentShader() const override;
- virtual const char*const* attributeNames() const override;
- virtual void updateState(const RenderState& state, QSGMaterial* newMaterial, QSGMaterial* oldMaterial) override;
- virtual void initialize() override;
+ const char* vertexShader() const override;
+ const char* fragmentShader() const override;
+ const char*const* attributeNames() const override;
+ void updateState(const RenderState& state, QSGMaterial* newMaterial, QSGMaterial* oldMaterial) override;
+ void initialize() override;
private:
int m_id_matrix;
int m_id_opacity;
@@ -47,7 +47,7 @@ private:
class BrightnessSaturationMaterial : public QSGTextureMaterial
{
public:
- virtual QSGMaterialShader* createShader() const override {
+ QSGMaterialShader* createShader() const override {
return new BrightnessSaturationShader;
}
QSGMaterialType *type() const override {
@@ -67,7 +67,7 @@ class WindowThumbnailItem : public QQuickItem
Q_PROPERTY(qreal saturation READ saturation WRITE setSaturation NOTIFY saturationChanged)
public:
explicit WindowThumbnailItem(QQuickItem *parent = nullptr);
- virtual ~WindowThumbnailItem();
+ ~WindowThumbnailItem() override;
qulonglong wId() const {
return m_wId;
@@ -81,7 +81,7 @@ public:
void setClipTo(QQuickItem *clip);
void setBrightness(qreal brightness);
void setSaturation(qreal saturation);
- virtual QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) override;
+ QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *updatePaintNodeData) override;
enum Thumbnail {
Konqueror = 1,
diff --git a/keyboard_input.h b/keyboard_input.h
index 83a60c0ed..9cc244b4d 100644
--- a/keyboard_input.h
+++ b/keyboard_input.h
@@ -58,7 +58,7 @@ class KWIN_EXPORT KeyboardInputRedirection : public QObject
Q_OBJECT
public:
explicit KeyboardInputRedirection(InputRedirection *parent);
- virtual ~KeyboardInputRedirection();
+ ~KeyboardInputRedirection() override;
void init();
diff --git a/keyboard_layout_switching.h b/keyboard_layout_switching.h
index 4e21fee80..5b5882b52 100644
--- a/keyboard_layout_switching.h
+++ b/keyboard_layout_switching.h
@@ -38,7 +38,7 @@ class Policy : public QObject
{
Q_OBJECT
public:
- virtual ~Policy();
+ ~Policy() override;
virtual QString name() const = 0;
diff --git a/lanczosfilter.h b/lanczosfilter.h
index 90dff420c..59cc54c9b 100644
--- a/lanczosfilter.h
+++ b/lanczosfilter.h
@@ -48,11 +48,11 @@ class KWIN_EXPORT LanczosFilter
public:
explicit LanczosFilter(QObject* parent = 0);
- ~LanczosFilter();
+ ~LanczosFilter() override;
void performPaint(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data);
protected:
- virtual void timerEvent(QTimerEvent*);
+ void timerEvent(QTimerEvent*) override;
private:
void init();
void updateOffscreenSurfaces();
diff --git a/libinput/connection.cpp b/libinput/connection.cpp
index 7664659d6..bb6ffd9b0 100644
--- a/libinput/connection.cpp
+++ b/libinput/connection.cpp
@@ -66,7 +66,7 @@ public:
);
}
- ~ConnectionAdaptor() {
+ ~ConnectionAdaptor() override {
QDBusConnection::sessionBus().unregisterObject(QStringLiteral("/org/kde/KWin/InputDeviceManager"));
}
diff --git a/libinput/connection.h b/libinput/connection.h
index 44495ed19..0cac0a895 100644
--- a/libinput/connection.h
+++ b/libinput/connection.h
@@ -48,7 +48,7 @@ class Connection : public QObject
Q_OBJECT
public:
- ~Connection();
+ ~Connection() override;
void setInputConfig(const KSharedConfigPtr &config) {
m_config = config;
diff --git a/libinput/device.h b/libinput/device.h
index e325a2943..2d5d7bfd1 100644
--- a/libinput/device.h
+++ b/libinput/device.h
@@ -140,7 +140,7 @@ class Device : public QObject
public:
explicit Device(libinput_device *device, QObject *parent = nullptr);
- virtual ~Device();
+ ~Device() override;
bool isKeyboard() const {
return m_keyboard;
diff --git a/libinput/events.h b/libinput/events.h
index c16fae2dd..21964170e 100644
--- a/libinput/events.h
+++ b/libinput/events.h
@@ -62,7 +62,7 @@ class KeyEvent : public Event
{
public:
KeyEvent(libinput_event *event);
- virtual ~KeyEvent();
+ ~KeyEvent() override;
uint32_t key() const;
InputRedirection::KeyboardKeyState state() const;
@@ -83,7 +83,7 @@ class PointerEvent : public Event
{
public:
PointerEvent(libinput_event* event, libinput_event_type type);
- virtual ~PointerEvent();
+ ~PointerEvent() override;
QPointF absolutePos() const;
QPointF absolutePos(const QSize &size) const;
@@ -111,7 +111,7 @@ class TouchEvent : public Event
{
public:
TouchEvent(libinput_event *event, libinput_event_type type);
- virtual ~TouchEvent();
+ ~TouchEvent() override;
quint32 time() const;
QPointF absolutePos() const;
@@ -132,7 +132,7 @@ private:
class GestureEvent : public Event
{
public:
- virtual ~GestureEvent();
+ ~GestureEvent() override;
quint32 time() const;
int fingerCount() const;
@@ -157,7 +157,7 @@ class PinchGestureEvent : public GestureEvent
{
public:
PinchGestureEvent(libinput_event *event, libinput_event_type type);
- virtual ~PinchGestureEvent();
+ ~PinchGestureEvent() override;
qreal scale() const;
qreal angleDelta() const;
@@ -167,7 +167,7 @@ class SwipeGestureEvent : public GestureEvent
{
public:
SwipeGestureEvent(libinput_event *event, libinput_event_type type);
- virtual ~SwipeGestureEvent();
+ ~SwipeGestureEvent() override;
};
class SwitchEvent : public Event
diff --git a/libkwineffects/kwinanimationeffect.h b/libkwineffects/kwinanimationeffect.h
index a1c904f8b..567d28407 100644
--- a/libkwineffects/kwinanimationeffect.h
+++ b/libkwineffects/kwinanimationeffect.h
@@ -179,9 +179,9 @@ public:
* after _windowClosed was connected, animations for closing windows will fail.
**/
AnimationEffect();
- ~AnimationEffect();
+ ~AnimationEffect() override;
- bool isActive() const;
+ bool isActive() const override;
/**
* Gets stored metadata.
@@ -210,11 +210,11 @@ public:
static void setMetaData(MetaType type, uint value, uint &meta );
// Reimplemented from KWin::Effect.
- QString debug(const QString &parameter) const;
- virtual void prePaintScreen( ScreenPrePaintData& data, int time );
- virtual void prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time );
- virtual void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data );
- virtual void postPaintScreen();
+ QString debug(const QString &parameter) const override;
+ void prePaintScreen( ScreenPrePaintData& data, int time ) override;
+ void prePaintWindow( EffectWindow* w, WindowPrePaintData& data, int time ) override;
+ void paintWindow( EffectWindow* w, int mask, QRegion region, WindowPaintData& data ) override;
+ void postPaintScreen() override;
/**
* Gaussian (bumper) animation curve for QEasingCurve.
diff --git a/libkwineffects/kwineffects.h b/libkwineffects/kwineffects.h
index 1713c2bd0..f0762eae1 100644
--- a/libkwineffects/kwineffects.h
+++ b/libkwineffects/kwineffects.h
@@ -382,7 +382,7 @@ public:
* In OpenGL based compositing, the frameworks ensures that the context is current
* when the Effect is destroyed.
**/
- virtual ~Effect();
+ ~Effect() override;
/**
* Flags describing which parts of configuration have changed.
@@ -695,7 +695,7 @@ class KWINEFFECTS_EXPORT EffectPluginFactory : public KPluginFactory
Q_OBJECT
public:
EffectPluginFactory();
- virtual ~EffectPluginFactory();
+ ~EffectPluginFactory() override;
/**
* Returns whether the Effect is supported.
*
@@ -829,7 +829,7 @@ class KWINEFFECTS_EXPORT EffectsHandler : public QObject
friend class Effect;
public:
explicit EffectsHandler(CompositingType type);
- virtual ~EffectsHandler();
+ ~EffectsHandler() override;
// for use by effects
virtual void prePaintScreen(ScreenPrePaintData& data, int time) = 0;
virtual void paintScreen(int mask, QRegion region, ScreenPaintData& data) = 0;
@@ -2059,7 +2059,7 @@ public:
};
explicit EffectWindow(QObject *parent = nullptr);
- virtual ~EffectWindow();
+ ~EffectWindow() override;
virtual void enablePainting(int reason) = 0;
virtual void disablePainting(int reason) = 0;
@@ -2666,7 +2666,7 @@ public:
explicit WindowPaintData(EffectWindow* w);
explicit WindowPaintData(EffectWindow* w, const QMatrix4x4 &screenProjectionMatrix);
WindowPaintData(const WindowPaintData &other);
- virtual ~WindowPaintData();
+ ~WindowPaintData() override;
/**
* Scales the window by @p scale factor.
* Multiplies all three components by the given factor.
@@ -2866,7 +2866,7 @@ public:
ScreenPaintData();
ScreenPaintData(const QMatrix4x4 &projectionMatrix, const QRect &outputGeometry = QRect());
ScreenPaintData(const ScreenPaintData &other);
- virtual ~ScreenPaintData();
+ ~ScreenPaintData() override;
/**
* Scales the screen by @p scale factor.
* Multiplies all three components by the given factor.
diff --git a/logind.h b/logind.h
index 40e3c4f70..c5ff17274 100644
--- a/logind.h
+++ b/logind.h
@@ -34,7 +34,7 @@ class KWIN_EXPORT LogindIntegration : public QObject
{
Q_OBJECT
public:
- ~LogindIntegration();
+ ~LogindIntegration() override;
bool isConnected() const {
return m_connected;
diff --git a/main.h b/main.h
index 166c35fe1..bd4a422f2 100644
--- a/main.h
+++ b/main.h
@@ -44,7 +44,7 @@ class Platform;
class XcbEventFilter : public QAbstractNativeEventFilter
{
public:
- virtual bool nativeEventFilter(const QByteArray &eventType, void *message, long int *result) override;
+ bool nativeEventFilter(const QByteArray &eventType, void *message, long int *result) override;
};
class KWIN_EXPORT Application : public QApplication
@@ -78,7 +78,7 @@ public:
**/
OperationModeXwayland
};
- virtual ~Application();
+ ~Application() override;
void setConfigLock(bool lock);
diff --git a/main_wayland.h b/main_wayland.h
index 31b7ebd55..4e2906b76 100644
--- a/main_wayland.h
+++ b/main_wayland.h
@@ -32,7 +32,7 @@ class ApplicationWayland : public Application
Q_OBJECT
public:
ApplicationWayland(int &argc, char **argv);
- virtual ~ApplicationWayland();
+ ~ApplicationWayland() override;
void setStartXwayland(bool start) {
m_startXWayland = start;
diff --git a/main_x11.h b/main_x11.h
index 2d8e4c6df..965c251e1 100644
--- a/main_x11.h
+++ b/main_x11.h
@@ -31,9 +31,9 @@ class KWinSelectionOwner
public:
explicit KWinSelectionOwner(int screen);
protected:
- virtual bool genericReply(xcb_atom_t target, xcb_atom_t property, xcb_window_t requestor);
- virtual void replyTargets(xcb_atom_t property, xcb_window_t requestor);
- virtual void getAtoms();
+ bool genericReply(xcb_atom_t target, xcb_atom_t property, xcb_window_t requestor) override;
+ void replyTargets(xcb_atom_t property, xcb_window_t requestor) override;
+ void getAtoms() override;
private:
xcb_atom_t make_selection_atom(int screen);
static xcb_atom_t xa_version;
@@ -44,7 +44,7 @@ class ApplicationX11 : public Application
Q_OBJECT
public:
ApplicationX11(int &argc, char **argv);
- virtual ~ApplicationX11();
+ ~ApplicationX11() override;
void setReplace(bool replace);
diff --git a/netinfo.h b/netinfo.h
index 94939de35..a6ee95083 100644
--- a/netinfo.h
+++ b/netinfo.h
@@ -50,15 +50,15 @@ public:
void setActiveClient(AbstractClient *client);
protected:
- virtual void changeNumberOfDesktops(int n) override;
- virtual void changeCurrentDesktop(int d) override;
- virtual void changeActiveWindow(xcb_window_t w, NET::RequestSource src, xcb_timestamp_t timestamp, xcb_window_t active_window) override;
- virtual void closeWindow(xcb_window_t w) override;
- virtual void moveResize(xcb_window_t w, int x_root, int y_root, unsigned long direction) override;
- virtual void moveResizeWindow(xcb_window_t w, int flags, int x, int y, int width, int height) override;
- virtual void gotPing(xcb_window_t w, xcb_timestamp_t timestamp) override;
- virtual void restackWindow(xcb_window_t w, RequestSource source, xcb_window_t above, int detail, xcb_timestamp_t timestamp) override;
- virtual void changeShowingDesktop(bool showing) override;
+ void changeNumberOfDesktops(int n) override;
+ void changeCurrentDesktop(int d) override;
+ void changeActiveWindow(xcb_window_t w, NET::RequestSource src, xcb_timestamp_t timestamp, xcb_window_t active_window) override;
+ void closeWindow(xcb_window_t w) override;
+ void moveResize(xcb_window_t w, int x_root, int y_root, unsigned long direction) override;
+ void moveResizeWindow(xcb_window_t w, int flags, int x, int y, int width, int height) override;
+ void gotPing(xcb_window_t w, xcb_timestamp_t timestamp) override;
+ void restackWindow(xcb_window_t w, RequestSource source, xcb_window_t above, int detail, xcb_timestamp_t timestamp) override;
+ void changeShowingDesktop(bool showing) override;
private:
RootInfo(xcb_window_t w, const char* name, NET::Properties properties, NET::WindowTypes types,
@@ -86,9 +86,9 @@ private:
public:
WinInfo(Client* c, xcb_window_t window,
xcb_window_t rwin, NET::Properties properties, NET::Properties2 properties2);
- virtual void changeDesktop(int desktop) override;
- virtual void changeFullscreenMonitors(NETFullscreenMonitors topology) override;
- virtual void changeState(NET::States state, NET::States mask) override;
+ void changeDesktop(int desktop) override;
+ void changeFullscreenMonitors(NETFullscreenMonitors topology) override;
+ void changeState(NET::States state, NET::States mask) override;
void disable();
private:
diff --git a/options.h b/options.h
index 71f3b2dff..1d4e58711 100644
--- a/options.h
+++ b/options.h
@@ -193,7 +193,7 @@ class KWIN_EXPORT Options : public QObject
public:
explicit Options(QObject *parent = NULL);
- ~Options();
+ ~Options() override;
void updateSettings();
diff --git a/orientation_sensor.h b/orientation_sensor.h
index 29b2ef703..e343d6f97 100644
--- a/orientation_sensor.h
+++ b/orientation_sensor.h
@@ -39,7 +39,7 @@ class KWIN_EXPORT OrientationSensor : public QObject
Q_PROPERTY(bool userEnabled READ isUserEnabled WRITE setUserEnabled NOTIFY userEnabledChanged)
public:
explicit OrientationSensor(QObject *parent = nullptr);
- ~OrientationSensor();
+ ~OrientationSensor() override;
void setEnabled(bool enabled);
diff --git a/outline.h b/outline.h
index 163216bf8..c1e402b48 100644
--- a/outline.h
+++ b/outline.h
@@ -50,7 +50,7 @@ class Outline : public QObject {
Q_PROPERTY(QRect unifiedGeometry READ unifiedGeometry NOTIFY unifiedGeometryChanged)
Q_PROPERTY(bool active READ isActive NOTIFY activeChanged)
public:
- ~Outline();
+ ~Outline() override;
/**
* Set the outline geometry.
@@ -144,9 +144,9 @@ class CompositedOutlineVisual : public OutlineVisual
{
public:
CompositedOutlineVisual(Outline *outline);
- virtual ~CompositedOutlineVisual();
- virtual void show();
- virtual void hide();
+ ~CompositedOutlineVisual() override;
+ void show() override;
+ void hide() override;
private:
QScopedPointer<QQmlContext> m_qmlContext;
QScopedPointer<QQmlComponent> m_qmlComponent;
diff --git a/outputscreens.h b/outputscreens.h
index 56f8f4c0d..f2853d438 100644
--- a/outputscreens.h
+++ b/outputscreens.h
@@ -33,12 +33,12 @@ class KWIN_EXPORT OutputScreens : public Screens
Q_OBJECT
public:
OutputScreens(Platform *platform, QObject *parent = nullptr);
- virtual ~OutputScreens();
+ ~OutputScreens() override;
void init() override;
QString name(int screen) const override;
- bool isInternal(int screen) const;
- QSizeF physicalSize(int screen) const;
+ bool isInternal(int screen) const override;
+ QSizeF physicalSize(int screen) const override;
QRect geometry(int screen) const override;
QSize size(int screen) const override;
qreal scale(int screen) const override;
diff --git a/platform.h b/platform.h
index 87a895b2a..9aef578b9 100644
--- a/platform.h
+++ b/platform.h
@@ -79,7 +79,7 @@ class KWIN_EXPORT Platform : public QObject
{
Q_OBJECT
public:
- virtual ~Platform();
+ ~Platform() override;
virtual void init() = 0;
virtual Screens *createScreens(QObject *parent = nullptr);
diff --git a/platformsupport/scenes/opengl/abstract_egl_backend.h b/platformsupport/scenes/opengl/abstract_egl_backend.h
index 50d1a8282..a8dd1119c 100644
--- a/platformsupport/scenes/opengl/abstract_egl_backend.h
+++ b/platformsupport/scenes/opengl/abstract_egl_backend.h
@@ -43,7 +43,7 @@ class KWIN_EXPORT AbstractEglBackend : public QObject, public OpenGLBackend
{
Q_OBJECT
public:
- virtual ~AbstractEglBackend();
+ ~AbstractEglBackend() override;
bool makeCurrent() override;
void doneCurrent() override;
@@ -90,7 +90,7 @@ private:
class KWIN_EXPORT AbstractEglTexture : public SceneOpenGLTexturePrivate
{
public:
- virtual ~AbstractEglTexture();
+ ~AbstractEglTexture() override;
bool loadTexture(WindowPixmap *pixmap) override;
void updateTexture(WindowPixmap *pixmap) override;
OpenGLBackend *backend() override;
diff --git a/platformsupport/scenes/opengl/texture.h b/platformsupport/scenes/opengl/texture.h
index d574b0cb5..47d440b1d 100644
--- a/platformsupport/scenes/opengl/texture.h
+++ b/platformsupport/scenes/opengl/texture.h
@@ -36,7 +36,7 @@ class SceneOpenGLTexture
{
public:
SceneOpenGLTexture(OpenGLBackend *backend);
- virtual ~SceneOpenGLTexture();
+ ~SceneOpenGLTexture() override;
SceneOpenGLTexture & operator = (const SceneOpenGLTexture& tex);
@@ -58,7 +58,7 @@ class SceneOpenGLTexturePrivate
: public GLTexturePrivate
{
public:
- virtual ~SceneOpenGLTexturePrivate();
+ ~SceneOpenGLTexturePrivate() override;
virtual bool loadTexture(WindowPixmap *pixmap) = 0;
virtual void updateTexture(WindowPixmap *pixmap);
diff --git a/plugins/idletime/poller.h b/plugins/idletime/poller.h
index c14ba29a3..62e6e88ae 100644
--- a/plugins/idletime/poller.h
+++ b/plugins/idletime/poller.h
@@ -42,7 +42,7 @@ class Poller : public AbstractSystemPoller
public:
Poller(QObject *parent = 0);
- virtual ~Poller();
+ ~Poller() override;
bool isAvailable() override;
bool setUpPoller() override;
diff --git a/plugins/kdecorations/aurorae/src/aurorae.h b/plugins/kdecorations/aurorae/src/aurorae.h
index 3b280990e..7a1c8a275 100644
--- a/plugins/kdecorations/aurorae/src/aurorae.h
+++ b/plugins/kdecorations/aurorae/src/aurorae.h
@@ -48,7 +48,7 @@ class Decoration : public KDecoration2::Decoration
Q_PROPERTY(KDecoration2::DecoratedClient* client READ clientPointer CONSTANT)
public:
explicit Decoration(QObject *parent = nullptr, const QVariantList &args = QVariantList());
- virtual ~Decoration();
+ ~Decoration() override;
void paint(QPainter *painter, const QRect &repaintRegion) override;
diff --git a/plugins/kdecorations/aurorae/src/colorhelper.h b/plugins/kdecorations/aurorae/src/colorhelper.h
index e62adb009..4f421f55f 100644
--- a/plugins/kdecorations/aurorae/src/colorhelper.h
+++ b/plugins/kdecorations/aurorae/src/colorhelper.h
@@ -37,7 +37,7 @@ class ColorHelper : public QObject
Q_PROPERTY(qreal contrast READ contrast CONSTANT)
public:
explicit ColorHelper(QObject *parent = nullptr);
- ~ColorHelper();
+ ~ColorHelper() override;
/**
* This enumeration describes the color shade being selected from the given
* set.
diff --git a/plugins/kdecorations/aurorae/src/decorationoptions.h b/plugins/kdecorations/aurorae/src/decorationoptions.h
index f9013579e..1cde500c1 100644
--- a/plugins/kdecorations/aurorae/src/decorationoptions.h
+++ b/plugins/kdecorations/aurorae/src/decorationoptions.h
@@ -215,7 +215,7 @@ public:
DecorationButtonExplicitSpacer
};
explicit DecorationOptions(QObject *parent = nullptr);
- virtual ~DecorationOptions();
+ ~DecorationOptions() override;
QColor titleBarColor() const;
QColor titleBarBlendColor() const;
@@ -256,7 +256,7 @@ class Borders : public QObject
Q_PROPERTY(int bottom READ bottom WRITE setBottom NOTIFY bottomChanged)
public:
Borders(QObject *parent = nullptr);
- virtual ~Borders();
+ ~Borders() override;
int left() const;
int right() const;
int top() const;
diff --git a/plugins/kdecorations/aurorae/src/decorationplugin.h b/plugins/kdecorations/aurorae/src/decorationplugin.h
index ead164449..f161eae30 100644
--- a/plugins/kdecorations/aurorae/src/decorationplugin.h
+++ b/plugins/kdecorations/aurorae/src/decorationplugin.h
@@ -23,7 +23,7 @@ class DecorationPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.kde.kwin.decoration")
Q_OBJECT
public:
- void registerTypes(const char *uri);
+ void registerTypes(const char *uri) override;
};
#endif
diff --git a/plugins/kdecorations/aurorae/src/lib/auroraetheme.h b/plugins/kdecorations/aurorae/src/lib/auroraetheme.h
index f3f7b9943..a04ba2a48 100644
--- a/plugins/kdecorations/aurorae/src/lib/auroraetheme.h
+++ b/plugins/kdecorations/aurorae/src/lib/auroraetheme.h
@@ -116,7 +116,7 @@ class /*LIBAURORAE_EXPORT*/ AuroraeTheme : public QObject
Q_PROPERTY(Qt::Alignment verticalAlignment READ verticalAlignment NOTIFY themeChanged)
public:
explicit AuroraeTheme(QObject* parent = nullptr);
- virtual ~AuroraeTheme();
+ ~AuroraeTheme() override;
// TODO: KSharedConfigPtr
void loadTheme(const QString &name, const KConfig &config);
bool isValid() const;
diff --git a/plugins/kdecorations/aurorae/themes/plastik/code/plastikbutton.h b/plugins/kdecorations/aurorae/themes/plastik/code/plastikbutton.h
index 1e59cb60b..02c94b464 100644
--- a/plugins/kdecorations/aurorae/themes/plastik/code/plastikbutton.h
+++ b/plugins/kdecorations/aurorae/themes/plastik/code/plastikbutton.h
@@ -26,7 +26,7 @@ class PlastikButtonProvider : public QQuickImageProvider
{
public:
explicit PlastikButtonProvider();
- virtual QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize);
+ QPixmap requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) override;
private:
enum ButtonIcon {
diff --git a/plugins/kdecorations/aurorae/themes/plastik/code/plastikplugin.h b/plugins/kdecorations/aurorae/themes/plastik/code/plastikplugin.h
index 33361a081..0bc660f7a 100644
--- a/plugins/kdecorations/aurorae/themes/plastik/code/plastikplugin.h
+++ b/plugins/kdecorations/aurorae/themes/plastik/code/plastikplugin.h
@@ -24,8 +24,8 @@ class PlastikPlugin : public QQmlExtensionPlugin
Q_PLUGIN_METADATA(IID "org.kde.kwin.decorations.plastik")
Q_OBJECT
public:
- virtual void registerTypes(const char *uri) override;
- virtual void initializeEngine(QQmlEngine *engine, const char *uri) override;
+ void registerTypes(const char *uri) override;
+ void initializeEngine(QQmlEngine *engine, const char *uri) override;
};
#endif // PLASTIK_PLUGIN_H
diff --git a/plugins/kglobalaccel/kglobalaccel_plugin.h b/plugins/kglobalaccel/kglobalaccel_plugin.h
index 4985a9076..2b72b6d3e 100644
--- a/plugins/kglobalaccel/kglobalaccel_plugin.h
+++ b/plugins/kglobalaccel/kglobalaccel_plugin.h
@@ -32,7 +32,7 @@ class KGlobalAccelImpl : public KGlobalAccelInterface
public:
KGlobalAccelImpl(QObject *parent = 0);
- virtual ~KGlobalAccelImpl();
+ ~KGlobalAccelImpl() override;
bool grabKey(int key, bool grab) override;
void setEnabled(bool) override;
diff --git a/plugins/platforms/drm/drm_backend.h b/plugins/platforms/drm/drm_backend.h
index fe4ae3370..06aa3dc5a 100644
--- a/plugins/platforms/drm/drm_backend.h
+++ b/plugins/platforms/drm/drm_backend.h
@@ -73,7 +73,7 @@ class KWIN_EXPORT DrmBackend : public Platform
Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "drm.json")
public:
explicit DrmBackend(QObject *parent = nullptr);
- virtual ~DrmBackend();
+ ~DrmBackend() override;
void configurationChangeRequested(KWayland::Server::OutputConfigurationInterface *config) override;
Screens *createScreens(QObject *parent = nullptr) override;
diff --git a/plugins/platforms/drm/drm_buffer.h b/plugins/platforms/drm/drm_buffer.h
index 7af2ef913..804d5d8e4 100644
--- a/plugins/platforms/drm/drm_buffer.h
+++ b/plugins/platforms/drm/drm_buffer.h
@@ -58,7 +58,7 @@ class DrmDumbBuffer : public DrmBuffer
{
public:
DrmDumbBuffer(int fd, const QSize &size);
- ~DrmDumbBuffer();
+ ~DrmDumbBuffer() override;
bool needsModeChange(DrmBuffer *b) const override;
diff --git a/plugins/platforms/drm/drm_buffer_gbm.h b/plugins/platforms/drm/drm_buffer_gbm.h
index b9b40e8e7..0205be7ec 100644
--- a/plugins/platforms/drm/drm_buffer_gbm.h
+++ b/plugins/platforms/drm/drm_buffer_gbm.h
@@ -36,7 +36,7 @@ class DrmSurfaceBuffer : public DrmBuffer
{
public:
DrmSurfaceBuffer(int fd, const std::shared_ptr<GbmSurface> &surface);
- ~DrmSurfaceBuffer();
+ ~DrmSurfaceBuffer() override;
bool needsModeChange(DrmBuffer *b) const override {
if (DrmSurfaceBuffer *sb = dynamic_cast<DrmSurfaceBuffer*>(b)) {
diff --git a/plugins/platforms/drm/drm_inputeventfilter.h b/plugins/platforms/drm/drm_inputeventfilter.h
index 056f7792b..78ab4226c 100644
--- a/plugins/platforms/drm/drm_inputeventfilter.h
+++ b/plugins/platforms/drm/drm_inputeventfilter.h
@@ -32,7 +32,7 @@ class DpmsInputEventFilter : public InputEventFilter
{
public:
DpmsInputEventFilter(DrmBackend *backend);
- ~DpmsInputEventFilter();
+ ~DpmsInputEventFilter() override;
bool pointerEvent(QMouseEvent *event, quint32 nativeButton) override;
bool wheelEvent(QWheelEvent *event) override;
diff --git a/plugins/platforms/drm/drm_object_connector.h b/plugins/platforms/drm/drm_object_connector.h
index 7cd240629..d52c5cb47 100644
--- a/plugins/platforms/drm/drm_object_connector.h
+++ b/plugins/platforms/drm/drm_object_connector.h
@@ -30,9 +30,9 @@ class DrmConnector : public DrmObject
public:
DrmConnector(uint32_t connector_id, int fd);
- virtual ~DrmConnector();
+ ~DrmConnector() override;
- bool atomicInit();
+ bool atomicInit() override;
enum class PropertyIndex {
CrtcId = 0,
@@ -43,7 +43,7 @@ public:
return m_encoders;
}
- bool initProps();
+ bool initProps() override;
bool isConnected();
diff --git a/plugins/platforms/drm/drm_object_crtc.h b/plugins/platforms/drm/drm_object_crtc.h
index c5f77e0e1..2ceb16c59 100644
--- a/plugins/platforms/drm/drm_object_crtc.h
+++ b/plugins/platforms/drm/drm_object_crtc.h
@@ -38,9 +38,9 @@ class DrmCrtc : public DrmObject
public:
DrmCrtc(uint32_t crtc_id, DrmBackend *backend, int resIndex);
- virtual ~DrmCrtc();
+ ~DrmCrtc() override;
- bool atomicInit();
+ bool atomicInit() override;
enum class PropertyIndex {
ModeId = 0,
@@ -48,7 +48,7 @@ public:
Count
};
- bool initProps();
+ bool initProps() override;
int resIndex() const {
return m_resIndex;
diff --git a/plugins/platforms/drm/drm_object_plane.h b/plugins/platforms/drm/drm_object_plane.h
index cd6f739c6..52b59b02d 100644
--- a/plugins/platforms/drm/drm_object_plane.h
+++ b/plugins/platforms/drm/drm_object_plane.h
@@ -34,7 +34,7 @@ class DrmPlane : public DrmObject
public:
DrmPlane(uint32_t plane_id, int fd);
- ~DrmPlane();
+ ~DrmPlane() override;
enum class PropertyIndex {
Type = 0,
@@ -69,8 +69,8 @@ public:
};
Q_DECLARE_FLAGS(Transformations, Transformation);
- bool atomicInit();
- bool initProps();
+ bool atomicInit() override;
+ bool initProps() override;
TypeIndex type();
bool isCrtcSupported(int resIndex) const {
@@ -93,7 +93,7 @@ public:
void setTransformation(Transformations t);
Transformations transformation();
- bool atomicPopulate(drmModeAtomicReq *req);
+ bool atomicPopulate(drmModeAtomicReq *req) override;
void flipBuffer();
void flipBufferWithDelete();
diff --git a/plugins/platforms/drm/egl_gbm_backend.h b/plugins/platforms/drm/egl_gbm_backend.h
index 8c596e9d2..9a12f72bb 100644
--- a/plugins/platforms/drm/egl_gbm_backend.h
+++ b/plugins/platforms/drm/egl_gbm_backend.h
@@ -41,7 +41,7 @@ class EglGbmBackend : public AbstractEglBackend
Q_OBJECT
public:
EglGbmBackend(DrmBackend *b);
- virtual ~EglGbmBackend();
+ ~EglGbmBackend() override;
void screenGeometryChanged(const QSize &size) override;
SceneOpenGLTexturePrivate *createBackendTexture(SceneOpenGLTexture *texture) override;
QRegion prepareRenderingFrame() override;
@@ -89,7 +89,7 @@ private:
class EglGbmTexture : public AbstractEglTexture
{
public:
- virtual ~EglGbmTexture();
+ ~EglGbmTexture() override;
private:
friend class EglGbmBackend;
diff --git a/plugins/platforms/drm/remoteaccess_manager.h b/plugins/platforms/drm/remoteaccess_manager.h
index 3a1bc698b..b521bb8b6 100644
--- a/plugins/platforms/drm/remoteaccess_manager.h
+++ b/plugins/platforms/drm/remoteaccess_manager.h
@@ -43,7 +43,7 @@ class RemoteAccessManager : public QObject
Q_OBJECT
public:
explicit RemoteAccessManager(QObject *parent = nullptr);
- virtual ~RemoteAccessManager();
+ ~RemoteAccessManager() override;
void passBuffer(DrmOutput *output, DrmBuffer *buffer);
diff --git a/plugins/platforms/drm/scene_qpainter_drm_backend.h b/plugins/platforms/drm/scene_qpainter_drm_backend.h
index cdb308bb0..e4235345d 100644
--- a/plugins/platforms/drm/scene_qpainter_drm_backend.h
+++ b/plugins/platforms/drm/scene_qpainter_drm_backend.h
@@ -35,7 +35,7 @@ class DrmQPainterBackend : public QObject, public QPainterBackend
Q_OBJECT
public:
DrmQPainterBackend(DrmBackend *backend);
- virtual ~DrmQPainterBackend();
+ ~DrmQPainterBackend() override;
QImage *buffer() override;
QImage *bufferForScreen(int screenId) override;
diff --git a/plugins/platforms/drm/screens_drm.h b/plugins/platforms/drm/screens_drm.h
index daa8afdac..0f62ad607 100644
--- a/plugins/platforms/drm/screens_drm.h
+++ b/plugins/platforms/drm/screens_drm.h
@@ -30,7 +30,7 @@ class DrmScreens : public OutputScreens
Q_OBJECT
public:
DrmScreens(DrmBackend *backend, QObject *parent = nullptr);
- virtual ~DrmScreens();
+ ~DrmScreens() override;
bool supportsTransformations(int screen) const override;
diff --git a/plugins/platforms/fbdev/fb_backend.h b/plugins/platforms/fbdev/fb_backend.h
index 0fc952704..33142557a 100644
--- a/plugins/platforms/fbdev/fb_backend.h
+++ b/plugins/platforms/fbdev/fb_backend.h
@@ -34,7 +34,7 @@ class KWIN_EXPORT FramebufferBackend : public Platform
Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "fbdev.json")
public:
explicit FramebufferBackend(QObject *parent = nullptr);
- virtual ~FramebufferBackend();
+ ~FramebufferBackend() override;
Screens *createScreens(QObject *parent = nullptr) override;
QPainterBackend *createQPainterBackend() override;
diff --git a/plugins/platforms/fbdev/scene_qpainter_fb_backend.h b/plugins/platforms/fbdev/scene_qpainter_fb_backend.h
index 83ec47e80..6700cce71 100644
--- a/plugins/platforms/fbdev/scene_qpainter_fb_backend.h
+++ b/plugins/platforms/fbdev/scene_qpainter_fb_backend.h
@@ -33,7 +33,7 @@ class FramebufferQPainterBackend : public QObject, public QPainterBackend
Q_OBJECT
public:
FramebufferQPainterBackend(FramebufferBackend *backend);
- virtual ~FramebufferQPainterBackend();
+ ~FramebufferQPainterBackend() override;
QImage *buffer() override;
bool needsFullRepaint() const override;
diff --git a/plugins/platforms/virtual/egl_gbm_backend.h b/plugins/platforms/virtual/egl_gbm_backend.h
index c8b7a7169..128244af7 100644
--- a/plugins/platforms/virtual/egl_gbm_backend.h
+++ b/plugins/platforms/virtual/egl_gbm_backend.h
@@ -34,7 +34,7 @@ class EglGbmBackend : public AbstractEglBackend
{
public:
EglGbmBackend(VirtualBackend *b);
- virtual ~EglGbmBackend();
+ ~EglGbmBackend() override;
void screenGeometryChanged(const QSize &size) override;
SceneOpenGLTexturePrivate *createBackendTexture(SceneOpenGLTexture *texture) override;
QRegion prepareRenderingFrame() override;
@@ -62,7 +62,7 @@ private:
class EglGbmTexture : public AbstractEglTexture
{
public:
- virtual ~EglGbmTexture();
+ ~EglGbmTexture() override;
private:
friend class EglGbmBackend;
diff --git a/plugins/platforms/virtual/scene_qpainter_virtual_backend.h b/plugins/platforms/virtual/scene_qpainter_virtual_backend.h
index b72aa8c13..c95228a61 100644
--- a/plugins/platforms/virtual/scene_qpainter_virtual_backend.h
+++ b/plugins/platforms/virtual/scene_qpainter_virtual_backend.h
@@ -35,7 +35,7 @@ class VirtualQPainterBackend : public QObject, public QPainterBackend
Q_OBJECT
public:
VirtualQPainterBackend(VirtualBackend *backend);
- virtual ~VirtualQPainterBackend();
+ ~VirtualQPainterBackend() override;
QImage *buffer() override;
QImage *bufferForScreen(int screenId) override;
diff --git a/plugins/platforms/virtual/screens_virtual.h b/plugins/platforms/virtual/screens_virtual.h
index bdc4df3b1..ad20891cd 100644
--- a/plugins/platforms/virtual/screens_virtual.h
+++ b/plugins/platforms/virtual/screens_virtual.h
@@ -31,7 +31,7 @@ class VirtualScreens : public OutputScreens
Q_OBJECT
public:
VirtualScreens(VirtualBackend *backend, QObject *parent = nullptr);
- virtual ~VirtualScreens();
+ ~VirtualScreens() override;
void init() override;
private:
diff --git a/plugins/platforms/virtual/virtual_backend.h b/plugins/platforms/virtual/virtual_backend.h
index b22f4b3fa..bcda6934a 100644
--- a/plugins/platforms/virtual/virtual_backend.h
+++ b/plugins/platforms/virtual/virtual_backend.h
@@ -40,7 +40,7 @@ class KWIN_EXPORT VirtualBackend : public Platform
public:
VirtualBackend(QObject *parent = nullptr);
- virtual ~VirtualBackend();
+ ~VirtualBackend() override;
void init() override;
bool saveFrames() const {
diff --git a/plugins/platforms/virtual/virtual_output.h b/plugins/platforms/virtual/virtual_output.h
index 450a86869..bbb555e64 100644
--- a/plugins/platforms/virtual/virtual_output.h
+++ b/plugins/platforms/virtual/virtual_output.h
@@ -35,7 +35,7 @@ class VirtualOutput : public AbstractOutput
public:
VirtualOutput(QObject *parent = nullptr);
- virtual ~VirtualOutput();
+ ~VirtualOutput() override;
QSize pixelSize() const override;
diff --git a/plugins/platforms/wayland/egl_wayland_backend.h b/plugins/platforms/wayland/egl_wayland_backend.h
index e42da7df3..72e7b26ae 100644
--- a/plugins/platforms/wayland/egl_wayland_backend.h
+++ b/plugins/platforms/wayland/egl_wayland_backend.h
@@ -51,16 +51,16 @@ class EglWaylandBackend : public AbstractEglBackend
Q_OBJECT
public:
EglWaylandBackend(Wayland::WaylandBackend *b);
- virtual ~EglWaylandBackend();
- virtual void screenGeometryChanged(const QSize &size);
- virtual SceneOpenGLTexturePrivate *createBackendTexture(SceneOpenGLTexture *texture) override;
- virtual QRegion prepareRenderingFrame();
- virtual void endRenderingFrame(const QRegion &renderedRegion, const QRegion &damagedRegion);
- virtual bool usesOverlayWindow() const override;
+ ~EglWaylandBackend() override;
+ void screenGeometryChanged(const QSize &size) override;
+ SceneOpenGLTexturePrivate *createBackendTexture(SceneOpenGLTexture *texture) override;
+ QRegion prepareRenderingFrame() override;
+ void endRenderingFrame(const QRegion &renderedRegion, const QRegion &damagedRegion) override;
+ bool usesOverlayWindow() const override;
void init() override;
protected:
- virtual void present();
+ void present() override;
private Q_SLOTS:
void overlaySizeChanged(const QSize &size);
@@ -83,7 +83,7 @@ private:
class EglWaylandTexture : public AbstractEglTexture
{
public:
- virtual ~EglWaylandTexture();
+ ~EglWaylandTexture() override;
private:
friend class EglWaylandBackend;
diff --git a/plugins/platforms/wayland/scene_qpainter_wayland_backend.h b/plugins/platforms/wayland/scene_qpainter_wayland_backend.h
index 3e81ef9c4..66c1a5cde 100644
--- a/plugins/platforms/wayland/scene_qpainter_wayland_backend.h
+++ b/plugins/platforms/wayland/scene_qpainter_wayland_backend.h
@@ -46,14 +46,14 @@ class WaylandQPainterBackend : public QObject, public QPainterBackend
Q_OBJECT
public:
explicit WaylandQPainterBackend(Wayland::WaylandBackend *b);
- virtual ~WaylandQPainterBackend();
+ ~WaylandQPainterBackend() override;
- virtual void present(int mask, const QRegion& damage) override;
- virtual bool usesOverlayWindow() const override;
- virtual void screenGeometryChanged(const QSize &size) override;
- virtual QImage *buffer() override;
- virtual void prepareRenderingFrame() override;
- virtual bool needsFullRepaint() const override;
+ void present(int mask, const QRegion& damage) override;
+ bool usesOverlayWindow() const override;
+ void screenGeometryChanged(const QSize &size) override;
+ QImage *buffer() override;
+ void prepareRenderingFrame() override;
+ bool needsFullRepaint() const override;
private Q_SLOTS:
void remapBuffer();
private:
diff --git a/plugins/platforms/wayland/wayland_backend.h b/plugins/platforms/wayland/wayland_backend.h
index 898479c33..654e2d11d 100644
--- a/plugins/platforms/wayland/wayland_backend.h
+++ b/plugins/platforms/wayland/wayland_backend.h
@@ -78,7 +78,7 @@ class WaylandSeat : public QObject
Q_OBJECT
public:
WaylandSeat(wl_seat *seat, WaylandBackend *backend);
- virtual ~WaylandSeat();
+ ~WaylandSeat() override;
void installCursorImage(wl_buffer *image, const QSize &size, const QPoint &hotspot);
void installCursorImage(const QImage &image, const QPoint &hotspot);
@@ -127,7 +127,7 @@ class KWIN_EXPORT WaylandBackend : public Platform
Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "wayland.json")
public:
explicit WaylandBackend(QObject *parent = nullptr);
- virtual ~WaylandBackend();
+ ~WaylandBackend() override;
void init() override;
wl_display *display();
KWayland::Client::Compositor *compositor();
diff --git a/plugins/platforms/x11/common/eglonxbackend.h b/plugins/platforms/x11/common/eglonxbackend.h
index 0063971bf..ea253d91d 100644
--- a/plugins/platforms/x11/common/eglonxbackend.h
+++ b/plugins/platforms/x11/common/eglonxbackend.h
@@ -35,13 +35,13 @@ class KWIN_EXPORT EglOnXBackend : public AbstractEglBackend
public:
EglOnXBackend(Display *display);
explicit EglOnXBackend(xcb_connection_t *connection, Display *display, xcb_window_t rootWindow, int screenNumber, xcb_window_t renderingWindow);
- virtual ~EglOnXBackend();
- virtual void screenGeometryChanged(const QSize &size);
- virtual SceneOpenGLTexturePrivate *createBackendTexture(SceneOpenGLTexture *texture) override;
- virtual QRegion prepareRenderingFrame();
- virtual void endRenderingFrame(const QRegion &damage, const QRegion &damagedRegion);
- virtual OverlayWindow* overlayWindow() override;
- virtual bool usesOverlayWindow() const override;
+ ~EglOnXBackend() override;
+ void screenGeometryChanged(const QSize &size) override;
+ SceneOpenGLTexturePrivate *createBackendTexture(SceneOpenGLTexture *texture) override;
+ QRegion prepareRenderingFrame() override;
+ void endRenderingFrame(const QRegion &damage, const QRegion &damagedRegion) override;
+ OverlayWindow* overlayWindow() override;
+ bool usesOverlayWindow() const override;
void init() override;
bool isX11TextureFromPixmapSupported() const {
@@ -49,7 +49,7 @@ public:
}
protected:
- virtual void present();
+ void present() override;
void presentSurface(EGLSurface surface, const QRegion &damage, const QRect &screenGeometry);
virtual bool createSurfaces();
EGLSurface createSurface(xcb_window_t window);
@@ -92,8 +92,8 @@ private:
class EglTexture : public AbstractEglTexture
{
public:
- virtual ~EglTexture();
- virtual void onDamage();
+ ~EglTexture() override;
+ void onDamage() override;
bool loadTexture(WindowPixmap *pixmap) override;
private:
diff --git a/plugins/platforms/x11/standalone/edge.h b/plugins/platforms/x11/standalone/edge.h
index 6934b7dcb..f913c2a64 100644
--- a/plugins/platforms/x11/standalone/edge.h
+++ b/plugins/platforms/x11/standalone/edge.h
@@ -39,7 +39,7 @@ class WindowBasedEdge : public Edge
Q_OBJECT
public:
explicit WindowBasedEdge(ScreenEdges *parent);
- virtual ~WindowBasedEdge();
+ ~WindowBasedEdge() override;
quint32 window() const override;
/**
@@ -49,12 +49,12 @@ public:
quint32 approachWindow() const override;
protected:
- virtual void doGeometryUpdate();
- virtual void doActivate() override;
- virtual void doDeactivate() override;
- virtual void doStartApproaching();
- virtual void doStopApproaching();
- virtual void doUpdateBlocking();
+ void doGeometryUpdate() override;
+ void doActivate() override;
+ void doDeactivate() override;
+ void doStartApproaching() override;
+ void doStopApproaching() override;
+ void doUpdateBlocking() override;
private:
void createWindow();
diff --git a/plugins/platforms/x11/standalone/effects_x11.h b/plugins/platforms/x11/standalone/effects_x11.h
index 738bf55ca..94c83b221 100644
--- a/plugins/platforms/x11/standalone/effects_x11.h
+++ b/plugins/platforms/x11/standalone/effects_x11.h
@@ -35,7 +35,7 @@ class EffectsHandlerImplX11 : public EffectsHandlerImpl
Q_OBJECT
public:
explicit EffectsHandlerImplX11(Compositor *compositor, Scene *scene);
- virtual ~EffectsHandlerImplX11();
+ ~EffectsHandlerImplX11() override;
void defineCursor(Qt::CursorShape shape) override;
diff --git a/plugins/platforms/x11/standalone/glxbackend.h b/plugins/platforms/x11/standalone/glxbackend.h
index ff3a0d8f2..97017d7d0 100644
--- a/plugins/platforms/x11/standalone/glxbackend.h
+++ b/plugins/platforms/x11/standalone/glxbackend.h
@@ -69,19 +69,19 @@ class GlxBackend : public OpenGLBackend
{
public:
GlxBackend(Display *display);
- virtual ~GlxBackend();
- virtual void screenGeometryChanged(const QSize &size);
- virtual SceneOpenGLTexturePrivate *createBackendTexture(SceneOpenGLTexture *texture) override;
- virtual QRegion prepareRenderingFrame();
- virtual void endRenderingFrame(const QRegion &damage, const QRegion &damagedRegion);
- virtual bool makeCurrent() override;
- virtual void doneCurrent() override;
- virtual OverlayWindow* overlayWindow() override;
- virtual bool usesOverlayWindow() const override;
+ ~GlxBackend() override;
+ void screenGeometryChanged(const QSize &size) override;
+ SceneOpenGLTexturePrivate *createBackendTexture(SceneOpenGLTexture *texture) override;
+ QRegion prepareRenderingFrame() override;
+ void endRenderingFrame(const QRegion &damage, const QRegion &damagedRegion) override;
+ bool makeCurrent() override;
+ void doneCurrent() override;
+ OverlayWindow* overlayWindow() override;
+ bool usesOverlayWindow() const override;
void init() override;
protected:
- virtual void present();
+ void present() override;
private:
bool initBuffer();
@@ -129,10 +129,10 @@ private:
class GlxTexture : public SceneOpenGLTexturePrivate
{
public:
- virtual ~GlxTexture();
- virtual void onDamage();
- virtual bool loadTexture(WindowPixmap *pixmap) override;
- virtual OpenGLBackend *backend();
+ ~GlxTexture() override;
+ void onDamage() override;
+ bool loadTexture(WindowPixmap *pixmap) override;
+ OpenGLBackend *backend() override;
private:
friend class GlxBackend;
diff --git a/plugins/platforms/x11/standalone/non_composited_outline.h b/plugins/platforms/x11/standalone/non_composited_outline.h
index 1744ff96a..a5286b483 100644
--- a/plugins/platforms/x11/standalone/non_composited_outline.h
+++ b/plugins/platforms/x11/standalone/non_composited_outline.h
@@ -29,9 +29,9 @@ class NonCompositedOutlineVisual : public OutlineVisual
{
public:
NonCompositedOutlineVisual(Outline *outline);
- virtual ~NonCompositedOutlineVisual();
- virtual void show();
- virtual void hide();
+ ~NonCompositedOutlineVisual() override;
+ void show() override;
+ void hide() override;
private:
// TODO: variadic template arguments for adding method arguments
diff --git a/plugins/platforms/x11/standalone/overlaywindow_x11.h b/plugins/platforms/x11/standalone/overlaywindow_x11.h
index 0ca5b143c..e93dd0a9c 100644
--- a/plugins/platforms/x11/standalone/overlaywindow_x11.h
+++ b/plugins/platforms/x11/standalone/overlaywindow_x11.h
@@ -28,7 +28,7 @@ namespace KWin {
class KWIN_EXPORT OverlayWindowX11 : public OverlayWindow, public X11EventFilter {
public:
OverlayWindowX11();
- ~OverlayWindowX11();
+ ~OverlayWindowX11() override;
/// Creates XComposite overlay window, call initOverlay() afterwards
bool create() override;
/// Init overlay and the destination window in it
diff --git a/plugins/platforms/x11/standalone/screens_xrandr.h b/plugins/platforms/x11/standalone/screens_xrandr.h
index 5a7a74879..a79d626fa 100644
--- a/plugins/platforms/x11/standalone/screens_xrandr.h
+++ b/plugins/platforms/x11/standalone/screens_xrandr.h
@@ -33,7 +33,7 @@ class XRandRScreens : public Screens, public X11EventFilter
Q_OBJECT
public:
XRandRScreens(QObject *parent);
- virtual ~XRandRScreens();
+ ~XRandRScreens() override;
void init() override;
QRect geometry(int screen) const override;
QString name(int screen) const override;
diff --git a/plugins/platforms/x11/standalone/windowselector.h b/plugins/platforms/x11/standalone/windowselector.h
index 710acd8aa..e755a823d 100644
--- a/plugins/platforms/x11/standalone/windowselector.h
+++ b/plugins/platforms/x11/standalone/windowselector.h
@@ -40,7 +40,7 @@ class WindowSelector : public X11EventFilter
public:
WindowSelector();
- ~WindowSelector();
+ ~WindowSelector() override;
void start(std::function<void(KWin::Toplevel*)> callback, const QByteArray &cursorName);
void start(std::function<void (const QPoint &)> callback);
diff --git a/plugins/platforms/x11/standalone/x11_decoration_renderer.h b/plugins/platforms/x11/standalone/x11_decoration_renderer.h
index bbcda9728..77437b9da 100644
--- a/plugins/platforms/x11/standalone/x11_decoration_renderer.h
+++ b/plugins/platforms/x11/standalone/x11_decoration_renderer.h
@@ -37,7 +37,7 @@ class X11Renderer : public Renderer
Q_OBJECT
public:
explicit X11Renderer(DecoratedClientImpl *client);
- virtual ~X11Renderer();
+ ~X11Renderer() override;
void reparent(Deleted *deleted) override;
diff --git a/plugins/platforms/x11/standalone/x11_platform.h b/plugins/platforms/x11/standalone/x11_platform.h
index 732177537..a07e72cac 100644
--- a/plugins/platforms/x11/standalone/x11_platform.h
+++ b/plugins/platforms/x11/standalone/x11_platform.h
@@ -41,7 +41,7 @@ class KWIN_EXPORT X11StandalonePlatform : public Platform
Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "x11.json")
public:
X11StandalonePlatform(QObject *parent = nullptr);
- virtual ~X11StandalonePlatform();
+ ~X11StandalonePlatform() override;
void init() override;
Screens *createScreens(QObject *parent = nullptr) override;
diff --git a/plugins/platforms/x11/standalone/x11cursor.h b/plugins/platforms/x11/standalone/x11cursor.h
index 85aa8997b..264c94739 100644
--- a/plugins/platforms/x11/standalone/x11cursor.h
+++ b/plugins/platforms/x11/standalone/x11cursor.h
@@ -32,7 +32,7 @@ class KWIN_EXPORT X11Cursor : public Cursor
Q_OBJECT
public:
X11Cursor(QObject *parent, bool xInputSupport = false);
- virtual ~X11Cursor();
+ ~X11Cursor() override;
void schedulePoll() {
m_needsPoll = true;
@@ -46,14 +46,14 @@ public:
void notifyCursorChanged();
protected:
- virtual xcb_cursor_t getX11Cursor(CursorShape shape);
+ xcb_cursor_t getX11Cursor(CursorShape shape) override;
xcb_cursor_t getX11Cursor(const QByteArray &name) override;
- virtual void doSetPos();
- virtual void doGetPos();
- virtual void doStartMousePolling();
- virtual void doStopMousePolling();
- virtual void doStartCursorTracking();
- virtual void doStopCursorTracking();
+ void doSetPos() override;
+ void doGetPos() override;
+ void doStartMousePolling() override;
+ void doStopMousePolling() override;
+ void doStartCursorTracking() override;
+ void doStopCursorTracking() override;
private Q_SLOTS:
/**
diff --git a/plugins/platforms/x11/standalone/xinputintegration.cpp b/plugins/platforms/x11/standalone/xinputintegration.cpp
index 01b6e55b9..f7d472cf7 100644
--- a/plugins/platforms/x11/standalone/xinputintegration.cpp
+++ b/plugins/platforms/x11/standalone/xinputintegration.cpp
@@ -50,7 +50,7 @@ public:
XInputEventFilter(int xi_opcode)
: X11EventFilter(XCB_GE_GENERIC, xi_opcode, QVector<int>{XI_RawMotion, XI_RawButtonPress, XI_RawButtonRelease, XI_RawKeyPress, XI_RawKeyRelease, XI_TouchBegin, XI_TouchUpdate, XI_TouchOwnership, XI_TouchEnd})
{}
- virtual ~XInputEventFilter() = default;
+ ~XInputEventFilter() override = default;
bool event(xcb_generic_event_t *event) override {
GeEventMemMover ge(event);
@@ -187,7 +187,7 @@ public:
XKeyPressReleaseEventFilter(uint32_t type)
: X11EventFilter(type)
{}
- ~XKeyPressReleaseEventFilter() = default;
+ ~XKeyPressReleaseEventFilter() override = default;
bool event(xcb_generic_event_t *event) override {
xcb_key_press_event_t *ke = reinterpret_cast<xcb_key_press_event_t *>(event);
diff --git a/plugins/platforms/x11/standalone/xinputintegration.h b/plugins/platforms/x11/standalone/xinputintegration.h
index f98e7f3a1..e976ac72b 100644
--- a/plugins/platforms/x11/standalone/xinputintegration.h
+++ b/plugins/platforms/x11/standalone/xinputintegration.h
@@ -37,7 +37,7 @@ class XInputIntegration : public QObject
Q_OBJECT
public:
explicit XInputIntegration(Display *display, QObject *parent);
- virtual ~XInputIntegration();
+ ~XInputIntegration() override;
void init();
void startListening();
diff --git a/plugins/platforms/x11/windowed/egl_x11_backend.h b/plugins/platforms/x11/windowed/egl_x11_backend.h
index 523480107..e9d18f39d 100644
--- a/plugins/platforms/x11/windowed/egl_x11_backend.h
+++ b/plugins/platforms/x11/windowed/egl_x11_backend.h
@@ -33,16 +33,16 @@ class EglX11Backend : public EglOnXBackend
{
public:
explicit EglX11Backend(X11WindowedBackend *backend);
- virtual ~EglX11Backend();
- virtual QRegion prepareRenderingFrame();
- virtual void endRenderingFrame(const QRegion &damage, const QRegion &damagedRegion);
- virtual bool usesOverlayWindow() const override;
+ ~EglX11Backend() override;
+ QRegion prepareRenderingFrame() override;
+ void endRenderingFrame(const QRegion &damage, const QRegion &damagedRegion) override;
+ bool usesOverlayWindow() const override;
bool perScreenRendering() const override;
QRegion prepareRenderingForScreen(int screenId) override;
void endRenderingFrameForScreen(int screenId, const QRegion &damage, const QRegion &damagedRegion) override;
protected:
- virtual void present();
+ void present() override;
void cleanupSurfaces() override;
bool createSurfaces() override;
diff --git a/plugins/platforms/x11/windowed/scene_qpainter_x11_backend.h b/plugins/platforms/x11/windowed/scene_qpainter_x11_backend.h
index 1e57a3dab..449e6c346 100644
--- a/plugins/platforms/x11/windowed/scene_qpainter_x11_backend.h
+++ b/plugins/platforms/x11/windowed/scene_qpainter_x11_backend.h
@@ -38,7 +38,7 @@ class X11WindowedQPainterBackend : public QObject, public QPainterBackend
Q_OBJECT
public:
X11WindowedQPainterBackend(X11WindowedBackend *backend);
- virtual ~X11WindowedQPainterBackend();
+ ~X11WindowedQPainterBackend() override;
QImage *buffer() override;
QImage *bufferForScreen(int screenId) override;
diff --git a/plugins/platforms/x11/windowed/x11windowed_backend.h b/plugins/platforms/x11/windowed/x11windowed_backend.h
index b34392cf9..c13559790 100644
--- a/plugins/platforms/x11/windowed/x11windowed_backend.h
+++ b/plugins/platforms/x11/windowed/x11windowed_backend.h
@@ -44,7 +44,7 @@ class KWIN_EXPORT X11WindowedBackend : public Platform
Q_PROPERTY(QSize size READ screenSize NOTIFY sizeChanged)
public:
X11WindowedBackend(QObject *parent = nullptr);
- virtual ~X11WindowedBackend();
+ ~X11WindowedBackend() override;
void init() override;
QVector<QRect> screenGeometries() const override;
QVector<qreal> screenScales() const override;
diff --git a/plugins/qpa/abstractplatformcontext.h b/plugins/qpa/abstractplatformcontext.h
index 984679a27..c9992a550 100644
--- a/plugins/qpa/abstractplatformcontext.h
+++ b/plugins/qpa/abstractplatformcontext.h
@@ -35,7 +35,7 @@ class AbstractPlatformContext : public QPlatformOpenGLContext
{
public:
explicit AbstractPlatformContext(QOpenGLContext *context, EGLDisplay display, EGLConfig config = nullptr);
- virtual ~AbstractPlatformContext();
+ ~AbstractPlatformContext() override;
void doneCurrent() override;
QSurfaceFormat format() const override;
diff --git a/plugins/qpa/backingstore.h b/plugins/qpa/backingstore.h
index 53c25a778..b27b0dc07 100644
--- a/plugins/qpa/backingstore.h
+++ b/plugins/qpa/backingstore.h
@@ -40,7 +40,7 @@ class BackingStore : public QPlatformBackingStore
{
public:
explicit BackingStore(QWindow *w, KWayland::Client::ShmPool *shm);
- virtual ~BackingStore();
+ ~BackingStore() override;
QPaintDevice *paintDevice() override;
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
diff --git a/plugins/qpa/integration.h b/plugins/qpa/integration.h
index d8bf6bcbe..e76e6c632 100644
--- a/plugins/qpa/integration.h
+++ b/plugins/qpa/integration.h
@@ -49,7 +49,7 @@ class Integration : public QObject, public QPlatformIntegration
Q_OBJECT
public:
explicit Integration();
- virtual ~Integration();
+ ~Integration() override;
bool hasCapability(Capability cap) const override;
QPlatformWindow *createPlatformWindow(QWindow *window) const override;
diff --git a/plugins/qpa/platformcursor.h b/plugins/qpa/platformcursor.h
index e694d4ebf..a100c6bce 100644
--- a/plugins/qpa/platformcursor.h
+++ b/plugins/qpa/platformcursor.h
@@ -31,7 +31,7 @@ class PlatformCursor : public QPlatformCursor
{
public:
PlatformCursor();
- virtual ~PlatformCursor();
+ ~PlatformCursor() override;
QPoint pos() const override;
void setPos(const QPoint &pos) override;
void changeCursor(QCursor *windowCursor, QWindow *window) override;
diff --git a/plugins/qpa/screen.h b/plugins/qpa/screen.h
index 2753a4e89..ed4649dcc 100644
--- a/plugins/qpa/screen.h
+++ b/plugins/qpa/screen.h
@@ -33,7 +33,7 @@ class Screen : public QPlatformScreen
{
public:
explicit Screen(int screen);
- virtual ~Screen();
+ ~Screen() override;
QRect geometry() const override;
int depth() const override;
diff --git a/plugins/qpa/window.h b/plugins/qpa/window.h
index bc334c359..5b2405fd0 100644
--- a/plugins/qpa/window.h
+++ b/plugins/qpa/window.h
@@ -60,7 +60,7 @@ class Window : public QPlatformWindow
{
public:
explicit Window(QWindow *window, KWayland::Client::Surface *surface, KWayland::Client::ShellSurface *shellSurface, const Integration *integration);
- virtual ~Window();
+ ~Window() override;
void setVisible(bool visible) override;
void setGeometry(const QRect &rect) override;
diff --git a/plugins/scenes/opengl/scene_opengl.h b/plugins/scenes/opengl/scene_opengl.h
index 6453d3b57..e2cc16709 100644
--- a/plugins/scenes/opengl/scene_opengl.h
+++ b/plugins/scenes/opengl/scene_opengl.h
@@ -44,27 +44,27 @@ class KWIN_EXPORT SceneOpenGL
public:
class EffectFrame;
class Window;
- virtual ~SceneOpenGL();
- virtual bool initFailed() const;
- virtual bool hasPendingFlush() const;
- virtual qint64 paint(QRegion damage, ToplevelList windows);
- virtual Scene::EffectFrame *createEffectFrame(EffectFrameImpl *frame);
- virtual Shadow *createShadow(Toplevel *toplevel);
- virtual void screenGeometryChanged(const QSize &size);
- virtual OverlayWindow *overlayWindow();
- virtual bool usesOverlayWindow() const;
- virtual bool blocksForRetrace() const;
- virtual bool syncsToVBlank() const;
- virtual bool makeOpenGLContextCurrent() override;
- virtual void doneOpenGLContextCurrent() override;
+ ~SceneOpenGL() override;
+ bool initFailed() const override;
+ bool hasPendingFlush() const override;
+ qint64 paint(QRegion damage, ToplevelList windows) override;
+ Scene::EffectFrame *createEffectFrame(EffectFrameImpl *frame) override;
+ Shadow *createShadow(Toplevel *toplevel) override;
+ void screenGeometryChanged(const QSize &size) override;
+ OverlayWindow *overlayWindow() override;
+ bool usesOverlayWindow() const override;
+ bool blocksForRetrace() const override;
+ bool syncsToVBlank() const override;
+ bool makeOpenGLContextCurrent() override;
+ void doneOpenGLContextCurrent() override;
Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *impl) override;
- virtual void triggerFence() override;
+ void triggerFence() override;
virtual QMatrix4x4 projectionMatrix() const = 0;
bool animationsSupported() const override;
void insertWait();
- void idle();
+ void idle() override;
bool debug() const { return m_debug; }
void initDebugOutput();
@@ -86,10 +86,10 @@ public:
protected:
SceneOpenGL(OpenGLBackend *backend, QObject *parent = nullptr);
- virtual void paintBackground(QRegion region);
- virtual void extendPaintRegion(QRegion &region, bool opaqueFullscreen);
+ void paintBackground(QRegion region) override;
+ void extendPaintRegion(QRegion &region, bool opaqueFullscreen) override;
QMatrix4x4 transformation(int mask, const ScreenPaintData &data) const;
- virtual void paintDesktop(int desktop, int mask, const QRegion &region, ScreenPaintData &data);
+ void paintDesktop(int desktop, int mask, const QRegion &region, ScreenPaintData &data) override;
void handleGraphicsReset(GLenum status);
@@ -112,8 +112,8 @@ class SceneOpenGL2 : public SceneOpenGL
Q_OBJECT
public:
explicit SceneOpenGL2(OpenGLBackend *backend, QObject *parent = nullptr);
- virtual ~SceneOpenGL2();
- virtual CompositingType compositingType() const {
+ ~SceneOpenGL2() override;
+ CompositingType compositingType() const override {
return OpenGL2Compositing;
}
@@ -123,12 +123,12 @@ public:
QMatrix4x4 screenProjectionMatrix() const override { return m_screenProjectionMatrix; }
protected:
- virtual void paintSimpleScreen(int mask, QRegion region);
- virtual void paintGenericScreen(int mask, ScreenPaintData data);
- virtual void doPaintBackground(const QVector< float >& vertices);
- virtual Scene::Window *createWindow(Toplevel *t);
- virtual void finalDrawWindow(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data);
- virtual void updateProjectionMatrix() override;
+ void paintSimpleScreen(int mask, QRegion region) override;
+ void paintGenericScreen(int mask, ScreenPaintData data) override;
+ void doPaintBackground(const QVector< float >& vertices) override;
+ Scene::Window *createWindow(Toplevel *t) override;
+ void finalDrawWindow(EffectWindowImpl* w, int mask, QRegion region, WindowPaintData& data) override;
+ void updateProjectionMatrix() override;
void paintCursor() override;
private:
@@ -147,9 +147,9 @@ class SceneOpenGL::Window
: public Scene::Window
{
public:
- virtual ~Window();
+ ~Window() override;
bool beginRenderWindow(int mask, const QRegion &region, WindowPaintData &data);
- virtual void performPaint(int mask, QRegion region, WindowPaintData data) = 0;
+ void performPaint(int mask, QRegion region, WindowPaintData data) override = 0;
void endRenderWindow();
bool bindTexture();
void setScene(SceneOpenGL *scene) {
@@ -157,7 +157,7 @@ public:
}
protected:
- virtual WindowPixmap* createWindowPixmap();
+ WindowPixmap* createWindowPixmap() override;
Window(Toplevel* c);
enum TextureType {
Content,
@@ -201,14 +201,14 @@ public:
};
explicit SceneOpenGL2Window(Toplevel *c);
- virtual ~SceneOpenGL2Window();
+ ~SceneOpenGL2Window() override;
protected:
QMatrix4x4 modelViewProjectionMatrix(int mask, const WindowPaintData &data) const;
QVector4D modulate(float opacity, float brightness) const;
void setBlendEnabled(bool enabled);
void setupLeafNodes(LeafNode *nodes, const WindowQuadList *quads, const WindowPaintData &data);
- virtual void performPaint(int mask, QRegion region, WindowPaintData data);
+ void performPaint(int mask, QRegion region, WindowPaintData data) override;
private:
void renderSubSurface(GLShader *shader, const QMatrix4x4 &mvp, const QMatrix4x4 &windowMatrix, OpenGLWindowPixmap *pixmap, const QRegion &region, bool hardwareClipping);
@@ -222,7 +222,7 @@ class OpenGLWindowPixmap : public WindowPixmap
{
public:
explicit OpenGLWindowPixmap(Scene::Window *window, SceneOpenGL *scene);
- virtual ~OpenGLWindowPixmap();
+ ~OpenGLWindowPixmap() override;
SceneOpenGLTexture *texture() const;
bool bind();
bool isValid() const override;
@@ -239,17 +239,17 @@ class SceneOpenGL::EffectFrame
{
public:
EffectFrame(EffectFrameImpl* frame, SceneOpenGL *scene);
- virtual ~EffectFrame();
+ ~EffectFrame() override;
- virtual void free();
- virtual void freeIconFrame();
- virtual void freeTextFrame();
- virtual void freeSelection();
+ void free() override;
+ void freeIconFrame() override;
+ void freeTextFrame() override;
+ void freeSelection() override;
- virtual void render(QRegion region, double opacity, double frameOpacity);
+ void render(QRegion region, double opacity, double frameOpacity) override;
- virtual void crossFadeIcon();
- virtual void crossFadeText();
+ void crossFadeIcon() override;
+ void crossFadeText() override;
static void cleanup();
@@ -283,14 +283,14 @@ class SceneOpenGLShadow
{
public:
explicit SceneOpenGLShadow(Toplevel *toplevel);
- virtual ~SceneOpenGLShadow();
+ ~SceneOpenGLShadow() override;
GLTexture *shadowTexture() {
return m_texture.data();
}
protected:
- virtual void buildQuads();
- virtual bool prepareBackend();
+ void buildQuads() override;
+ bool prepareBackend() override;
private:
QSharedPointer<GLTexture> m_texture;
};
@@ -307,7 +307,7 @@ public:
Count
};
explicit SceneOpenGLDecorationRenderer(Decoration::DecoratedClientImpl *client);
- virtual ~SceneOpenGLDecorationRenderer();
+ ~SceneOpenGLDecorationRenderer() override;
void render() override;
void reparent(Deleted *deleted) override;
diff --git a/plugins/scenes/qpainter/scene_qpainter.h b/plugins/scenes/qpainter/scene_qpainter.h
index e7c9f9a3a..2cb03211d 100644
--- a/plugins/scenes/qpainter/scene_qpainter.h
+++ b/plugins/scenes/qpainter/scene_qpainter.h
@@ -33,15 +33,15 @@ class KWIN_EXPORT SceneQPainter : public Scene
Q_OBJECT
public:
- virtual ~SceneQPainter();
- virtual bool usesOverlayWindow() const override;
- virtual OverlayWindow* overlayWindow() override;
- virtual qint64 paint(QRegion damage, ToplevelList windows) override;
- virtual void paintGenericScreen(int mask, ScreenPaintData data) override;
- virtual CompositingType compositingType() const override;
- virtual bool initFailed() const override;
- virtual EffectFrame *createEffectFrame(EffectFrameImpl *frame) override;
- virtual Shadow *createShadow(Toplevel *toplevel) override;
+ ~SceneQPainter() override;
+ bool usesOverlayWindow() const override;
+ OverlayWindow* overlayWindow() override;
+ qint64 paint(QRegion damage, ToplevelList windows) override;
+ void paintGenericScreen(int mask, ScreenPaintData data) override;
+ CompositingType compositingType() const override;
+ bool initFailed() const override;
+ EffectFrame *createEffectFrame(EffectFrameImpl *frame) override;
+ Shadow *createShadow(Toplevel *toplevel) override;
Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *impl) override;
void screenGeometryChanged(const QSize &size) override;
@@ -59,8 +59,8 @@ public:
static SceneQPainter *createScene(QObject *parent);
protected:
- virtual void paintBackground(QRegion region) override;
- virtual Scene::Window *createWindow(Toplevel *toplevel) override;
+ void paintBackground(QRegion region) override;
+ Scene::Window *createWindow(Toplevel *toplevel) override;
void paintCursor() override;
private:
@@ -74,10 +74,10 @@ class SceneQPainter::Window : public Scene::Window
{
public:
Window(SceneQPainter *scene, Toplevel *c);
- virtual ~Window();
- virtual void performPaint(int mask, QRegion region, WindowPaintData data) override;
+ ~Window() override;
+ void performPaint(int mask, QRegion region, WindowPaintData data) override;
protected:
- virtual WindowPixmap *createWindowPixmap() override;
+ WindowPixmap *createWindowPixmap() override;
private:
void renderShadow(QPainter *painter);
void renderWindowDecorations(QPainter *painter);
@@ -88,8 +88,8 @@ class QPainterWindowPixmap : public WindowPixmap
{
public:
explicit QPainterWindowPixmap(Scene::Window *window);
- virtual ~QPainterWindowPixmap();
- virtual void create() override;
+ ~QPainterWindowPixmap() override;
+ void create() override;
bool isValid() const override;
void updateBuffer() override;
@@ -106,14 +106,14 @@ class QPainterEffectFrame : public Scene::EffectFrame
{
public:
QPainterEffectFrame(EffectFrameImpl *frame, SceneQPainter *scene);
- virtual ~QPainterEffectFrame();
- virtual void crossFadeIcon() override {}
- virtual void crossFadeText() override {}
- virtual void free() override {}
- virtual void freeIconFrame() override {}
- virtual void freeTextFrame() override {}
- virtual void freeSelection() override {}
- virtual void render(QRegion region, double opacity, double frameOpacity) override;
+ ~QPainterEffectFrame() override;
+ void crossFadeIcon() override {}
+ void crossFadeText() override {}
+ void free() override {}
+ void freeIconFrame() override {}
+ void freeTextFrame() override {}
+ void freeSelection() override {}
+ void render(QRegion region, double opacity, double frameOpacity) override;
private:
SceneQPainter *m_scene;
};
@@ -122,15 +122,15 @@ class SceneQPainterShadow : public Shadow
{
public:
SceneQPainterShadow(Toplevel* toplevel);
- virtual ~SceneQPainterShadow();
+ ~SceneQPainterShadow() override;
QImage &shadowTexture() {
return m_texture;
}
protected:
- virtual void buildQuads() override;
- virtual bool prepareBackend() override;
+ void buildQuads() override;
+ bool prepareBackend() override;
private:
QImage m_texture;
@@ -148,7 +148,7 @@ public:
Count
};
explicit SceneQPainterDecorationRenderer(Decoration::DecoratedClientImpl *client);
- virtual ~SceneQPainterDecorationRenderer();
+ ~SceneQPainterDecorationRenderer() override;
void render() override;
void reparent(Deleted *deleted) override;
diff --git a/plugins/scenes/xrender/scene_xrender.h b/plugins/scenes/xrender/scene_xrender.h
index 04bc66cae..d23f6bd94 100644
--- a/plugins/scenes/xrender/scene_xrender.h
+++ b/plugins/scenes/xrender/scene_xrender.h
@@ -130,13 +130,13 @@ class X11XRenderBackend : public XRenderBackend
{
public:
X11XRenderBackend();
- ~X11XRenderBackend();
+ ~X11XRenderBackend() override;
- virtual void present(int mask, const QRegion &damage);
- virtual OverlayWindow* overlayWindow();
- virtual void showOverlay();
- virtual void screenGeometryChanged(const QSize &size);
- virtual bool usesOverlayWindow() const;
+ void present(int mask, const QRegion &damage) override;
+ OverlayWindow* overlayWindow() override;
+ void showOverlay() override;
+ void screenGeometryChanged(const QSize &size) override;
+ bool usesOverlayWindow() const override;
private:
void init(bool createOverlay);
void createBuffer();
@@ -151,23 +151,23 @@ class SceneXrender
Q_OBJECT
public:
class EffectFrame;
- virtual ~SceneXrender();
- virtual bool initFailed() const;
- virtual CompositingType compositingType() const {
+ ~SceneXrender() override;
+ bool initFailed() const override;
+ CompositingType compositingType() const override {
return XRenderCompositing;
}
- virtual qint64 paint(QRegion damage, ToplevelList windows);
- virtual Scene::EffectFrame *createEffectFrame(EffectFrameImpl *frame);
- virtual Shadow *createShadow(Toplevel *toplevel);
- virtual void screenGeometryChanged(const QSize &size);
+ qint64 paint(QRegion damage, ToplevelList windows) override;
+ Scene::EffectFrame *createEffectFrame(EffectFrameImpl *frame) override;
+ Shadow *createShadow(Toplevel *toplevel) override;
+ void screenGeometryChanged(const QSize &size) override;
xcb_render_picture_t xrenderBufferPicture() const override;
- virtual OverlayWindow *overlayWindow() {
+ OverlayWindow *overlayWindow() override {
return m_backend->overlayWindow();
}
- virtual bool usesOverlayWindow() const {
+ bool usesOverlayWindow() const override {
return m_backend->usesOverlayWindow();
}
- Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *client);
+ Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *client) override;
bool animationsSupported() const override {
return true;
@@ -175,10 +175,10 @@ public:
static SceneXrender *createScene(QObject *parent);
protected:
- virtual Scene::Window *createWindow(Toplevel *toplevel);
- virtual void paintBackground(QRegion region);
- virtual void paintGenericScreen(int mask, ScreenPaintData data);
- virtual void paintDesktop(int desktop, int mask, const QRegion &region, ScreenPaintData &data);
+ Scene::Window *createWindow(Toplevel *toplevel) override;
+ void paintBackground(QRegion region) override;
+ void paintGenericScreen(int mask, ScreenPaintData data) override;
+ void paintDesktop(int desktop, int mask, const QRegion &region, ScreenPaintData &data) override;
void paintCursor() override;
private:
explicit SceneXrender(XRenderBackend *backend, QObject *parent = nullptr);
@@ -192,13 +192,13 @@ class SceneXrender::Window
{
public:
Window(Toplevel* c, SceneXrender *scene);
- virtual ~Window();
- virtual void performPaint(int mask, QRegion region, WindowPaintData data);
+ ~Window() override;
+ void performPaint(int mask, QRegion region, WindowPaintData data) override;
QRegion transformedShape() const;
void setTransformedShape(const QRegion& shape);
static void cleanup();
protected:
- virtual WindowPixmap* createWindowPixmap();
+ WindowPixmap* createWindowPixmap() override;
private:
QRect mapToScreen(int mask, const WindowPaintData &data, const QRect &rect) const;
QPoint mapToScreen(int mask, const WindowPaintData &data, const QPoint &point) const;
@@ -216,9 +216,9 @@ class XRenderWindowPixmap : public WindowPixmap
{
public:
explicit XRenderWindowPixmap(Scene::Window *window, xcb_render_pictformat_t format);
- virtual ~XRenderWindowPixmap();
+ ~XRenderWindowPixmap() override;
xcb_render_picture_t picture() const;
- virtual void create();
+ void create() override;
private:
xcb_render_picture_t m_picture;
xcb_render_pictformat_t m_format;
@@ -229,15 +229,15 @@ class SceneXrender::EffectFrame
{
public:
EffectFrame(EffectFrameImpl* frame);
- virtual ~EffectFrame();
-
- virtual void free();
- virtual void freeIconFrame();
- virtual void freeTextFrame();
- virtual void freeSelection();
- virtual void crossFadeIcon();
- virtual void crossFadeText();
- virtual void render(QRegion region, double opacity, double frameOpacity);
+ ~EffectFrame() override;
+
+ void free() override;
+ void freeIconFrame() override;
+ void freeTextFrame() override;
+ void freeSelection() override;
+ void crossFadeIcon() override;
+ void crossFadeText() override;
+ void render(QRegion region, double opacity, double frameOpacity) override;
static void cleanup();
private:
@@ -299,7 +299,7 @@ public:
using Shadow::ShadowElementTopLeft;
using Shadow::ShadowElementsCount;
using Shadow::shadowPixmap;
- virtual ~SceneXRenderShadow();
+ ~SceneXRenderShadow() override;
void layoutShadowRects(QRect& top, QRect& topRight,
QRect& right, QRect& bottomRight,
@@ -308,8 +308,8 @@ public:
xcb_render_picture_t picture(ShadowElements element) const;
protected:
- virtual void buildQuads();
- virtual bool prepareBackend();
+ void buildQuads() override;
+ bool prepareBackend() override;
private:
XRenderPicture* m_pictures[ShadowElementsCount];
};
@@ -326,7 +326,7 @@ public:
Count
};
explicit SceneXRenderDecorationRenderer(Decoration::DecoratedClientImpl *client);
- virtual ~SceneXRenderDecorationRenderer();
+ ~SceneXRenderDecorationRenderer() override;
void render() override;
void reparent(Deleted *deleted) override;
diff --git a/pointer_input.h b/pointer_input.h
index 8bdc0d99f..79b3ce25a 100644
--- a/pointer_input.h
+++ b/pointer_input.h
@@ -61,9 +61,9 @@ class KWIN_EXPORT PointerInputRedirection : public InputDeviceHandler
Q_OBJECT
public:
explicit PointerInputRedirection(InputRedirection *parent);
- virtual ~PointerInputRedirection();
+ ~PointerInputRedirection() override;
- void init();
+ void init() override;
void updateAfterScreenChange();
bool supportsWarping() const;
@@ -184,7 +184,7 @@ class CursorImage : public QObject
Q_OBJECT
public:
explicit CursorImage(PointerInputRedirection *parent = nullptr);
- virtual ~CursorImage();
+ ~CursorImage() override;
void setEffectsOverrideCursor(Qt::CursorShape shape);
void removeEffectsOverrideCursor();
diff --git a/rules.h b/rules.h
index 278f4c7b8..0d243b640 100644
--- a/rules.h
+++ b/rules.h
@@ -295,7 +295,7 @@ class KWIN_EXPORT RuleBook : public QObject
{
Q_OBJECT
public:
- virtual ~RuleBook();
+ ~RuleBook() override;
WindowRules find(const AbstractClient*, bool);
void discardUsed(AbstractClient* c, bool withdraw);
void setUpdatesDisabled(bool disable);
diff --git a/scene.h b/scene.h
index 7db70fa89..0e511a118 100644
--- a/scene.h
+++ b/scene.h
@@ -62,7 +62,7 @@ class KWIN_EXPORT Scene : public QObject
Q_OBJECT
public:
explicit Scene(QObject *parent = nullptr);
- virtual ~Scene() = 0;
+ ~Scene() override = 0;
class EffectFrame;
class Window;
@@ -262,7 +262,7 @@ class KWIN_EXPORT SceneFactory : public QObject
{
Q_OBJECT
public:
- virtual ~SceneFactory();
+ ~SceneFactory() override;
/**
* @returns The created Scene, may be @c nullptr.
diff --git a/screenedge.h b/screenedge.h
index 5255d0da5..d302a9232 100644
--- a/screenedge.h
+++ b/screenedge.h
@@ -54,7 +54,7 @@ class KWIN_EXPORT Edge : public QObject
Q_OBJECT
public:
explicit Edge(ScreenEdges *parent);
- virtual ~Edge();
+ ~Edge() override;
bool isLeft() const;
bool isTop() const;
bool isRight() const;
@@ -216,7 +216,7 @@ class KWIN_EXPORT ScreenEdges : public QObject
Q_PROPERTY(int actionBottomLeft READ actionBottomLeft)
Q_PROPERTY(int actionLeft READ actionLeft)
public:
- virtual ~ScreenEdges();
+ ~ScreenEdges() override;
/**
* @internal
**/
diff --git a/screenlockerwatcher.h b/screenlockerwatcher.h
index 99bc50344..ee1dd52ab 100644
--- a/screenlockerwatcher.h
+++ b/screenlockerwatcher.h
@@ -35,7 +35,7 @@ class KWIN_EXPORT ScreenLockerWatcher : public QObject
{
Q_OBJECT
public:
- virtual ~ScreenLockerWatcher();
+ ~ScreenLockerWatcher() override;
bool isLocked() const {
return m_locked;
}
diff --git a/screens.h b/screens.h
index cde800353..654c076a6 100644
--- a/screens.h
+++ b/screens.h
@@ -45,7 +45,7 @@ class KWIN_EXPORT Screens : public QObject
Q_PROPERTY(bool currentFollowsMouse READ isCurrentFollowsMouse WRITE setCurrentFollowsMouse)
public:
- virtual ~Screens();
+ ~Screens() override;
/**
* @internal
**/
@@ -222,7 +222,7 @@ class KWIN_EXPORT BasicScreens : public Screens
Q_OBJECT
public:
BasicScreens(Platform *backend, QObject *parent = nullptr);
- virtual ~BasicScreens();
+ ~BasicScreens() override;
void init() override;
QRect geometry(int screen) const override;
diff --git a/scripting/dbuscall.h b/scripting/dbuscall.h
index ba2fa9b39..7b9391251 100644
--- a/scripting/dbuscall.h
+++ b/scripting/dbuscall.h
@@ -82,7 +82,7 @@ class DBusCall : public QObject
Q_PROPERTY(QVariantList arguments READ arguments WRITE setArguments NOTIFY argumentsChanged)
public:
explicit DBusCall(QObject* parent = 0);
- virtual ~DBusCall();
+ ~DBusCall() override;
const QString &service() const;
const QString &path() const;
diff --git a/scripting/genericscriptedconfig.h b/scripting/genericscriptedconfig.h
index 0ba73476a..8d123c63c 100644
--- a/scripting/genericscriptedconfig.h
+++ b/scripting/genericscriptedconfig.h
@@ -46,10 +46,10 @@ class GenericScriptedConfig : public KCModule
public:
GenericScriptedConfig(const QString &componentName, const QString &keyword, QWidget *parent, const QVariantList &args);
- virtual ~GenericScriptedConfig();
+ ~GenericScriptedConfig() override;
public Q_SLOTS:
- virtual void save();
+ void save() override;
protected:
const QString &packageName() const;
@@ -68,11 +68,11 @@ class ScriptedEffectConfig : public GenericScriptedConfig
Q_OBJECT
public:
ScriptedEffectConfig(const QString &componentName, const QString &keyword, QWidget *parent, const QVariantList &args);
- virtual ~ScriptedEffectConfig();
+ ~ScriptedEffectConfig() override;
protected:
- virtual QString typeName() const;
- virtual KConfigGroup configGroup();
- virtual void reload();
+ QString typeName() const override;
+ KConfigGroup configGroup() override;
+ void reload() override;
};
class ScriptingConfig : public GenericScriptedConfig
@@ -80,12 +80,12 @@ class ScriptingConfig : public GenericScriptedConfig
Q_OBJECT
public:
ScriptingConfig(const QString &componentName, const QString &keyword, QWidget *parent, const QVariantList &args);
- virtual ~ScriptingConfig();
+ ~ScriptingConfig() override;
protected:
- virtual QString typeName() const;
- virtual KConfigGroup configGroup();
- virtual void reload();
+ QString typeName() const override;
+ KConfigGroup configGroup() override;
+ void reload() override;
};
inline
diff --git a/scripting/screenedgeitem.h b/scripting/screenedgeitem.h
index 912a97f27..4ebcabf2b 100644
--- a/scripting/screenedgeitem.h
+++ b/scripting/screenedgeitem.h
@@ -84,7 +84,7 @@ public:
Touch
};
explicit ScreenEdgeItem(QObject *parent = 0);
- virtual ~ScreenEdgeItem();
+ ~ScreenEdgeItem() override;
bool isEnabled() const;
Edge edge() const;
Mode mode() const {
diff --git a/scripting/scriptedeffect.h b/scripting/scriptedeffect.h
index 956f3ada8..be4215f78 100644
--- a/scripting/scriptedeffect.h
+++ b/scripting/scriptedeffect.h
@@ -63,7 +63,7 @@ public:
const QString &scriptFile() const {
return m_scriptFile;
}
- virtual void reconfigure(ReconfigureFlags flags);
+ void reconfigure(ReconfigureFlags flags) override;
int requestedEffectChainPosition() const override {
return m_chainPosition;
}
@@ -72,7 +72,7 @@ public:
static ScriptedEffect *create(const QString &effectName, const QString &pathToScript, int chainPosition);
static ScriptedEffect *create(const KPluginMetaData &effect);
static bool supported();
- virtual ~ScriptedEffect();
+ ~ScriptedEffect() override;
/**
* Whether another effect has grabbed the @p w with the given @p grabRole.
* @param w The window to check
@@ -131,7 +131,7 @@ public Q_SLOTS:
bool redirect(quint64 animationId, Direction direction, TerminationFlags terminationFlags = TerminateAtSource);
bool complete(quint64 animationId);
bool cancel(quint64 animationId) { return AnimationEffect::cancel(animationId); }
- virtual bool borderActivated(ElectricBorder border);
+ bool borderActivated(ElectricBorder border) override;
Q_SIGNALS:
/**
@@ -145,7 +145,7 @@ protected:
ScriptedEffect();
QScriptEngine *engine() const;
bool init(const QString &effectName, const QString &pathToScript);
- void animationEnded(KWin::EffectWindow *w, Attribute a, uint meta);
+ void animationEnded(KWin::EffectWindow *w, Attribute a, uint meta) override;
private Q_SLOTS:
void signalHandlerException(const QScriptValue &value);
diff --git a/scripting/scripting.h b/scripting/scripting.h
index a7d013d29..1a9e0aca9 100644
--- a/scripting/scripting.h
+++ b/scripting/scripting.h
@@ -58,7 +58,7 @@ class KWIN_EXPORT AbstractScript : public QObject
Q_OBJECT
public:
AbstractScript(int id, QString scriptName, QString pluginName, QObject *parent = nullptr);
- ~AbstractScript();
+ ~AbstractScript() override;
QString fileName() const {
return m_fileName;
}
@@ -221,7 +221,7 @@ class Script : public AbstractScript
public:
Script(int id, QString scriptName, QString pluginName, QObject *parent = nullptr);
- virtual ~Script();
+ ~Script() override;
QScriptEngine *engine() {
return m_engine;
}
@@ -230,7 +230,7 @@ public:
bool unregisterTouchScreenCallback(int edge);
public Q_SLOTS:
- Q_SCRIPTABLE void run();
+ Q_SCRIPTABLE void run() override;
Q_SIGNALS:
Q_SCRIPTABLE void printError(const QString &text);
@@ -263,7 +263,7 @@ class ScriptUnloaderAgent : public QScriptEngineAgent
{
public:
explicit ScriptUnloaderAgent(Script *script);
- virtual void scriptUnload(qint64 id);
+ void scriptUnload(qint64 id) override;
private:
Script *m_script;
@@ -275,10 +275,10 @@ class DeclarativeScript : public AbstractScript
Q_CLASSINFO("D-Bus Interface", "org.kde.kwin.Scripting")
public:
explicit DeclarativeScript(int id, QString scriptName, QString pluginName, QObject *parent = nullptr);
- virtual ~DeclarativeScript();
+ ~DeclarativeScript() override;
public Q_SLOTS:
- Q_SCRIPTABLE void run();
+ Q_SCRIPTABLE void run() override;
private Q_SLOTS:
void createComponent();
@@ -315,7 +315,7 @@ public:
ScreenArea
};
explicit JSEngineGlobalMethodsWrapper(DeclarativeScript *parent);
- virtual ~JSEngineGlobalMethodsWrapper();
+ ~JSEngineGlobalMethodsWrapper() override;
public Q_SLOTS:
QVariant readConfig(const QString &key, QVariant defaultValue = QVariant());
@@ -346,7 +346,7 @@ private:
void runScripts();
public:
- ~Scripting();
+ ~Scripting() override;
Q_SCRIPTABLE Q_INVOKABLE int loadScript(const QString &filePath, const QString &pluginName = QString());
Q_SCRIPTABLE Q_INVOKABLE int loadDeclarativeScript(const QString &filePath, const QString &pluginName = QString());
Q_SCRIPTABLE Q_INVOKABLE bool isScriptLoaded(const QString &pluginName) const;
diff --git a/scripting/scripting_model.h b/scripting/scripting_model.h
index 6e66343af..1b44da2fd 100644
--- a/scripting/scripting_model.h
+++ b/scripting/scripting_model.h
@@ -68,12 +68,12 @@ public:
Q_DECLARE_FLAGS(LevelRestrictions, LevelRestriction)
Q_FLAGS(LevelRestrictions)
explicit ClientModel(QObject *parent);
- virtual ~ClientModel();
- virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
- virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
- virtual QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const;
- virtual QModelIndex parent(const QModelIndex &child) const;
- virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
+ ~ClientModel() override;
+ int columnCount(const QModelIndex &parent = QModelIndex()) const override;
+ QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override;
+ QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const override;
+ QModelIndex parent(const QModelIndex &child) const override;
+ int rowCount(const QModelIndex &parent = QModelIndex()) const override;
void setExclusions(ClientModel::Exclusions exclusions);
Exclusions exclusions() const;
@@ -130,7 +130,7 @@ class AbstractLevel : public QObject
{
Q_OBJECT
public:
- virtual ~AbstractLevel();
+ ~AbstractLevel() override;
virtual int count() const = 0;
virtual void init() = 0;
virtual quint32 idForRow(int row) const = 0;
@@ -179,18 +179,18 @@ class ForkLevel : public AbstractLevel
Q_OBJECT
public:
ForkLevel(const QList<ClientModel::LevelRestriction> &childRestrictions, ClientModel *model, AbstractLevel *parent);
- virtual ~ForkLevel();
- virtual int count() const;
- virtual void init();
- virtual quint32 idForRow(int row) const;
+ ~ForkLevel() override;
+ int count() const override;
+ void init() override;
+ quint32 idForRow(int row) const override;
void addChild(AbstractLevel *child);
- virtual void setScreen(uint screen);
- virtual void setVirtualDesktop(uint virtualDesktop);
- virtual void setActivity(const QString &activity);
- virtual const AbstractLevel *levelForId(quint32 id) const;
- virtual AbstractLevel *parentForId(quint32 child) const;
- virtual int rowForId(quint32 child) const;
- virtual AbstractClient *clientForId(quint32 child) const override;
+ void setScreen(uint screen) override;
+ void setVirtualDesktop(uint virtualDesktop) override;
+ void setActivity(const QString &activity) override;
+ const AbstractLevel *levelForId(quint32 id) const override;
+ AbstractLevel *parentForId(quint32 child) const override;
+ int rowForId(quint32 child) const override;
+ AbstractClient *clientForId(quint32 child) const override;
private Q_SLOTS:
void desktopCountChanged(uint previousCount, uint newCount);
void screenCountChanged(int previousCount, int newCount);
@@ -216,17 +216,17 @@ class ClientLevel : public AbstractLevel
Q_OBJECT
public:
explicit ClientLevel(ClientModel *model, AbstractLevel *parent);
- virtual ~ClientLevel();
+ ~ClientLevel() override;
- void init();
+ void init() override;
- int count() const;
- quint32 idForRow(int row) const;
+ int count() const override;
+ quint32 idForRow(int row) const override;
bool containsId(quint32 id) const;
- int rowForId(quint32 row) const;
- AbstractClient *clientForId(quint32 child) const;
- virtual const AbstractLevel *levelForId(quint32 id) const;
- virtual AbstractLevel *parentForId(quint32 child) const override;
+ int rowForId(quint32 row) const override;
+ AbstractClient *clientForId(quint32 child) const override;
+ const AbstractLevel *levelForId(quint32 id) const override;
+ AbstractLevel *parentForId(quint32 child) const override;
public Q_SLOTS:
void clientAdded(KWin::AbstractClient *client);
void clientRemoved(KWin::AbstractClient *client);
@@ -249,7 +249,7 @@ class SimpleClientModel : public ClientModel
Q_OBJECT
public:
SimpleClientModel(QObject *parent = nullptr);
- virtual ~SimpleClientModel();
+ ~SimpleClientModel() override;
};
class ClientModelByScreen : public ClientModel
@@ -257,7 +257,7 @@ class ClientModelByScreen : public ClientModel
Q_OBJECT
public:
ClientModelByScreen(QObject *parent = nullptr);
- virtual ~ClientModelByScreen();
+ ~ClientModelByScreen() override;
};
class ClientModelByScreenAndDesktop : public ClientModel
@@ -265,7 +265,7 @@ class ClientModelByScreenAndDesktop : public ClientModel
Q_OBJECT
public:
ClientModelByScreenAndDesktop(QObject *parent = nullptr);
- virtual ~ClientModelByScreenAndDesktop();
+ ~ClientModelByScreenAndDesktop() override;
};
/**
@@ -279,7 +279,7 @@ class ClientFilterModel : public QSortFilterProxyModel
Q_PROPERTY(QString filter READ filter WRITE setFilter NOTIFY filterChanged)
public:
ClientFilterModel(QObject *parent = nullptr);
- virtual ~ClientFilterModel();
+ ~ClientFilterModel() override;
ClientModel *clientModel() const;
const QString &filter() const;
@@ -288,7 +288,7 @@ public Q_SLOTS:
void setFilter(const QString &filter);
protected:
- virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const;
+ bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override;
Q_SIGNALS:
void clientModelChanged();
diff --git a/shadow.h b/shadow.h
index fac7f48eb..b423f5f51 100644
--- a/shadow.h
+++ b/shadow.h
@@ -62,7 +62,7 @@ class KWIN_EXPORT Shadow : public QObject
{
Q_OBJECT
public:
- virtual ~Shadow();
+ ~Shadow() override;
/**
* @return Region of the shadow.
diff --git a/shell_client.h b/shell_client.h
index 04155ae0b..2b3085fde 100644
--- a/shell_client.h
+++ b/shell_client.h
@@ -56,7 +56,7 @@ public:
ShellClient(KWayland::Server::ShellSurfaceInterface *surface);
ShellClient(KWayland::Server::XdgShellSurfaceInterface *surface);
ShellClient(KWayland::Server::XdgShellPopupInterface *surface);
- virtual ~ShellClient();
+ ~ShellClient() override;
bool eventFilter(QObject *watched, QEvent *event) override;
diff --git a/sm.h b/sm.h
index 529187d84..b00cb3588 100644
--- a/sm.h
+++ b/sm.h
@@ -85,7 +85,7 @@ class KWIN_EXPORT SessionSaveDoneHelper
Q_OBJECT
public:
SessionSaveDoneHelper();
- virtual ~SessionSaveDoneHelper();
+ ~SessionSaveDoneHelper() override;
SmcConn connection() const {
return conn;
}
diff --git a/tabbox/clientmodel.h b/tabbox/clientmodel.h
index 5815bc192..43b88dd21 100644
--- a/tabbox/clientmodel.h
+++ b/tabbox/clientmodel.h
@@ -58,12 +58,12 @@ public:
CloseableRole = Qt::UserRole + 7 ///< TabBoxClient can be closed
};
explicit ClientModel(QObject* parent = nullptr);
- ~ClientModel();
- virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
- virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
- virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
- virtual QModelIndex parent(const QModelIndex& child) const;
- virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
+ ~ClientModel() override;
+ QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
+ int columnCount(const QModelIndex& parent = QModelIndex()) const override;
+ int rowCount(const QModelIndex& parent = QModelIndex()) const override;
+ QModelIndex parent(const QModelIndex& child) const override;
+ QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override;
Q_INVOKABLE QString longestCaption() const;
/**
diff --git a/tabbox/desktopchain.h b/tabbox/desktopchain.h
index e2505c9c1..c74324711 100644
--- a/tabbox/desktopchain.h
+++ b/tabbox/desktopchain.h
@@ -89,7 +89,7 @@ class DesktopChainManager : public QObject
public:
explicit DesktopChainManager(QObject *parent = nullptr);
- virtual ~DesktopChainManager();
+ ~DesktopChainManager() override;
/**
* Returns the next virtual desktop starting from @p indexDesktop in the currently used chain.
diff --git a/tabbox/desktopmodel.h b/tabbox/desktopmodel.h
index e154140dd..4c5f6d3d6 100644
--- a/tabbox/desktopmodel.h
+++ b/tabbox/desktopmodel.h
@@ -52,13 +52,13 @@ public:
ClientModelRole = Qt::UserRole + 2 ///< Clients on this desktop
};
explicit DesktopModel(QObject* parent = nullptr);
- ~DesktopModel();
+ ~DesktopModel() override;
- virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const;
- virtual int columnCount(const QModelIndex& parent = QModelIndex()) const;
- virtual int rowCount(const QModelIndex& parent = QModelIndex()) const;
- virtual QModelIndex parent(const QModelIndex& child) const;
- virtual QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const;
+ QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override;
+ int columnCount(const QModelIndex& parent = QModelIndex()) const override;
+ int rowCount(const QModelIndex& parent = QModelIndex()) const override;
+ QModelIndex parent(const QModelIndex& child) const override;
+ QModelIndex index(int row, int column, const QModelIndex& parent = QModelIndex()) const override;
Q_INVOKABLE QString longestCaption() const;
/**
diff --git a/tabbox/switcheritem.h b/tabbox/switcheritem.h
index 53c7ca829..7f4ff9bca 100644
--- a/tabbox/switcheritem.h
+++ b/tabbox/switcheritem.h
@@ -48,7 +48,7 @@ class SwitcherItem : public QObject
Q_CLASSINFO("DefaultProperty", "item")
public:
SwitcherItem(QObject *parent = nullptr);
- virtual ~SwitcherItem();
+ ~SwitcherItem() override;
QAbstractItemModel *model() const;
QRect screenGeometry() const;
diff --git a/tabbox/tabbox.h b/tabbox/tabbox.h
index 8aef8ffa0..14234f382 100644
--- a/tabbox/tabbox.h
+++ b/tabbox/tabbox.h
@@ -51,27 +51,27 @@ class TabBoxHandlerImpl : public TabBoxHandler
{
public:
explicit TabBoxHandlerImpl(TabBox* tabBox);
- virtual ~TabBoxHandlerImpl();
-
- virtual int activeScreen() const;
- virtual QWeakPointer< TabBoxClient > activeClient() const;
- virtual int currentDesktop() const;
- virtual QString desktopName(TabBoxClient* client) const;
- virtual QString desktopName(int desktop) const;
- virtual bool isKWinCompositing() const;
- virtual QWeakPointer< TabBoxClient > nextClientFocusChain(TabBoxClient* client) const;
- virtual QWeakPointer< TabBoxClient > firstClientFocusChain() const;
- virtual bool isInFocusChain (TabBoxClient* client) const;
- virtual int nextDesktopFocusChain(int desktop) const;
- virtual int numberOfDesktops() const;
- virtual TabBoxClientList stackingOrder() const;
- virtual void elevateClient(TabBoxClient* c, QWindow *tabbox, bool elevate) const;
- virtual void raiseClient(TabBoxClient *client) const;
- virtual void restack(TabBoxClient *c, TabBoxClient *under);
- virtual void shadeClient(TabBoxClient *c, bool b) const;
- virtual QWeakPointer< TabBoxClient > clientToAddToList(KWin::TabBox::TabBoxClient* client, int desktop) const;
- virtual QWeakPointer< TabBoxClient > desktopClient() const;
- virtual void activateAndClose();
+ ~TabBoxHandlerImpl() override;
+
+ int activeScreen() const override;
+ QWeakPointer< TabBoxClient > activeClient() const override;
+ int currentDesktop() const override;
+ QString desktopName(TabBoxClient* client) const override;
+ QString desktopName(int desktop) const override;
+ bool isKWinCompositing() const override;
+ QWeakPointer< TabBoxClient > nextClientFocusChain(TabBoxClient* client) const override;
+ QWeakPointer< TabBoxClient > firstClientFocusChain() const override;
+ bool isInFocusChain (TabBoxClient* client) const override;
+ int nextDesktopFocusChain(int desktop) const override;
+ int numberOfDesktops() const override;
+ TabBoxClientList stackingOrder() const override;
+ void elevateClient(TabBoxClient* c, QWindow *tabbox, bool elevate) const override;
+ void raiseClient(TabBoxClient *client) const override;
+ void restack(TabBoxClient *c, TabBoxClient *under) override;
+ void shadeClient(TabBoxClient *c, bool b) const override;
+ QWeakPointer< TabBoxClient > clientToAddToList(KWin::TabBox::TabBoxClient* client, int desktop) const override;
+ QWeakPointer< TabBoxClient > desktopClient() const override;
+ void activateAndClose() override;
void highlightWindows(TabBoxClient *window = nullptr, QWindow *controller = nullptr) override;
bool noModifierGrab() const override;
@@ -90,19 +90,19 @@ class TabBoxClientImpl : public TabBoxClient
{
public:
explicit TabBoxClientImpl(AbstractClient *client);
- virtual ~TabBoxClientImpl();
-
- virtual QString caption() const;
- virtual QIcon icon() const override;
- virtual WId window() const;
- virtual bool isMinimized() const;
- virtual int x() const;
- virtual int y() const;
- virtual int width() const;
- virtual int height() const;
- virtual bool isCloseable() const;
- virtual void close();
- virtual bool isFirstInTabBox() const;
+ ~TabBoxClientImpl() override;
+
+ QString caption() const override;
+ QIcon icon() const override;
+ WId window() const override;
+ bool isMinimized() const override;
+ int x() const override;
+ int y() const override;
+ int width() const override;
+ int height() const override;
+ bool isCloseable() const override;
+ void close() override;
+ bool isFirstInTabBox() const override;
AbstractClient* client() const {
return m_client;
@@ -116,7 +116,7 @@ class KWIN_EXPORT TabBox : public QObject
{
Q_OBJECT
public:
- ~TabBox();
+ ~TabBox() override;
AbstractClient *currentClient();
QList<AbstractClient*> currentClientList();
diff --git a/tabbox/tabboxhandler.h b/tabbox/tabboxhandler.h
index b7d158d83..3d5b3eaa9 100644
--- a/tabbox/tabboxhandler.h
+++ b/tabbox/tabboxhandler.h
@@ -96,7 +96,7 @@ class TabBoxHandler : public QObject
Q_OBJECT
public:
TabBoxHandler(QObject *parent);
- virtual ~TabBoxHandler();
+ ~TabBoxHandler() override;
/**
* @return The id of the active screen
diff --git a/tabletmodemanager.h b/tabletmodemanager.h
index 83ee27cfc..2a28c915e 100644
--- a/tabletmodemanager.h
+++ b/tabletmodemanager.h
@@ -38,7 +38,7 @@ class TabletModeManager : public QObject
Q_PROPERTY(bool tabletMode READ isTablet NOTIFY tabletModeChanged)
public:
- ~TabletModeManager() = default;
+ ~TabletModeManager() override = default;
bool isTabletModeAvailable() const;
diff --git a/tests/cursorhotspottest.cpp b/tests/cursorhotspottest.cpp
index efc3916e3..ad72be8b8 100644
--- a/tests/cursorhotspottest.cpp
+++ b/tests/cursorhotspottest.cpp
@@ -28,7 +28,7 @@ class MouseCursorWidget : public QWidget
Q_OBJECT
public:
explicit MouseCursorWidget();
- ~MouseCursorWidget();
+ ~MouseCursorWidget() override;
protected:
void paintEvent(QPaintEvent * event) override;
diff --git a/tests/pointergesturestest.cpp b/tests/pointergesturestest.cpp
index f096de729..7f433981c 100644
--- a/tests/pointergesturestest.cpp
+++ b/tests/pointergesturestest.cpp
@@ -38,7 +38,7 @@ class PinchGesture : public QQuickItem
public:
explicit PinchGesture(QQuickItem *parent = nullptr);
- virtual ~PinchGesture();
+ ~PinchGesture() override;
qreal scale() const {
return m_scale;
diff --git a/tests/screenedgeshowtest.cpp b/tests/screenedgeshowtest.cpp
index 804fd366d..9fbaf1927 100644
--- a/tests/screenedgeshowtest.cpp
+++ b/tests/screenedgeshowtest.cpp
@@ -51,7 +51,7 @@ protected:
virtual void restore() = 0;
public:
- virtual ~ScreenEdgeHelper();
+ ~ScreenEdgeHelper() override;
virtual void hide() = 0;
virtual void raiseOrShow(bool raise) = 0;
@@ -78,7 +78,7 @@ class ScreenEdgeHelperX11 : public ScreenEdgeHelper
Q_OBJECT
public:
ScreenEdgeHelperX11(QWidget *widget, QObject *parent = nullptr);
- virtual ~ScreenEdgeHelperX11() = default;
+ ~ScreenEdgeHelperX11() override = default;
void hide() override;
void raiseOrShow(bool raise) override;
@@ -103,7 +103,7 @@ class ScreenEdgeHelperWayland : public ScreenEdgeHelper
Q_OBJECT
public:
ScreenEdgeHelperWayland(QWidget *widget, QObject *parent = nullptr);
- virtual ~ScreenEdgeHelperWayland() = default;
+ ~ScreenEdgeHelperWayland() override = default;
void hide() override;
void raiseOrShow(bool raise) override;
diff --git a/tests/waylandclienttest.h b/tests/waylandclienttest.h
index 7d8b54a88..652556339 100644
--- a/tests/waylandclienttest.h
+++ b/tests/waylandclienttest.h
@@ -46,7 +46,7 @@ class WaylandClientTest : public QObject
Q_OBJECT
public:
explicit WaylandClientTest(QObject *parent = nullptr);
- virtual ~WaylandClientTest();
+ ~WaylandClientTest() override;
private:
void init();
diff --git a/thumbnailitem.h b/thumbnailitem.h
index d57939bac..ded8f4757 100644
--- a/thumbnailitem.h
+++ b/thumbnailitem.h
@@ -39,7 +39,7 @@ class AbstractThumbnailItem : public QQuickPaintedItem
Q_PROPERTY(qreal saturation READ saturation WRITE setSaturation NOTIFY saturationChanged)
Q_PROPERTY(QQuickItem *clipTo READ clipTo WRITE setClipTo NOTIFY clipToChanged)
public:
- virtual ~AbstractThumbnailItem();
+ ~AbstractThumbnailItem() override;
qreal brightness() const;
qreal saturation() const;
QQuickItem *clipTo() const;
@@ -80,7 +80,7 @@ class WindowThumbnailItem : public AbstractThumbnailItem
Q_PROPERTY(KWin::AbstractClient *client READ client WRITE setClient NOTIFY clientChanged)
public:
explicit WindowThumbnailItem(QQuickItem *parent = 0);
- virtual ~WindowThumbnailItem();
+ ~WindowThumbnailItem() override;
qulonglong wId() const {
return m_wId;
@@ -88,12 +88,12 @@ public:
void setWId(qulonglong wId);
AbstractClient *client() const;
void setClient(AbstractClient *client);
- virtual void paint(QPainter *painter);
+ void paint(QPainter *painter) override;
Q_SIGNALS:
void wIdChanged(qulonglong wid);
void clientChanged();
protected Q_SLOTS:
- virtual void repaint(KWin::EffectWindow* w);
+ void repaint(KWin::EffectWindow* w) override;
private:
qulonglong m_wId;
AbstractClient *m_client;
@@ -105,17 +105,17 @@ class DesktopThumbnailItem : public AbstractThumbnailItem
Q_PROPERTY(int desktop READ desktop WRITE setDesktop NOTIFY desktopChanged)
public:
DesktopThumbnailItem(QQuickItem *parent = 0);
- virtual ~DesktopThumbnailItem();
+ ~DesktopThumbnailItem() override;
int desktop() const {
return m_desktop;
}
void setDesktop(int desktop);
- virtual void paint(QPainter *painter);
+ void paint(QPainter *painter) override;
Q_SIGNALS:
void desktopChanged(int desktop);
protected Q_SLOTS:
- virtual void repaint(KWin::EffectWindow* w);
+ void repaint(KWin::EffectWindow* w) override;
private:
int m_desktop;
};
diff --git a/toplevel.h b/toplevel.h
index 85710abfa..0d8ccd243 100644
--- a/toplevel.h
+++ b/toplevel.h
@@ -545,7 +545,7 @@ protected Q_SLOTS:
void setReadyForPainting();
protected:
- virtual ~Toplevel();
+ ~Toplevel() override;
void setWindowHandles(xcb_window_t client);
void detectShape(Window id);
virtual void propertyNotifyEvent(xcb_property_notify_event_t *e);
diff --git a/touch_input.h b/touch_input.h
index 529f85e22..526d125e6 100644
--- a/touch_input.h
+++ b/touch_input.h
@@ -48,11 +48,11 @@ class TouchInputRedirection : public InputDeviceHandler
Q_OBJECT
public:
explicit TouchInputRedirection(InputRedirection *parent);
- virtual ~TouchInputRedirection();
+ ~TouchInputRedirection() override;
bool positionValid() const override;
bool focusUpdatesBlocked() override;
- void init();
+ void init() override;
void processDown(qint32 id, const QPointF &pos, quint32 time, LibInput::Device *device = nullptr);
void processUp(qint32 id, quint32 time, LibInput::Device *device = nullptr);
diff --git a/unmanaged.h b/unmanaged.h
index ace1fe5f0..b95cb6141 100644
--- a/unmanaged.h
+++ b/unmanaged.h
@@ -37,24 +37,24 @@ public:
bool windowEvent(xcb_generic_event_t *e);
bool track(Window w);
static void deleteUnmanaged(Unmanaged* c);
- virtual int desktop() const;
- virtual QStringList activities() const;
- virtual QVector<VirtualDesktop *> desktops() const override;
- virtual QPoint clientPos() const;
- virtual QSize clientSize() const;
- virtual QRect transparentRect() const;
- virtual Layer layer() const {
+ int desktop() const override;
+ QStringList activities() const override;
+ QVector<VirtualDesktop *> desktops() const override;
+ QPoint clientPos() const override;
+ QSize clientSize() const override;
+ QRect transparentRect() const override;
+ Layer layer() const override {
return UnmanagedLayer;
}
- NET::WindowType windowType(bool direct = false, int supported_types = 0) const;
+ NET::WindowType windowType(bool direct = false, int supported_types = 0) const override;
public Q_SLOTS:
void release(ReleaseReason releaseReason = ReleaseReason::Release);
protected:
- virtual void debug(QDebug& stream) const;
+ void debug(QDebug& stream) const override;
void addDamage(const QRegion &damage) override;
private:
- virtual ~Unmanaged(); // use release()
+ ~Unmanaged() override; // use release()
// handlers for X11 events
void configureNotifyEvent(xcb_configure_notify_event_t *e);
};
diff --git a/useractions.h b/useractions.h
index e032fbf26..df14142fe 100644
--- a/useractions.h
+++ b/useractions.h
@@ -59,7 +59,7 @@ class KWIN_EXPORT UserActionsMenu : public QObject
Q_OBJECT
public:
explicit UserActionsMenu(QObject *parent = 0);
- virtual ~UserActionsMenu();
+ ~UserActionsMenu() override;
/**
* Discards the constructed menu, so that it gets recreates
* on next show event.
@@ -285,14 +285,14 @@ class ShortcutDialog
Q_OBJECT
public:
explicit ShortcutDialog(const QKeySequence& cut);
- virtual void accept();
+ void accept() override;
QKeySequence shortcut() const;
public Q_SLOTS:
void keySequenceChanged();
Q_SIGNALS:
void dialogDone(bool ok);
protected:
- virtual void done(int r);
+ void done(int r) override;
private:
Ui::ShortcutDialog m_ui;
QKeySequence _shortcut;
diff --git a/utils.h b/utils.h
index ac8d9189e..8d2175b34 100644
--- a/utils.h
+++ b/utils.h
@@ -228,7 +228,7 @@ class KWIN_EXPORT Process : public QProcess
Q_OBJECT
public:
explicit Process(QObject *parent = nullptr);
- virtual ~Process();
+ ~Process() override;
protected:
void setupChildProcess() override;
diff --git a/virtual_terminal.h b/virtual_terminal.h
index efeeb91f9..d3321a1a2 100644
--- a/virtual_terminal.h
+++ b/virtual_terminal.h
@@ -32,7 +32,7 @@ class KWIN_EXPORT VirtualTerminal : public QObject
{
Q_OBJECT
public:
- virtual ~VirtualTerminal();
+ ~VirtualTerminal() override;
void init();
void activate(int vt);
diff --git a/virtualdesktops.h b/virtualdesktops.h
index 58914cb94..0a1c36224 100644
--- a/virtualdesktops.h
+++ b/virtualdesktops.h
@@ -54,7 +54,7 @@ class KWIN_EXPORT VirtualDesktop : public QObject
Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
public:
explicit VirtualDesktop(QObject *parent = nullptr);
- virtual ~VirtualDesktop();
+ ~VirtualDesktop() override;
void setId(const QByteArray &id);
QByteArray id() const {
@@ -156,7 +156,7 @@ class KWIN_EXPORT VirtualDesktopManager : public QObject
**/
Q_PROPERTY(bool navigationWrappingAround READ isNavigationWrappingAround WRITE setNavigationWrappingAround NOTIFY navigationWrappingAroundChanged)
<