diff --git a/imports/NeoChat/Component/Timeline/FileDelegate.qml b/imports/NeoChat/Component/Timeline/FileDelegate.qml index 03e29ae60..fef165ba9 100644 --- a/imports/NeoChat/Component/Timeline/FileDelegate.qml +++ b/imports/NeoChat/Component/Timeline/FileDelegate.qml @@ -53,6 +53,7 @@ TimelineContainer { icon.name: "document-open" QQC2.ToolTip.text: i18nc("tooltip for a button on a message; offers ability to open its downloaded file with an appropriate application", "Open File") + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay onClicked: openSavedFile() } @@ -70,6 +71,7 @@ TimelineContainer { icon.name: "media-playback-stop" QQC2.ToolTip.text: i18nc("tooltip for a button on a message; stops downloading the message's file", "Stop Download") + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay onClicked: currentRoom.cancelFileTransfer(eventId) } }, diff --git a/imports/NeoChat/Component/Timeline/TimelineContainer.qml b/imports/NeoChat/Component/Timeline/TimelineContainer.qml index faacc9141..dc064a8d9 100644 --- a/imports/NeoChat/Component/Timeline/TimelineContainer.qml +++ b/imports/NeoChat/Component/Timeline/TimelineContainer.qml @@ -229,6 +229,7 @@ QQC2.ItemDelegate { color: Kirigami.Theme.disabledTextColor QQC2.ToolTip.visible: hoverHandler.hovered QQC2.ToolTip.text: time.toLocaleString(Qt.locale(), Locale.LongFormat) + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay HoverHandler { id: hoverHandler diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index 6307db6aa..dcb86dc55 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -454,6 +454,7 @@ Kirigami.ScrollablePage { property int childOffset: userMsg && Config.showLocalMessagesOnRight && !Config.compactLayout ? (bubble ? bubble.width : 0) - childWidth : Math.max((bubble ? bubble.width : 0) - childWidth, 0) x: delegate && bubble ? (delegate.x + bubble.x + Kirigami.Units.largeSpacing + childOffset - (Config.compactLayout ? Kirigami.Units.gridUnit * 3 : 0)) : 0 y: bubble ? bubble.mapToItem(parent, 0, 0).y - hoverActions.childHeight + Kirigami.Units.smallSpacing: 0; + visible: false property var updateFunction @@ -473,6 +474,7 @@ Kirigami.ScrollablePage { QQC2.Button { QQC2.ToolTip.text: i18n("React") QQC2.ToolTip.visible: hovered + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay icon.name: "preferences-desktop-emoticons" onClicked: emojiDialog.open(); EmojiDialog { @@ -486,6 +488,7 @@ Kirigami.ScrollablePage { QQC2.Button { QQC2.ToolTip.text: i18n("Edit") QQC2.ToolTip.visible: hovered + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay visible: hoverActions.showEdit icon.name: "document-edit" onClicked: { @@ -498,6 +501,7 @@ Kirigami.ScrollablePage { QQC2.Button { QQC2.ToolTip.text: i18n("Reply") QQC2.ToolTip.visible: hovered + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay icon.name: "mail-replied-symbolic" onClicked: { chatBoxHelper.replyToMessage(hoverActions.event.eventId, hoverActions.event.message, hoverActions.event.author); diff --git a/imports/NeoChat/Settings/AppearanceSettingsPage.qml b/imports/NeoChat/Settings/AppearanceSettingsPage.qml index 888e9de71..b689eaa3f 100644 --- a/imports/NeoChat/Settings/AppearanceSettingsPage.qml +++ b/imports/NeoChat/Settings/AppearanceSettingsPage.qml @@ -237,6 +237,7 @@ Kirigami.ScrollablePage { HoverHandler { id: sliderHover } QQC2.ToolTip.visible: sliderHover.hovered && !enabled QQC2.ToolTip.text: i18n("Only enabled if the transparent chat page is enabled.") + QQC2.ToolTip.delay: Kirigami.Units.toolTipDelay } QQC2.Label { text: Math.round(Config.transparency * 100) + "%"