ActionsHandler poperties

Make sure that all low level components get ActionsHandler through actual properties rather than magically
This commit is contained in:
James Graham
2023-10-22 13:39:34 +00:00
parent c2d82750b1
commit ef1d62d45c
6 changed files with 47 additions and 7 deletions

View File

@@ -38,6 +38,14 @@ ColumnLayout {
required property NeoChatConnection connection
/**
* @brief The ActionsHandler object to use.
*
* This is expected to have the correct room set otherwise messages will be sent
* to the wrong room.
*/
required property ActionsHandler actionsHandler
/**
* @brief A message has been sent from the chat bar.
*/
@@ -75,6 +83,7 @@ ColumnLayout {
Layout.preferredHeight: Math.round(implicitHeight)
currentRoom: root.currentRoom
actionsHandler: root.actionsHandler
FontMetrics {
id: chatBarFontMetrics