@@ -31,7 +31,6 @@
31Scope::Scope(QObject *parent) :
31Scope::Scope(QObject *parent) :
32 QObject(parent)
32 QObject(parent)
34− m_results.reset(new DeeListModel(this));
35 m_categories.reset(new Categories(this));
34 m_categories.reset(new Categories(this));
@@ -179,8 +178,6 @@ void Scope::setUnityScope(const unity::dash::Scope::Ptr& scope)
180 m_unityScope = scope;
179 m_unityScope = scope;
182− // TODO: do we even need this?
183− m_results->setModel(m_unityScope->results()->model());
184 m_categories->setUnityScope(m_unityScope);
181 m_categories->setUnityScope(m_unityScope);
186 m_unityScope->form_factor = m_formFactor.toStdString();
183 m_unityScope->form_factor = m_formFactor.toStdString();
@@ -193,7 +190,6 @@ void Scope::setUnityScope(const unity::dash::Scope::Ptr& scope)
193 m_unityScope->visible.changed.connect(sigc::mem_fun(this, &Scope::visibleChanged));
190 m_unityScope->visible.changed.connect(sigc::mem_fun(this, &Scope::visibleChanged));
194 m_unityScope->shortcut.changed.connect(sigc::mem_fun(this, &Scope::shortcutChanged));
191 m_unityScope->shortcut.changed.connect(sigc::mem_fun(this, &Scope::shortcutChanged));
195 m_unityScope->connected.changed.connect(sigc::mem_fun(this, &Scope::connectedChanged));
192 m_unityScope->connected.changed.connect(sigc::mem_fun(this, &Scope::connectedChanged));
196− m_unityScope->results()->model.changed.connect(sigc::mem_fun(this, &Scope::onResultsModelChanged));
197 /* Signals forwarding */
193 /* Signals forwarding */
198 connect(this, SIGNAL(searchFinished(const std::string &, unity::glib::HintsMap const &, unity::glib::Error const &)), SLOT(onSearchFinished(const std::string &, unity::glib::HintsMap const &)));
194 connect(this, SIGNAL(searchFinished(const std::string &, unity::glib::HintsMap const &, unity::glib::Error const &)), SLOT(onSearchFinished(const std::string &, unity::glib::HintsMap const &)));
@@ -222,11 +218,6 @@ void Scope::synchronizeStates()
225−void Scope::onResultsModelChanged(unity::glib::Object<DeeModel> /* model */)
227− m_results->setModel(m_unityScope->results()->model());
230void Scope::onSearchFinished(const std::string& /* query */, unity::glib::HintsMap const &hints)
221void Scope::onSearchFinished(const std::string& /* query */, unity::glib::HintsMap const &hints)
232 QString hint;
223 QString hint;