[KMessageBox] Only allow selecting text in the dialog box using the mouse

Authored by ngraham on Jan 14 2020, 2:56 AM.

Description

[KMessageBox] Only allow selecting text in the dialog box using the mouse

Summary:
Right now, when you select text in the dialog box, an insertion point appears. It never
disappears. This looks odd:

The insertion point allows you to navigate the text using the keyboard. But this is kind
of pointless since you have to use the mouse to make the insertion point appear in the
text in the first place, so you might as well just use the mouse to make the selection.

This patch makes the text only mouse-selectable. Dolphin recently did the same thing
for its Information Panel labels in D25241 for the same reason.

BUG: 416204
FIXED-IN: 5.67

Test Plan:
Try to open 6 items at once in Dolphin and click-and-drag in the message box text.
Test is still selectable, but an insertion point is no longer created that cannot be
removed.

Reviewers: dfaure, Frameworks, VDG, ndavis

Reviewed By: VDG, ndavis

Subscribers: broulik, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D26649

Details

Committed
ngrahamJan 14 2020, 6:40 PM
Reviewer
VDG
Differential Revision
D26649: [KMessageBox] Only allow selecting text in the dialog box using the mouse
Parents
R236:26055f325200: GIT_SILENT Upgrade KF5 version to 5.67.0.
Branches
Unknown
Tags
Unknown