Cast qml object where necessary
This commit is contained in:
@@ -72,7 +72,7 @@ RowLayout {
|
||||
}
|
||||
}
|
||||
|
||||
QQC2.ToolTip.text: root.model?.readMarkersString ?? ""
|
||||
QQC2.ToolTip.text: (root.model as ReadMarkerModel)?.readMarkersString ?? ""
|
||||
QQC2.ToolTip.visible: hoverHandler.hovered
|
||||
QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay
|
||||
|
||||
|
||||
@@ -175,7 +175,7 @@ MessageDelegateBase {
|
||||
const menu = Qt.createComponent("org.kde.neochat", "UserMenu").createObject(root, {
|
||||
window: QQC2.ApplicationWindow.window as Kirigami.ApplicationWindow,
|
||||
author: root.author,
|
||||
});
|
||||
}) as UserMenu;
|
||||
console.info(Qt.createComponent("org.kde.neochat", "UserMenu").errorString());
|
||||
menu.popup(root.QQC2.Overlay.overlay);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ RowLayout {
|
||||
display: QQC2.ToolButton.IconOnly
|
||||
onClicked: {
|
||||
root.reacting = true;
|
||||
var dialog = emojiDialog.createObject(reactButton);
|
||||
var dialog = emojiDialog.createObject(reactButton) as EmojiDialog;
|
||||
dialog.chosen.connect(emoji => {
|
||||
root.reacting = false;
|
||||
root.room.toggleReaction(root.eventId, emoji);
|
||||
|
||||
Reference in New Issue
Block a user