fix template source files to use koIcon

parent ec759b74
......@@ -3,6 +3,7 @@
#include <kis_tool.h>
#include <KoToolFactoryBase.h>
#include <KoIcon.h>
class KisCanvas2;
......@@ -45,7 +46,7 @@ public:
{
setToolTip( i18n( "%{APPNAME}" ) );
setToolType( TOOL_TYPE_VIEW );
setIcon( "tool_%{APPNAMELC}" );
setIconName(koIconNameCStr("tool_%{APPNAMELC}"));
setPriority( 0 );
};
......
......@@ -34,6 +34,7 @@
#include <KoOdfLoadingContext.h>
#include <KoDocumentResourceManager.h>
#include <KoProperties.h>
#include <KoIcon.h>
// This shape
#include "TemplateShape.h"
......@@ -44,7 +45,7 @@ TemplateShapeFactory::TemplateShapeFactory()
: KoShapeFactoryBase(TEMPLATESHAPEID, i18n("Template shape")) // Template: Change to your own description
{
setToolTip(i18n("Simple shape that is used as a template for developing other shapes."));
setIcon("x-shape-template");
setIconName(koIconNameCStr("x-shape-template"));
setLoadingPriority(1);
// Tell the shape loader which tag we can store
......
......@@ -22,9 +22,12 @@
// Own
#include "TemplateToolFactory.h"
// KDEp
// KDE
#include <klocale.h>
// Calligra
#include <KoIcon.h>
// This Shape
#include "TemplateShape.h"
#include "TemplateTool.h"
......@@ -34,7 +37,7 @@ TemplateToolFactory::TemplateToolFactory()
: KoToolFactoryBase("TemplateToolFactoryId")
{
setToolTip( i18n( "Template shape editing tool" ) );
setIcon( "x-template" );
setIconName(koIconNameCStr("x-template"));
setToolType(dynamicToolType());
setPriority(1);
setActivationShapeId(TEMPLATESHAPEID);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment