diff --git a/src/ui/NhekoGlobalObject.h b/src/ui/NhekoGlobalObject.h
index 77ec50d7..6ef71bcc 100644
--- a/src/ui/NhekoGlobalObject.h
+++ b/src/ui/NhekoGlobalObject.h
@@ -16,7 +16,7 @@
#include "Theme.h"
#include "UserProfile.h"
-class Nheko : public QObject
+class Nheko final : public QObject
{
Q_OBJECT
diff --git a/src/ui/RoomSettings.h b/src/ui/RoomSettings.h
index f4aa664d..99d27eee 100644
--- a/src/ui/RoomSettings.h
+++ b/src/ui/RoomSettings.h
@@ -19,7 +19,7 @@
/// Convenience class which connects events emmited from threads
/// outside of main with the UI code.
-class ThreadProxy : public QObject
+class ThreadProxy final : public QObject
{
Q_OBJECT
@@ -32,7 +32,7 @@ signals:
class RoomSettings;
-class RoomSettingsAllowedRoomsModel : public QAbstractListModel
+class RoomSettingsAllowedRoomsModel final : public QAbstractListModel
{
Q_OBJECT
@@ -67,7 +67,7 @@ private:
RoomSettings *settings;
};
-class RoomSettings : public QObject
+class RoomSettings final : public QObject
{
Q_OBJECT
Q_PROPERTY(QString roomId READ roomId CONSTANT)
diff --git a/src/ui/RoomSummary.h b/src/ui/RoomSummary.h
index fd19f4c2..30d47eb1 100644
--- a/src/ui/RoomSummary.h
+++ b/src/ui/RoomSummary.h
@@ -10,7 +10,7 @@
#include <mtx/responses/public_rooms.hpp>
-class RoomSummaryProxy : public QObject
+class RoomSummaryProxy final : public QObject
{
Q_OBJECT
@@ -21,7 +21,7 @@ signals:
void failed();
};
-class RoomSummary : public QObject
+class RoomSummary final : public QObject
{
Q_OBJECT
diff --git a/src/ui/Theme.h b/src/ui/Theme.h
index a9fb0519..140e60b3 100644
--- a/src/ui/Theme.h
+++ b/src/ui/Theme.h
@@ -8,7 +8,7 @@
#include <QColor>
#include <QPalette>
-class Theme : public QPalette
+class Theme final : public QPalette
{
Q_GADGET
Q_PROPERTY(QColor sidebarBackground READ sidebarBackground CONSTANT)
diff --git a/src/ui/ThemeManager.h b/src/ui/ThemeManager.h
index bb0b6274..1924611d 100644
--- a/src/ui/ThemeManager.h
+++ b/src/ui/ThemeManager.h
@@ -7,7 +7,7 @@
#include <QCommonStyle>
-class ThemeManager : public QCommonStyle
+class ThemeManager final : public QCommonStyle
{
Q_OBJECT
diff --git a/src/ui/UIA.h b/src/ui/UIA.h
index a97df4ac..73a58ffe 100644
--- a/src/ui/UIA.h
+++ b/src/ui/UIA.h
@@ -9,7 +9,7 @@
#include <mtxclient/http/client.hpp>
-class UIA : public QObject
+class UIA final : public QObject
{
Q_OBJECT
diff --git a/src/ui/UserProfile.h b/src/ui/UserProfile.h
index 90e39b89..facae6ec 100644
--- a/src/ui/UserProfile.h
+++ b/src/ui/UserProfile.h
@@ -32,7 +32,7 @@ Q_ENUM_NS(Status)
class DeviceVerificationFlow;
class TimelineViewManager;
-class UserProfileFetchProxy : public QObject
+class UserProfileFetchProxy final : public QObject
{
Q_OBJECT
@@ -83,7 +83,7 @@ public:
qlonglong lastTs;
};
-class DeviceInfoModel : public QAbstractListModel
+class DeviceInfoModel final : public QAbstractListModel
{
Q_OBJECT
public:
@@ -120,7 +120,7 @@ private:
friend class UserProfile;
};
-class UserProfile : public QObject
+class UserProfile final : public QObject
{
Q_OBJECT
Q_PROPERTY(QString displayName READ displayName NOTIFY displayNameChanged)
|