]> cloud.milkyroute.net Git - dolphin.git/commit
Improve size adjustment of itemlist editor
authorYifan Zhu <fanzhuyifan@gmail.com>
Wed, 25 Oct 2023 01:40:39 +0000 (18:40 -0700)
committerMéven Car <meven.car@kdemail.net>
Wed, 8 Nov 2023 11:10:42 +0000 (11:10 +0000)
commit8297e0a8c97c6e1f6d46b9ecc9c5f495f294d5b8
treea35a0ece88c0b090800837cab4cc82399d34e972
parent91a4d5da94a6b0b60ad7989a402f654710103e99
Improve size adjustment of itemlist editor

Currently multi-line file names in dolphin only display a single
line when renaming. This commit ensures multi-line filenames have
all lines displayed by calling `document()->adjustSize` in
`KItemListRoleEditor::autoAdjustSize`, and by calling the latter
function after setting up the editor.

BUG: 452587
src/kitemviews/kstandarditemlistwidget.cpp
src/kitemviews/private/kitemlistroleeditor.cpp
src/kitemviews/private/kitemlistroleeditor.h