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

« back to all changes in this revision

Viewing changes to krita/ui/kis_painting_assistant.cc

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2010-10-27 17:52:57 UTC
  • mfrom: (0.12.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20101027175257-s04zqqk5bs8ckm9o
Tags: 1:2.2.83-0ubuntu1
* Merge with Debian git remaining changes:
 - Add build-deps on librcps-dev, opengtl-dev, libqtgtl-dev, freetds-dev,
   create-resources, libspnav-dev
 - Remove needless build-dep on libwv2-dev
 - koffice-libs recommends create-resources
 - krita recommends pstoedit
 - Keep our patches
* New upstream release 2.3 beta 3
  - Remove debian/patches fixed by upstream
  - Update install files

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 */
18
18
 
19
19
#include "kis_painting_assistant.h"
 
20
#include "kis_debug.h"
20
21
 
 
22
#include <kglobal.h>
21
23
 
22
24
struct KisPaintingAssistantHandle::Private {
23
25
    QList<KisPaintingAssistant*> assistants;
143
145
{
144
146
}
145
147
 
146
 
KisPaintingAssistantFactoryRegistry* KisPaintingAssistantFactoryRegistry::s_instance = 0;
147
 
 
148
148
KisPaintingAssistantFactoryRegistry::KisPaintingAssistantFactoryRegistry()
149
149
{
150
150
}
151
151
 
 
152
KisPaintingAssistantFactoryRegistry::~KisPaintingAssistantFactoryRegistry()
 
153
{
 
154
    foreach(QString id, keys()) {
 
155
        delete get(id);
 
156
    }
 
157
    dbgRegistry << "deleting KisPaintingAssistantFactoryRegistry ";
 
158
}
 
159
 
152
160
KisPaintingAssistantFactoryRegistry* KisPaintingAssistantFactoryRegistry::instance()
153
161
{
154
 
    if(!s_instance)
155
 
    {
156
 
      s_instance = new KisPaintingAssistantFactoryRegistry;
157
 
    }
 
162
    K_GLOBAL_STATIC(KisPaintingAssistantFactoryRegistry, s_instance);
158
163
    return s_instance;
159
164
}
160
165