]> cloud.milkyroute.net Git - dolphin.git/commit
KStandardItemListWidget: select by number of unicode chars
authorYifan Zhu <fanzhuyifan@gmail.com>
Fri, 9 Aug 2024 03:21:08 +0000 (20:21 -0700)
committerYifan Zhu <fanzhuyifan@gmail.com>
Tue, 13 Aug 2024 16:09:10 +0000 (16:09 +0000)
commit021365dceb590a14bfcdb904ea05ffdd69b7d663
treebaf6b7ca2ee7a42932647a34ac714191d3d37326
parent822a7d33ab703da8e4d98454fb38cd480f7a0fd2
KStandardItemListWidget: select by number of unicode chars

Previously during rename, the number of QChar is used for selection,
which might be different from number of unicode characters.

Test plan:
- create the file zz❤️❤️.txt
- rename the file
- verify that the first 4 characters are correctly selected, which
  didn't work before the patch.

BUG: 466814
src/kitemviews/kfileitemlistwidget.cpp
src/kitemviews/kfileitemlistwidget.h
src/kitemviews/kstandarditemlistwidget.cpp
src/kitemviews/kstandarditemlistwidget.h