KDELibs4Support

kicon.cpp
1 /* This file is part of the KDE libraries
2  Copyright (C) 2006 Hamish Rodda <[email protected]>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 */
18 
19 #include "kicon.h"
20 
21 #include "kiconloader.h"
22 #include "kiconengine.h"
23 
24 KIcon::KIcon(const QString &iconName, KIconLoader *iconLoader, const QStringList &overlays)
25  : QIcon(new KIconEngine(iconName, iconLoader ? iconLoader : KIconLoader::global(), overlays)),
26  d(nullptr)
27 {
28 }
29 
30 KIcon::KIcon(const QString &iconName, KIconLoader *iconLoader)
31  : QIcon(new KIconEngine(iconName, iconLoader ? iconLoader : KIconLoader::global())),
32  d(nullptr)
33 {
34 }
35 
36 KIcon::KIcon(const QString &iconName)
37  : QIcon(new KIconEngine(iconName, KIconLoader::global())),
38  d(nullptr)
39 {
40 }
41 
43  : d(nullptr)
44 {
45 }
46 
47 KIcon::KIcon(const QIcon &copy)
48  : QIcon(copy),
49  d(nullptr)
50 {
51 }
52 
54 {
55  //delete d;
56 }
KIcon()
Constructor for a null icon.
Definition: kicon.cpp:42
~KIcon()
Destroys the icon.
Definition: kicon.cpp:53
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue May 11 2021 22:58:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.