Skip to content

Commit

Permalink
Refs 22912: Add copy IDL button to context menu
Browse files Browse the repository at this point in the history
Signed-off-by: Juanjo Garcia <[email protected]>
  • Loading branch information
juanjo4936 committed Mar 6, 2025
1 parent b3a1b4f commit 94b635d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions qml/TabLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94b635d

Please sign in to comment.