Don't register ConfigModel twice
Test Plan: Opened config Reviewers: #plasma, broulik Reviewed By: #plasma, broulik Subscribers: plasma-devel, #frameworks Tags: #plasma, #frameworks Differential Revision: https://phabricator.kde.org/D4010
This commit is contained in:
parent
a0119858e4
commit
dcd81c6be8
@ -101,8 +101,6 @@ void ConfigViewPrivate::init()
|
|||||||
kdeclarative.setTranslationDomain("plasma_applet_" + applet.data()->pluginMetaData().pluginId());
|
kdeclarative.setTranslationDomain("plasma_applet_" + applet.data()->pluginMetaData().pluginId());
|
||||||
}
|
}
|
||||||
kdeclarative.setupBindings();
|
kdeclarative.setupBindings();
|
||||||
qmlRegisterType<ConfigModel>("org.kde.plasma.configuration", 2, 0, "ConfigModel");
|
|
||||||
qmlRegisterType<ConfigCategory>("org.kde.plasma.configuration", 2, 0, "ConfigCategory");
|
|
||||||
|
|
||||||
//FIXME: problem on nvidia, all windows should be transparent or won't show
|
//FIXME: problem on nvidia, all windows should be transparent or won't show
|
||||||
q->setColor(Qt::transparent);
|
q->setColor(Qt::transparent);
|
||||||
@ -266,9 +264,9 @@ ConfigView::ConfigView(Plasma::Applet *applet, QWindow *parent)
|
|||||||
d(new ConfigViewPrivate(applet, this))
|
d(new ConfigViewPrivate(applet, this))
|
||||||
{
|
{
|
||||||
setIcon(QIcon::fromTheme(QStringLiteral("configure")));
|
setIcon(QIcon::fromTheme(QStringLiteral("configure")));
|
||||||
d->init();
|
|
||||||
qmlRegisterType<ConfigModel>("org.kde.plasma.configuration", 2, 0, "ConfigModel");
|
qmlRegisterType<ConfigModel>("org.kde.plasma.configuration", 2, 0, "ConfigModel");
|
||||||
qmlRegisterType<ConfigCategory>("org.kde.plasma.configuration", 2, 0, "ConfigCategory");
|
qmlRegisterType<ConfigCategory>("org.kde.plasma.configuration", 2, 0, "ConfigCategory");
|
||||||
|
d->init();
|
||||||
connect(applet, &QObject::destroyed, this, &ConfigView::close);
|
connect(applet, &QObject::destroyed, this, &ConfigView::close);
|
||||||
connect(this, &QQuickView::statusChanged, [=](QQuickView::Status status) {
|
connect(this, &QQuickView::statusChanged, [=](QQuickView::Status status) {
|
||||||
if (status == QQuickView::Ready) {
|
if (status == QQuickView::Ready) {
|
||||||
|
Loading…
Reference in New Issue
Block a user