Bug 237182 - Allow text from KPasswordDialog to be marked and copied
Summary: Allow text from KPasswordDialog to be marked and copied
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kwidgetsaddons
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Christoph Feck
URL:
Keywords: junior-jobs
: 395640 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-05-11 00:05 UTC by Alain Knaff
Modified: 2023-11-22 09:34 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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