~ubuntu-branches/ubuntu/precise/koffice/precise

« back to all changes in this revision

Viewing changes to plugins/divineProportion/DivineProportionShapeFactory.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-09-21 15:36:35 UTC
  • mfrom: (1.4.1 upstream) (60.2.11 maverick)
  • Revision ID: james.westby@ubuntu.com-20100921153635-6tejqkiro2u21ydi
Tags: 1:2.2.2-0ubuntu3
Add kubuntu_03_fix-crash-on-closing-sqlite-connection-2.2.2.diff and
kubuntu_04_support-large-memo-values-for-msaccess-2.2.2.diff as
recommended by upstream http://kexi-
project.org/wiki/wikiview/index.php@Kexi2.2_Patches.html#sqlite_stab
ility

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <klocale.h>
24
24
 
25
25
DivineProportionShapeFactory::DivineProportionShapeFactory(QObject *parent)
26
 
    : KoShapeFactory(parent, DivineProportionShape_SHAPEID, i18n("DivineProportion"))
 
26
    : KoShapeFactoryBase(parent, DivineProportionShape_SHAPEID, i18n("DivineProportion"))
27
27
{
28
28
    setToolTip(i18n("A Shape That Shows DivineProportion"));
29
29
    setIcon( "divine-shape" );
30
30
}
31
31
 
32
 
KoShape *DivineProportionShapeFactory::createDefaultShape() const
33
 
{
34
 
    DivineProportionShape *text = new DivineProportionShape();
35
 
    return text;
36
 
}
37
 
 
38
 
KoShape *DivineProportionShapeFactory::createShape(const KoProperties * /*params*/) const
39
 
{
40
 
    return createDefaultShape();
 
32
KoShape *DivineProportionShapeFactory::createDefaultShape(KoResourceManager *) const
 
33
{
 
34
    DivineProportionShape *shape = new DivineProportionShape();
 
35
    shape->setShapeId(DivineProportionShape_SHAPEID);
 
36
    return shape;
41
37
}
42
38
 
43
39
QList<KoShapeConfigWidgetBase*> DivineProportionShapeFactory::createShapeOptionPanels()
47
43
    return answer;
48
44
}
49
45
 
50
 
#include "DivineProportionShapeFactory.moc"
 
46
#include <DivineProportionShapeFactory.moc>