1 /***************************************************************************** 2 * Copyright (C) 2018 Nikita Melnichenko <nikita+kde@melnichenko.name> * 3 * Copyright (C) 2018-2019 Krusader Krew [https://krusader.org] * 4 * * 5 * This file is part of Krusader [https://krusader.org]. * 6 * * 7 * Krusader is free software: you can redistribute it and/or modify * 8 * it under the terms of the GNU General Public License as published by * 9 * the Free Software Foundation, either version 2 of the License, or * 10 * (at your option) any later version. * 11 * * 12 * Krusader is distributed in the hope that it will be useful, * 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 15 * GNU General Public License for more details. * 16 * * 17 * You should have received a copy of the GNU General Public License * 18 * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * 19 *****************************************************************************/ 20 21 #ifndef FILELISTICON_H 22 #define FILELISTICON_H 23 24 #include "icon.h" 25 26 // QtGui 27 #include <QPixmap> 28 29 30 class FileListIcon : public Icon 31 { 32 public: FileListIcon(QString name)33 explicit FileListIcon(QString name) : Icon(name) {} 34 35 /// Load pixmap of standard file list icon size 36 QPixmap pixmap() const; 37 38 /// Get icon size as configured by user 39 QSize size() const; 40 }; 41 42 #endif // FILELISTICON_H 43