on xenial help sign in
Some cleanups.
commit5fbee09ff9b5cf7448dc2c67cb829dad74451652 authorPawel Stolowski <pawel.stolowski@canonical.com> dateThu 6 Jun 2013, 12:37 (13 years ago) parent89e178b
2 files changed+6−7
plugins/Unity/lenses.cpp+5−6 plugins/Unity/lenses.h+1−1
plugins/Unity/lenses.cpp+5−6
@@ -44,7 +44,6 @@ Lenses::Lenses(QObject *parent)
4444 m_unityLenses->scope_removed.connect(sigc::mem_fun(this, &Lenses::onScopeRemoved));
4545 m_unityLenses->scopes_reordered.connect(sigc::mem_fun(this, &Lenses::onScopesReordered));
4646 m_unityLenses->LoadScopes();
47− //std::dynamic_pointer_cast<unity::dash::FilesystemLenses>(m_unityLenses)->lenses_loaded.connect(sigc::mem_fun(this, &Lenses::onLensesLoaded));
4847}
4948
5049QHash<int, QByteArray> Lenses::roleNames() const
@@ -115,20 +114,20 @@ void Lenses::onScopeAdded(const unity::dash::Scope::Ptr& scope, int position)
115114
116115void Lenses::onScopeRemoved(const unity::dash::Scope::Ptr& scope)
117116{
118− //TODO pawel
117+ //TODO
119118}
120119
121120void Lenses::onScopesReordered(const unity::dash::Scopes::ScopeList& scopes)
122121{
123− //TODO pawel
122+ //TODO
124123}
125124
126−void Lenses::onLensesLoaded()
125+void Lenses::loadMocks()
127126{
128127 /* FIXME: this is temporary code that is required on mobile to order
129128 the lenses according to the design.
130129 */
131− /*QStringList staticLenses;
130+ QStringList staticLenses;
132131 staticLenses << "mockmusic.lens" << "people.lens" << "home.lens" << "applications.lens" << "mockvideos.lens";
133132
134133 // not all the lenses are guaranteed to go into the model (only if their UnitCore counterparts exist);
@@ -159,7 +158,7 @@ void Lenses::onLensesLoaded()
159158 addUnityLens(lens);
160159 }
161160 endInsertRows();
162− }*/
161+ }
163162
164163 m_loaded = true;
165164 Q_EMIT loadedChanged(m_loaded);
plugins/Unity/lenses.h+1−1
@@ -72,10 +72,10 @@ Q_SIGNALS:
7272 void loadedChanged(bool loaded);
7373
7474private Q_SLOTS:
75+ void loadMocks();
7576 void onScopeAdded(const unity::dash::Scope::Ptr& lens, int position);
7677 void onScopeRemoved(const unity::dash::Scope::Ptr& scope);
7778 void onScopesReordered(const unity::dash::Scopes::ScopeList& scopes);
78− void onLensesLoaded();
7979 void onLensPropertyChanged();
8080
8181private: