Jump to content

Krita/docs/Icons API Roadmap: Difference between revisions

From KDE Community Wiki
Dmitry (talk | contribs)
Created page with "= Krita Icons API Roadmap = # Remove all <syntaxhighlight lang="cpp"> #include <KoIcon.h></syntaxhighlight> and put <syntaxhighlight lang="cpp"> #include <kis_icon_utils.h></..."
 
Dmitry (talk | contribs)
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()</syntaxhighlight> and <syntaxhighlight lang="cpp">kthemedIcon()</syntaxhighlight> calls with <syntaxhighlight lang="cpp">KisIconUtils::loadIcon("<icon_name>")</syntaxhighlight>
# Substitute all <syntaxhighlight lang="cpp">koIcon(), kthemedIcon()</syntaxhighlight> calls with <syntaxhighlight lang="cpp">KisIconUtils::loadIcon("<icon_name>")</syntaxhighlight>

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(), kthemedIcon()
    
    calls with
    KisIconUtils::loadIcon("<icon_name>")