Fix Opening Maximized Media
Make sure the Image and Video Components can correctly get the index for opening the Maximize Media component.
This commit is contained in:
@@ -27,6 +27,11 @@ QQC2.Control {
|
|||||||
*/
|
*/
|
||||||
required property NeoChatRoom room
|
required property NeoChatRoom room
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The index of the delegate in the model.
|
||||||
|
*/
|
||||||
|
required property var index
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The message author.
|
* @brief The message author.
|
||||||
*
|
*
|
||||||
@@ -148,6 +153,7 @@ QQC2.Control {
|
|||||||
model: root.contentModel
|
model: root.contentModel
|
||||||
delegate: MessageComponentChooser {
|
delegate: MessageComponentChooser {
|
||||||
room: root.room
|
room: root.room
|
||||||
|
index: root.index
|
||||||
actionsHandler: root.actionsHandler
|
actionsHandler: root.actionsHandler
|
||||||
timeline: root.timeline
|
timeline: root.timeline
|
||||||
maxContentWidth: root.maxContentWidth
|
maxContentWidth: root.maxContentWidth
|
||||||
|
|||||||
@@ -21,6 +21,11 @@ Item {
|
|||||||
*/
|
*/
|
||||||
required property NeoChatRoom room
|
required property NeoChatRoom room
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The index of the delegate in the model.
|
||||||
|
*/
|
||||||
|
required property var index
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The matrix ID of the message event.
|
* @brief The matrix ID of the message event.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -17,6 +17,11 @@ DelegateChooser {
|
|||||||
*/
|
*/
|
||||||
required property NeoChatRoom room
|
required property NeoChatRoom room
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The index of the delegate in the model.
|
||||||
|
*/
|
||||||
|
required property var index
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The ActionsHandler object to use.
|
* @brief The ActionsHandler object to use.
|
||||||
*
|
*
|
||||||
@@ -65,6 +70,7 @@ DelegateChooser {
|
|||||||
roleValue: MessageComponentType.Image
|
roleValue: MessageComponentType.Image
|
||||||
delegate: ImageComponent {
|
delegate: ImageComponent {
|
||||||
room: root.room
|
room: root.room
|
||||||
|
index: root.index
|
||||||
timeline: root.timeline
|
timeline: root.timeline
|
||||||
maxContentWidth: root.maxContentWidth
|
maxContentWidth: root.maxContentWidth
|
||||||
}
|
}
|
||||||
@@ -74,6 +80,7 @@ DelegateChooser {
|
|||||||
roleValue: MessageComponentType.Video
|
roleValue: MessageComponentType.Video
|
||||||
delegate: VideoComponent {
|
delegate: VideoComponent {
|
||||||
room: root.room
|
room: root.room
|
||||||
|
index: root.index
|
||||||
timeline: root.timeline
|
timeline: root.timeline
|
||||||
maxContentWidth: root.maxContentWidth
|
maxContentWidth: root.maxContentWidth
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -323,6 +323,7 @@ TimelineDelegate {
|
|||||||
]
|
]
|
||||||
|
|
||||||
room: root.room
|
room: root.room
|
||||||
|
index: root.index
|
||||||
|
|
||||||
author: root.author
|
author: root.author
|
||||||
showAuthor: root.showAuthor || root.alwaysShowAuthor
|
showAuthor: root.showAuthor || root.alwaysShowAuthor
|
||||||
|
|||||||
@@ -24,6 +24,11 @@ Video {
|
|||||||
*/
|
*/
|
||||||
required property NeoChatRoom room
|
required property NeoChatRoom room
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The index of the delegate in the model.
|
||||||
|
*/
|
||||||
|
required property var index
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief The matrix ID of the message event.
|
* @brief The matrix ID of the message event.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user