From 4c31f4214484916bcbc18593cb400cc25484c788 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Fri, 6 Feb 2026 15:04:17 +0100 Subject: [PATCH] Fix type name for NeoChatDateTime QML doesn't want it to start with an uppercase letter --- src/app/qml/CodeMaximizeComponent.qml | 4 ++-- src/libneochat/neochatdatetime.h | 2 +- src/messagecontent/AuthorComponent.qml | 4 ++-- src/messagecontent/CodeComponent.qml | 4 ++-- src/timeline/MessageDelegate.qml | 4 ++-- src/timeline/ReadMarkerDelegate.qml | 4 ++-- src/timeline/StateDelegate.qml | 4 ++-- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/app/qml/CodeMaximizeComponent.qml b/src/app/qml/CodeMaximizeComponent.qml index ba2021017..43ddb79ed 100644 --- a/src/app/qml/CodeMaximizeComponent.qml +++ b/src/app/qml/CodeMaximizeComponent.qml @@ -20,9 +20,9 @@ Components.AbstractMaximizeComponent { property NeochatRoomMember author /** - * @brief The timestamp of the event as a NeoChatDateTime. + * @brief The timestamp of the event as a neoChatDateTime. */ - required property NeoChatDateTime dateTime + required property neoChatDateTime dateTime /** * @brief The code text to show. diff --git a/src/libneochat/neochatdatetime.h b/src/libneochat/neochatdatetime.h index 8be6d00d6..30ae257b0 100644 --- a/src/libneochat/neochatdatetime.h +++ b/src/libneochat/neochatdatetime.h @@ -18,7 +18,7 @@ class NeoChatDateTime { Q_GADGET - QML_ELEMENT + QML_NAMED_ELEMENT(neoChatDateTime) /** * @brief The base QDateTime used to generate the other values. diff --git a/src/messagecontent/AuthorComponent.qml b/src/messagecontent/AuthorComponent.qml index ef1cd281b..3577cb61d 100644 --- a/src/messagecontent/AuthorComponent.qml +++ b/src/messagecontent/AuthorComponent.qml @@ -27,9 +27,9 @@ RowLayout { required property var author /** - * @brief The timestamp of the event as a NeoChatDateTime. + * @brief The timestamp of the event as a neoChatDateTime. */ - required property NeoChatDateTime dateTime + required property neoChatDateTime dateTime Layout.fillWidth: true Layout.maximumWidth: Message.maxContentWidth diff --git a/src/messagecontent/CodeComponent.qml b/src/messagecontent/CodeComponent.qml index 39af4c9f4..919f08a67 100644 --- a/src/messagecontent/CodeComponent.qml +++ b/src/messagecontent/CodeComponent.qml @@ -28,9 +28,9 @@ QQC2.Control { required property NeochatRoomMember author /** - * @brief The timestamp of the event as a NeoChatDateTime. + * @brief The timestamp of the event as a neoChatDateTime. */ - required property NeoChatDateTime dateTime + required property neoChatDateTime dateTime /** * @brief The display text of the message. diff --git a/src/timeline/MessageDelegate.qml b/src/timeline/MessageDelegate.qml index e9c40fa2b..f41e2cd72 100644 --- a/src/timeline/MessageDelegate.qml +++ b/src/timeline/MessageDelegate.qml @@ -50,9 +50,9 @@ MessageDelegateBase { required property MessageContentModel contentModel /** - * @brief The timestamp of the event as a NeoChatDateTime. + * @brief The timestamp of the event as a neoChatDateTime. */ - required property NeoChatDateTime dateTime + required property neoChatDateTime dateTime /** * @brief A model with the first 5 other user read markers for this message. diff --git a/src/timeline/ReadMarkerDelegate.qml b/src/timeline/ReadMarkerDelegate.qml index b6773dd8b..0a6f51bed 100644 --- a/src/timeline/ReadMarkerDelegate.qml +++ b/src/timeline/ReadMarkerDelegate.qml @@ -14,9 +14,9 @@ TimelineDelegate { id: root /** - * @brief The timestamp of the event as a NeoChatDateTime. + * @brief The timestamp of the event as a neoChatDateTime. */ - required property NeoChatDateTime dateTime + required property neoChatDateTime dateTime property bool isTemporaryHighlighted: false onIsTemporaryHighlightedChanged: if (isTemporaryHighlighted) { diff --git a/src/timeline/StateDelegate.qml b/src/timeline/StateDelegate.qml index 0a33c9f30..55a93129b 100644 --- a/src/timeline/StateDelegate.qml +++ b/src/timeline/StateDelegate.qml @@ -49,9 +49,9 @@ TimelineDelegate { required property bool showSection /** - * @brief The timestamp of the event as a NeoChatDateTime. + * @brief The timestamp of the event as a neoChatDateTime. */ - required property NeoChatDateTime dateTime + required property neoChatDateTime dateTime /** * @brief A model with the first 5 other user read markers for this message.