Krita/docs/Icons API Roadmap: Difference between revisions

From KDE Community Wiki
< Krita‎ | docs
 
Line 2: Line 2:


# Remove all <syntaxhighlight lang="cpp"> #include <KoIcon.h></syntaxhighlight> and put <syntaxhighlight lang="cpp"> #include <kis_icon_utils.h></syntaxhighlight> instead.
# Remove all <syntaxhighlight lang="cpp"> #include <KoIcon.h></syntaxhighlight> and put <syntaxhighlight lang="cpp"> #include <kis_icon_utils.h></syntaxhighlight> instead.
# Substitute all <syntaxhighlight lang="cpp">koIcon(), kthemedIcon()</syntaxhighlight> calls with <syntaxhighlight lang="cpp">KisIconUtils::loadIcon("<icon_name>")</syntaxhighlight>
# Substitute all <syntaxhighlight lang="cpp">koIcon(), themedIcon()</syntaxhighlight> calls with <syntaxhighlight lang="cpp">KisIconUtils::loadIcon("<icon_name>")</syntaxhighlight>

Latest revision as of 12:36, 10 August 2015

Krita Icons API Roadmap

  1. Remove all
     #include <KoIcon.h>
    
    and put
     #include <kis_icon_utils.h>
    
    instead.
  2. Substitute all
    koIcon(), themedIcon()
    
    calls with
    KisIconUtils::loadIcon("<icon_name>")