]> cloud.milkyroute.net Git - dolphin.git/commit
[DetailsView] Improve zooming
authorEugene Popov <popov895@ukr.net>
Sun, 11 Jul 2021 21:31:06 +0000 (00:31 +0300)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 18 Jul 2021 16:59:47 +0000 (16:59 +0000)
commit7908aff3b5ebe4484d391c1fc4797e9dae2300b2
tree0130ab165bddddf90533112d4196dde9a4008030
parentdeaf5916f2f87d78825f33f2ba11475a24c9380f
[DetailsView] Improve zooming

Under some conditions, when zooming, only the size of the icon is changed, but not the entire item, which visually doesn't look good. The main idea of this MR is that when scaling the whole element should be resized, not just the icon, so I came up with some zoom levels for the main icon sizes. With this commit, zooming will resize the entire element, even if the resizing of the icon doesn't affect the size of the entire element.
src/kitemviews/kstandarditemlistwidget.cpp