@@ -44,7 +44,6 @@ Lenses::Lenses(QObject *parent)
44 m_unityLenses->scope_removed.connect(sigc::mem_fun(this, &Lenses::onScopeRemoved));
44 m_unityLenses->scope_removed.connect(sigc::mem_fun(this, &Lenses::onScopeRemoved));
45 m_unityLenses->scopes_reordered.connect(sigc::mem_fun(this, &Lenses::onScopesReordered));
45 m_unityLenses->scopes_reordered.connect(sigc::mem_fun(this, &Lenses::onScopesReordered));
46 m_unityLenses->LoadScopes();
46 m_unityLenses->LoadScopes();
47− //std::dynamic_pointer_cast<unity::dash::FilesystemLenses>(m_unityLenses)->lenses_loaded.connect(sigc::mem_fun(this, &Lenses::onLensesLoaded));
50QHash<int, QByteArray> Lenses::roleNames() const
49QHash<int, QByteArray> Lenses::roleNames() const
@@ -115,20 +114,20 @@ void Lenses::onScopeAdded(const unity::dash::Scope::Ptr& scope, int position)
116void Lenses::onScopeRemoved(const unity::dash::Scope::Ptr& scope)
115void Lenses::onScopeRemoved(const unity::dash::Scope::Ptr& scope)
118− //TODO pawel
117+ //TODO
121void Lenses::onScopesReordered(const unity::dash::Scopes::ScopeList& scopes)
120void Lenses::onScopesReordered(const unity::dash::Scopes::ScopeList& scopes)
123− //TODO pawel
122+ //TODO
126−void Lenses::onLensesLoaded()
125+void Lenses::loadMocks()
128 /* FIXME: this is temporary code that is required on mobile to order
127 /* FIXME: this is temporary code that is required on mobile to order
129 the lenses according to the design.
128 the lenses according to the design.
131− /*QStringList staticLenses;
130+ QStringList staticLenses;
132 staticLenses << "mockmusic.lens" << "people.lens" << "home.lens" << "applications.lens" << "mockvideos.lens";
131 staticLenses << "mockmusic.lens" << "people.lens" << "home.lens" << "applications.lens" << "mockvideos.lens";
134 // not all the lenses are guaranteed to go into the model (only if their UnitCore counterparts exist);
133 // not all the lenses are guaranteed to go into the model (only if their UnitCore counterparts exist);
@@ -159,7 +158,7 @@ void Lenses::onLensesLoaded()
159 addUnityLens(lens);
158 addUnityLens(lens);
161 endInsertRows();
160 endInsertRows();
164 m_loaded = true;
163 m_loaded = true;
165 Q_EMIT loadedChanged(m_loaded);
164 Q_EMIT loadedChanged(m_loaded);