Skip to content

Commit

Permalink
core: Add ContainmentItem
Browse files Browse the repository at this point in the history
Without this, containments can't access the Containment attached
object.

Issue: #150
  • Loading branch information
plfiorini committed Mar 24, 2014
1 parent 025fd4b commit b8d555f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/declarative/core/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <QtQml/QQmlExtensionPlugin>
#include <QtQml/QQmlComponent>

#include <HawaiiShell/ContainmentItem>
#include <HawaiiShell/ElementItem>

#include "packagesmodelitem.h"
Expand All @@ -45,6 +46,8 @@ class HawaiiShellCorePlugin : public QQmlExtensionPlugin
void HawaiiShellCorePlugin::registerTypes(const char *uri)
{
// @uri Hawaii.Shell.Core
qmlRegisterUncreatableType<ContainmentItem>(uri, 1, 0, "Containment",
QStringLiteral("Do not create Containment"));
qmlRegisterUncreatableType<ElementItem>(uri, 1, 0, "Element",
QStringLiteral("Do not create Element"));
qmlRegisterUncreatableType<PackagesModelItem>(uri, 1, 0, "PackagesModelItem",
Expand Down

0 comments on commit b8d555f

Please sign in to comment.