Bug 424313 - Double-click drag over text should consistently select words but doesn't
Summary: Double-click drag over text should consistently select words but doesn't
Status: RESOLVED UPSTREAM
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 20.04.2
Platform: Debian testing Linux
: NOR minor
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-16 23:58 UTC by jbn
Modified: 2020-08-03 16:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jbn 2020-07-16 23:58:39 UTC
SUMMARY
Double-click dragging over text should consistently select words. But one can see that this is inconsistent depending on the rename-inline setting.

STEPS TO REPRODUCE
1. Set Dolphin preferences (General page) to turn on renaming inline.
2. Find or make a file with a filename that has words in it (I'll use "foo bar baz.txt" as an example).
3. Rename that file and double-click on a word (say, "foo").
4. On the second click, drag across the other words. Notice that "bar" and "baz" are selected as words as you drag.
5. Cancel the rename (press escape) and switch the preference to disallow renaming inline.
6. Rename the same file as before and again double-click on a word ("foo").
7. On the second click, drag across the other words.

OBSERVED RESULT
Notice that "bar" and "baz" are now selected as characters as you drag, not words.

EXPECTED RESULT
I expected that "bar" and "baz" are selected as words.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux 
KDE Plasma Version: 5.17.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2
Kernel Version: 5.7.0-1-amd64
OS Type: 64-bit
Processors: 8 × AMD FX(tm)-8150 Eight-Core Processor
Memory: 31.3 GiB of RAM

ADDITIONAL INFORMATION
I can reproduce this same effect of double-click dragging selecting characters instead of words in other applications that use KDE or Qt such as Qbittorrent. I don't know enough about the hierarchy of code involved to know if that means this is a KDE problem, a Qt problem, or a bug that is app-specific but happens to manifest in apps I've tried.

Thanks.
Comment 1 Christoph Feck 2020-08-03 16:47:49 UTC
This is reproducible with all QLineEdit widgets. It handles double- and triple-click, but doesn't remember the selection mode for drags.

See https://bugreports.qt.io/browse/QTBUG-68132
Comment 2 Christoph Feck 2020-08-03 16:49:56 UTC
Or https://bugreports.qt.io/browse/QTBUG-46294