Changeset View
Changeset View
Standalone View
Standalone View
krusader/filelisticon.h
- This file was moved from krusader/kicons.h.
1 | /***************************************************************************** | 1 | /***************************************************************************** | ||
---|---|---|---|---|---|
2 | * Copyright (C) 2000 Shie Erlich <erlich@users.sourceforge.net> * | 2 | * Copyright (C) 2018 Nikita Melnichenko <nikita+kde@melnichenko.name> * | ||
3 | * Copyright (C) 2000 Rafi Yanai <yanai@users.sourceforge.net> * | 3 | * Copyright (C) 2018 Krusader Krew [https://krusader.org] * | ||
4 | * Copyright (C) 2004-2018 Krusader Krew [https://krusader.org] * | | |||
5 | * * | 4 | * * | ||
6 | * This file is part of Krusader [https://krusader.org]. * | 5 | * This file is part of Krusader [https://krusader.org]. * | ||
7 | * * | 6 | * * | ||
8 | * Krusader is free software: you can redistribute it and/or modify * | 7 | * Krusader is free software: you can redistribute it and/or modify * | ||
9 | * it under the terms of the GNU General Public License as published by * | 8 | * it under the terms of the GNU General Public License as published by * | ||
10 | * the Free Software Foundation, either version 2 of the License, or * | 9 | * the Free Software Foundation, either version 2 of the License, or * | ||
11 | * (at your option) any later version. * | 10 | * (at your option) any later version. * | ||
12 | * * | 11 | * * | ||
13 | * Krusader is distributed in the hope that it will be useful, * | 12 | * Krusader is distributed in the hope that it will be useful, * | ||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * | ||
16 | * GNU General Public License for more details. * | 15 | * GNU General Public License for more details. * | ||
17 | * * | 16 | * * | ||
18 | * You should have received a copy of the GNU General Public License * | 17 | * You should have received a copy of the GNU General Public License * | ||
19 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | 18 | * along with Krusader. If not, see [http://www.gnu.org/licenses/]. * | ||
20 | *****************************************************************************/ | 19 | *****************************************************************************/ | ||
21 | 20 | | |||
22 | #ifndef KICONS_H | 21 | #ifndef FILELISTICON_H | ||
23 | #define KICONS_H | 22 | #define FILELISTICON_H | ||
23 | | ||||
24 | #include "icon.h" | ||||
24 | 25 | | |||
25 | // QtGui | 26 | // QtGui | ||
26 | #include <QPixmap> | 27 | #include <QPixmap> | ||
27 | 28 | | |||
28 | // used only for calls within the kfilelist framework, handles icon sizes | | |||
29 | QPixmap FL_LOADICON(QString name); | | |||
30 | 29 | | |||
31 | #endif | 30 | class FileListIcon : public Icon | ||
31 | { | ||||
32 | public: | ||||
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 |