File indexing completed on 2024-04-21 16:33:17
0001 /* 0002 SPDX-FileCopyrightText: 2018-2022 Nikita Melnichenko <nikita+kde@melnichenko.name> 0003 SPDX-FileCopyrightText: 2018-2022 Krusader Krew <https://krusader.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "filelisticon.h" 0009 0010 #include "defaults.h" 0011 #include "krglobal.h" 0012 0013 #include <KConfigCore/KSharedConfig> 0014 0015 QSize FileListIcon::size() const 0016 { 0017 int linearSize = KConfigGroup(krConfig, "Look&Feel").readEntry("Filelist Icon Size", _FilelistIconSize).toInt(); 0018 return QSize(linearSize, linearSize); 0019 } 0020 0021 QPixmap FileListIcon::pixmap() const 0022 { 0023 return QIcon::pixmap(size()); 0024 }