• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

kgpg

  • sources
  • kde-4.14
  • kdeutils
  • kgpg
  • core
images.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006 Jimmy Gilles <jimmygilles@gmail.com>
3  * Copyright (C) 2013 Rolf Eike Beer <kde@opensource.sf-tec.de>
4  */
5 /***************************************************************************
6  * This program is free software; you can redistribute it and/or modify *
7  * it under the terms of the GNU General Public License as published by *
8  * the Free Software Foundation; either version 2 of the License, or *
9  * (at your option) any later version. *
10  * *
11  * This program is distributed in the hope that it will be useful, *
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14  * GNU General Public License for more details. *
15  * *
16  * You should have received a copy of the GNU General Public License *
17  * along with this program; if not, write to the *
18  * Free Software Foundation, Inc., *
19  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
20  ***************************************************************************/
21 
22 #include "images.h"
23 
24 #include <KIconLoader>
25 
26 namespace KgpgCore
27 {
28 
29 namespace Images
30 {
31 
32 QPixmap single()
33 {
34  static QPixmap single;
35  if (single.isNull())
36  single = KIconLoader::global()->loadIcon(QLatin1String( "key-single" ), KIconLoader::Small, 20);
37  return single;
38 }
39 
40 QPixmap pair()
41 {
42  static QPixmap pair;
43  if (pair.isNull())
44  pair = KIconLoader::global()->loadIcon(QLatin1String( "key-pair" ), KIconLoader::Small, 20);
45  return pair;
46 }
47 
48 QPixmap group()
49 {
50  static QPixmap group;
51  if (group.isNull())
52  group = KIconLoader::global()->loadIcon(QLatin1String( "key-group" ), KIconLoader::Small, 20);
53  return group;
54 }
55 
56 QPixmap orphan()
57 {
58  static QPixmap oprpan;
59  if (oprpan.isNull())
60  oprpan = KIconLoader::global()->loadIcon(QLatin1String( "key-orphan" ), KIconLoader::Small, 20);
61  return oprpan;
62 }
63 
64 QPixmap signature()
65 {
66  static QPixmap signature;
67  if (signature.isNull())
68  signature = KIconLoader::global()->loadIcon(QLatin1String( "application-pgp-signature" ), KIconLoader::Small, 20);
69  return signature;
70 }
71 
72 QPixmap userId()
73 {
74  static QPixmap userid;
75  if (userid.isNull())
76  userid = KIconLoader::global()->loadIcon(QLatin1String( "x-office-contact" ), KIconLoader::Small, 20);
77  return userid;
78 }
79 
80 QPixmap photo()
81 {
82  static QPixmap photo;
83  if (photo.isNull())
84  photo = KIconLoader::global()->loadIcon(QLatin1String( "image-x-generic" ), KIconLoader::Small, 20);
85  return photo;
86 }
87 
88 QPixmap revoke()
89 {
90  static QPixmap revoke;
91  if (revoke.isNull())
92  revoke = KIconLoader::global()->loadIcon(QLatin1String( "dialog-error" ), KIconLoader::Small, 20);
93  return revoke;
94 }
95 
96 QPixmap kgpg()
97 {
98  static QPixmap kgpg;
99  if (kgpg.isNull())
100  kgpg = KIconLoader::global()->loadIcon(QLatin1String( "kgpg" ), KIconLoader::Desktop);
101  return kgpg;
102 }
103 
104 } // namespace Images
105 
106 } // namespace KgpgCore
KgpgCore::Images::kgpg
QPixmap kgpg()
Definition: images.cpp:96
KgpgCore::Images::photo
QPixmap photo()
Definition: images.cpp:80
images.h
KgpgCore::Images::signature
QPixmap signature()
Definition: images.cpp:64
KgpgCore::Images::orphan
QPixmap orphan()
Definition: images.cpp:56
QPixmap
QPixmap::isNull
bool isNull() const
KgpgCore::Images::group
QPixmap group()
Definition: images.cpp:48
KgpgCore::Images::revoke
QPixmap revoke()
Definition: images.cpp:88
QLatin1String
KgpgCore::Images::pair
QPixmap pair()
Definition: images.cpp:40
KgpgCore::Images::userId
QPixmap userId()
Definition: images.cpp:72
KgpgCore::Images::single
QPixmap single()
Definition: images.cpp:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:08 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal