Bug 399272

Summary: Cannot select words using mouse till the the beginning of a line
Product: [Frameworks and Libraries] frameworks-ktextwidgets Reporter: Alexander Potashev <aspotashev>
Component: generalAssignee: Laurent Montel <montel>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: 5.48.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screenshot of Lokalize (the mouse pointer is on the left outside the text edit)

Description Alexander Potashev 2018-10-01 11:19:27 UTC
SUMMARY
Double-click&drag selection does not let you select the first word in line.

STEPS TO REPRODUCE
1. Double click on a word in KTextEdit to start selection of several whole words.
2. Keep holding the left mouse button and move the pointer to the left of text edit.

OBSERVED RESULT
In the line "A set of blank cards is shown. Each card has a picture on the other side, ", the first word "A" is never selected.

EXPECTED RESULT
Every word till the beginning of the line should be selected.

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.13.4
KDE Frameworks Version: 5.48.0
Qt Version: 5.11.1

ADDITIONAL INFORMATION
lokalize-18.04.3-1.fc28.x86_64
Comment 1 Alexander Potashev 2018-10-01 11:22:37 UTC
Created attachment 115341 [details]
screenshot of Lokalize (the mouse pointer is on the left outside the text edit)
Comment 2 Laurent Montel 2018-10-01 12:04:45 UTC
I confirm it.
Comment 3 Laurent Montel 2018-10-01 13:23:38 UTC
it's not a ktextedit bug but a qtextedit bug
I reported bug:
https://bugreports.qt.io/browse/QTBUG-70872

I provided a test apps
I tried to provide a patch.

I hope that it will be fixed soon by digia
Comment 4 Christoph Feck 2018-10-27 15:02:26 UTC
Thanks for reporting it upstream.