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

« back to all changes in this revision

Viewing changes to plugins/defaultTools/guidestool/GuidesToolFactory.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:
22
22
#include <KLocale>
23
23
 
24
24
GuidesToolFactory::GuidesToolFactory( QObject *parent )
25
 
    : KoToolFactory(parent, KoGuidesTool_ID, i18n("Edit Guidelines"))
 
25
    : KoToolFactoryBase(parent, GuidesToolId)
26
26
{
27
27
    setToolTip(i18n("Edit guidelines"));
28
 
    setToolType(mainToolType());
 
28
    setToolType("never");
29
29
    setPriority(1);
 
30
    setInputDeviceAgnostic(true);
 
31
    setActivationShapeId("itShouldNeverBeActivated");
30
32
}
31
33
 
32
34
GuidesToolFactory::~GuidesToolFactory()
33
35
{
34
36
}
35
37
 
36
 
KoTool* GuidesToolFactory::createTool(KoCanvasBase *canvas)
 
38
KoToolBase* GuidesToolFactory::createTool(KoCanvasBase *canvas)
37
39
{
38
 
    return new GuidesTool( canvas );
 
40
    return new GuidesTool(canvas);
39
41
}