Bug 237182

Summary: Allow text from KPasswordDialog to be marked and copied
Product: [Frameworks and Libraries] frameworks-kwidgetsaddons Reporter: Alain Knaff <kde>
Component: generalAssignee: Christoph Feck <cfeck>
Status: RESOLVED FIXED    
Severity: wishlist CC: bugseforuns, christian-david, kdelibs-bugs, MurzNN, nate
Priority: NOR Keywords: junior-jobs
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Alain Knaff 2010-05-11 00:05:01 UTC
Version:            (using KDE 4.4.2)
OS:                Linux
Installed from:    Ubuntu Packages

When the system invokes kdesudo, it pops up a dialog box showing the command to be executed, and a password prompt.

The command however cannot be copy-pasted (for example for googling it, or for executing it manually in a root shell).
Comment 1 Christoph Feck 2018-06-27 19:19:08 UTC
*** Bug 395640 has been marked as a duplicate of this bug. ***
Comment 2 Nate Graham 2018-06-27 19:22:44 UTC
Should just need setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard); set on the label, as in https://cgit.kde.org/kio.git/commit/?id=025e5e9957ff92c8196f820e9490f337ebfbe317
Comment 3 Christoph Feck 2018-06-27 19:33:40 UTC
But make sure the Tab-chain doesn't break by making the labels interactable.
Comment 4 Nate Graham 2018-06-27 19:35:16 UTC
Good point!
Comment 5 Christian David 2023-11-21 21:28:27 UTC
Opened PR: https://invent.kde.org/frameworks/kwidgetsaddons/-/merge_requests/225
Comment 6 Sune Vuorela 2023-11-22 09:34:11 UTC
Git commit e11350708a22d13c8b248815900a98d8bf8c4e9f by Sune Vuorela, on behalf of Christian David.
Committed on 22/11/2023 at 10:34.
Pushed by sune into branch 'master'.

Allow to select text of KPasswordDialog labels

Made this primary with _kdesu_ in mind. Now you can copy&paste the command which shall be executed.

M  +1    -0    src/kpassworddialog.cpp
M  +7    -4    src/kpassworddialog.ui

https://invent.kde.org/frameworks/kwidgetsaddons/-/commit/e11350708a22d13c8b248815900a98d8bf8c4e9f