#include <kis_icon_utils.h>
#include <QString>
Go to the source code of this file.
◆ kisIcon
◆ koIcon
Use these macros for icons without any issues.
Macros to support collecting the icons in use.
After any change to this list of macros the file /CheckIcons.sh needs to be updated accordingly, to ensure that the icon names of the affected macros are still considered in the extraction.
The naming pattern of the macros is like this:
- koIcon*, kisIcon return a QIcon object
- koIconName* returns a QLatin1String (aligned with usual API where "iconName" property is of type QString)
- koIconNameCStr* returns a const char*
Definition at line 25 of file KoIcon.h.
◆ koIconName
| #define koIconName |
( |
| name | ) |
(QLatin1String(name)) |
◆ koIconNameCStr
| #define koIconNameCStr |
( |
| name | ) |
(name) |
◆ koIconNameCStrNeeded
| #define koIconNameCStrNeeded |
( |
| comment, |
|
|
| neededName ) (neededName) |
◆ koIconNameCStrNeededWithSubs
| #define koIconNameCStrNeededWithSubs |
( |
| comment, |
|
|
| neededName, |
|
|
| substituteName ) (substituteName) |
◆ koIconNameNeeded
| #define koIconNameNeeded |
( |
| comment, |
|
|
| neededName ) (QLatin1String(neededName)) |
◆ koIconNameNeededWithSubs
| #define koIconNameNeededWithSubs |
( |
| comment, |
|
|
| neededName, |
|
|
| substituteName ) (QLatin1String(substituteName)) |
◆ koIconNeeded
Use these macros if there is a proper icon missing.
Definition at line 31 of file KoIcon.h.
◆ koIconNeededWithSubs
| #define koIconNeededWithSubs |
( |
| comment, |
|
|
| neededName, |
|
|
| substituteName ) (KisIconUtils::loadIcon(QLatin1String(substituteName))) |