Krita Source Code Documentation
Loading...
Searching...
No Matches
KoDockRegistry.cpp
Go to the documentation of this file.
1/* This file is part of the KDE project
2 * SPDX-FileCopyrightText: 2006-2007 Thomas Zander <zander@kde.org>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#include "KoDockRegistry.h"
8
9#include <QGlobalStatic>
10#include <QDebug>
11#include <QApplication>
12
13#include <ksharedconfig.h>
14#include <kconfiggroup.h>
15
16#include "KoPluginLoader.h"
17
19
21 : d(0)
22{
23}
24
26{
28 config.blacklist = "DockerPluginsDisabled";
29 config.group = "krita";
30 KoPluginLoader::instance()->load(QString::fromLatin1("Krita/Dock"),
31 config);
32}
33
35{
36 Q_FOREACH(const KoDockFactoryBase *a, values()) {
37 delete a;
38 }
39}
40
42{
43
44 if (!s_instance.exists()) {
45 s_instance->init();
46 }
47 return s_instance;
48}
Q_GLOBAL_STATIC(KisStoragePluginRegistry, s_instance)
~KoDockRegistry() override
static KoDockRegistry * instance()
QList< KoDockFactoryBase * > values() const
void load(const QString &serviceType, const PluginsConfig &config=PluginsConfig(), QObject *owner=0, bool cache=true)
static KoPluginLoader * instance()
const char * blacklist
This contains the variable name for the list of plugins (by library name) that will not be loaded.