IconProvider.cpp
Go to the documentation of this file.
1 //============================================================================
6 //============================================================================
7 
8 //============================================================================
9 // INCLUDES
10 //============================================================================
11 #include "IconProvider.h"
12 #include <QVector>
13 
14 namespace ads
15 {
20 {
23 
28 };
29 // struct LedArrayPanelPrivate
30 
31 //============================================================================
33  _this(_public)
34 {
35 
36 }
37 
38 //============================================================================
40  d(new IconProviderPrivate(this))
41 {
42 
43 }
44 
45 //============================================================================
47 {
48  delete d;
49 }
50 
51 
52 //============================================================================
53 QIcon CIconProvider::customIcon(eIcon IconId) const
54 {
55  Q_ASSERT(IconId < d->UserIcons.size());
56  return d->UserIcons[IconId];
57 }
58 
59 
60 //============================================================================
61 void CIconProvider::registerCustomIcon(eIcon IconId, const QIcon &icon)
62 {
63  Q_ASSERT(IconId < d->UserIcons.size());
64  d->UserIcons[IconId] = icon;
65 }
66 
67 } // namespace ads
68 
69 
70 
71 
72 //---------------------------------------------------------------------------
73 // EOF IconProvider.cpp
ads::CIconProvider::registerCustomIcon
void registerCustomIcon(eIcon IconId, const QIcon &icon)
Definition: IconProvider.cpp:61
ads::CIconProvider::~CIconProvider
virtual ~CIconProvider()
Definition: IconProvider.cpp:46
ads::IconProviderPrivate::UserIcons
QVector< QIcon > UserIcons
Definition: IconProvider.cpp:22
QVector< QIcon >
ads::CIconProvider::d
IconProviderPrivate * d
private data (pimpl)
Definition: IconProvider.h:31
ads::CIconProvider::customIcon
QIcon customIcon(eIcon IconId) const
Definition: IconProvider.cpp:53
ads::eIcon
eIcon
Definition: ads_globals.h:110
ads
Definition: ads_globals.h:69
ads::IconProviderPrivate::_this
CIconProvider * _this
Definition: IconProvider.cpp:21
ads::IconProviderPrivate
Definition: IconProvider.cpp:19
d
d
ads::IconCount
@ IconCount
just a delimiter for range checks
Definition: ads_globals.h:117
ads::IconProviderPrivate::IconProviderPrivate
IconProviderPrivate(CIconProvider *_public)
Definition: IconProvider.cpp:32
IconProvider.h
Declaration of CIconProvider.
ads::CIconProvider::CIconProvider
CIconProvider()
Definition: IconProvider.cpp:39
ads::CIconProvider
Definition: IconProvider.h:28


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44