summary refs log tree commit diff
path: root/src/timeline
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-10-10 14:38:29 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2022-10-10 14:38:45 +0200
commitaf699eb83eddd981537432ab08a1bbe194e30df0 (patch)
tree07723c95231bd32018ea0b26267aab945f92e798 /src/timeline
parentTranslated using Weblate (Indonesian) (diff)
downloadnheko-af699eb83eddd981537432ab08a1bbe194e30df0.tar.xz
Mark classes as final where possible
Diffstat (limited to 'src/timeline')
-rw-r--r--src/timeline/CommunitiesModel.h4
-rw-r--r--src/timeline/DelegateChooser.h2
-rw-r--r--src/timeline/EventStore.h2
-rw-r--r--src/timeline/InputBar.h6
-rw-r--r--src/timeline/Permissions.h2
-rw-r--r--src/timeline/PresenceEmitter.h2
-rw-r--r--src/timeline/RoomlistModel.h4
-rw-r--r--src/timeline/TimelineModel.h2
-rw-r--r--src/timeline/TimelineViewManager.h2
9 files changed, 13 insertions, 13 deletions
diff --git a/src/timeline/CommunitiesModel.h b/src/timeline/CommunitiesModel.h

index 001c538d..a40b4802 100644 --- a/src/timeline/CommunitiesModel.h +++ b/src/timeline/CommunitiesModel.h
@@ -19,7 +19,7 @@ class CommunitiesModel; -class FilteredCommunitiesModel : public QSortFilterProxyModel +class FilteredCommunitiesModel final : public QSortFilterProxyModel { Q_OBJECT @@ -71,7 +71,7 @@ public: bool canEditParent = false, canEditChild = false; }; -class CommunitiesModel : public QAbstractListModel +class CommunitiesModel final : public QAbstractListModel { Q_OBJECT Q_PROPERTY(QString currentTagId READ currentTagId WRITE setCurrentTagId NOTIFY diff --git a/src/timeline/DelegateChooser.h b/src/timeline/DelegateChooser.h
index 8dff66ad..d34d13e4 100644 --- a/src/timeline/DelegateChooser.h +++ b/src/timeline/DelegateChooser.h
@@ -69,7 +69,7 @@ signals: void childChanged(); private: - struct DelegateIncubator : public QQmlIncubator + struct DelegateIncubator final : public QQmlIncubator { DelegateIncubator(DelegateChooser &parent) : QQmlIncubator(QQmlIncubator::AsynchronousIfNested) diff --git a/src/timeline/EventStore.h b/src/timeline/EventStore.h
index 5cfab727..108fa735 100644 --- a/src/timeline/EventStore.h +++ b/src/timeline/EventStore.h
@@ -19,7 +19,7 @@ #include "Reaction.h" #include "encryption/Olm.h" -class EventStore : public QObject +class EventStore final : public QObject { Q_OBJECT diff --git a/src/timeline/InputBar.h b/src/timeline/InputBar.h
index 066074f7..eced7cb8 100644 --- a/src/timeline/InputBar.h +++ b/src/timeline/InputBar.h
@@ -41,7 +41,7 @@ enum class MarkdownOverride OFF, }; -class InputVideoSurface : public QAbstractVideoSurface +class InputVideoSurface final : public QAbstractVideoSurface { Q_OBJECT @@ -60,7 +60,7 @@ signals: void newImage(QImage img); }; -class MediaUpload : public QObject +class MediaUpload final : public QObject { Q_OBJECT Q_PROPERTY(int mediaType READ type NOTIFY mediaTypeChanged) @@ -168,7 +168,7 @@ public: bool encrypt_; }; -class InputBar : public QObject +class InputBar final : public QObject { Q_OBJECT Q_PROPERTY(bool uploading READ uploading NOTIFY uploadingChanged) diff --git a/src/timeline/Permissions.h b/src/timeline/Permissions.h
index 1285f01d..aa10999d 100644 --- a/src/timeline/Permissions.h +++ b/src/timeline/Permissions.h
@@ -11,7 +11,7 @@ class TimelineModel; -class Permissions : public QObject +class Permissions final : public QObject { Q_OBJECT diff --git a/src/timeline/PresenceEmitter.h b/src/timeline/PresenceEmitter.h
index 7028c501..c1f07c76 100644 --- a/src/timeline/PresenceEmitter.h +++ b/src/timeline/PresenceEmitter.h
@@ -12,7 +12,7 @@ #include <mtx/events.hpp> #include <mtx/events/presence.hpp> -class PresenceEmitter : public QObject +class PresenceEmitter final : public QObject { Q_OBJECT diff --git a/src/timeline/RoomlistModel.h b/src/timeline/RoomlistModel.h
index 1abeb812..0eb57547 100644 --- a/src/timeline/RoomlistModel.h +++ b/src/timeline/RoomlistModel.h
@@ -46,7 +46,7 @@ public: bool isInvite_ = false; }; -class RoomlistModel : public QAbstractListModel +class RoomlistModel final : public QAbstractListModel { Q_OBJECT Q_PROPERTY( @@ -152,7 +152,7 @@ private: friend class FilteredRoomlistModel; }; -class FilteredRoomlistModel : public QSortFilterProxyModel +class FilteredRoomlistModel final : public QSortFilterProxyModel { Q_OBJECT Q_PROPERTY( diff --git a/src/timeline/TimelineModel.h b/src/timeline/TimelineModel.h
index ee84486e..8e191556 100644 --- a/src/timeline/TimelineModel.h +++ b/src/timeline/TimelineModel.h
@@ -171,7 +171,7 @@ struct DecryptionResult class TimelineViewManager; -class TimelineModel : public QAbstractListModel +class TimelineModel final : public QAbstractListModel { Q_OBJECT Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex NOTIFY currentIndexChanged) diff --git a/src/timeline/TimelineViewManager.h b/src/timeline/TimelineViewManager.h
index 572e3e22..c0895b2c 100644 --- a/src/timeline/TimelineViewManager.h +++ b/src/timeline/TimelineViewManager.h
@@ -34,7 +34,7 @@ namespace mtx::responses { struct Sync; } -class TimelineViewManager : public QObject +class TimelineViewManager final : public QObject { Q_OBJECT