Add "copy user id" menu to delegate in user search page

BUG: 499792
This commit is contained in:
Tobias Fella
2025-09-12 11:37:07 +00:00
parent 84fa68e3ae
commit e4cd6ce5a6
2 changed files with 11 additions and 1 deletions

View File

@@ -15,7 +15,7 @@ set(RELEASE_SERVICE_VERSION "${RELEASE_SERVICE_VERSION_MAJOR}.${RELEASE_SERVICE_
project(NeoChat VERSION ${RELEASE_SERVICE_VERSION})
set(KF_MIN_VERSION "6.17")
set(QT_MIN_VERSION "6.8")
set(QT_MIN_VERSION "6.9")
find_package(ECM ${KF_MIN_VERSION} REQUIRED NO_MODULE)

View File

@@ -53,6 +53,16 @@ SearchPage {
root.closeDialog();
}
QQC2.ContextMenu.menu: QQC2.Menu {
QQC2.MenuItem {
text: i18nc("@action:inmenu", "Copy User ID")
icon.name: "username-copy"
onTriggered: {
Clipboard.saveText(userDelegate.userId)
}
}
}
contentItem: RowLayout {
spacing: Kirigami.Units.smallSpacing