Exemple #1
0
KShape *SpiralShapeFactory::createDefaultShape(KResourceManager *) const
{
    SpiralShape *spiral = new SpiralShape();

    spiral->setBorder(new KLineBorder(1.0));
    spiral->setShapeId(KoPathShapeId);

    return spiral;
}
KoShape *SpiralShapeFactory::createDefaultShape(KoDocumentResourceManager *) const
{
    SpiralShape *spiral = new SpiralShape();

    spiral->setStroke(new KoShapeStroke(1.0));
    spiral->setShapeId(KoPathShapeId);

    return spiral;
}