From 94b635db23d6669b5e338a3c493ed6d0053172a9 Mon Sep 17 00:00:00 2001 From: Juanjo Garcia Date: Thu, 6 Mar 2025 11:36:16 +0100 Subject: [PATCH] Refs 22912: Add copy IDL button to context menu Signed-off-by: Juanjo Garcia --- qml/TabLayout.qml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qml/TabLayout.qml b/qml/TabLayout.qml index fa7ac006..f208719e 100644 --- a/qml/TabLayout.qml +++ b/qml/TabLayout.qml @@ -385,6 +385,17 @@ Item { idl_text.selectAll() } } + MenuItem { + text: "Copy IDL title" + onTriggered: { + if (clipboardHandler) { + let textToCopy = tabLayout.tab_model_[current_]["title"] + clipboardHandler.setClipboardText(textToCopy) + }else{ + console.log("Clipboard not available") + } + } + } } TextEdit