on xenial help sign in
Updated activate TODO.
a6b356fPawel Stolowski
plugins/Unity/scope.cpp+4−1
@@ -120,7 +120,10 @@ void Scope::setNoResultsHint(const QString& hint) {
120
120
121void Scope::activate(const QString& uri)
121void Scope::activate(const QString& uri)
122{
122{
123+ // TODO:
124+ // we need to create unity::dash::LocalResult (see UnityCore/Result.h) and pass it to Activate;
125+ // this requires entire row from the model, so we need row index rather than uri.
123−// m_unityScope->Activate(QByteArray::fromPercentEncoding(uri.toUtf8()).constData()); TODO needs model row
126+ // m_unityScope->Activate(QByteArray::fromPercentEncoding(uri.toUtf8()).constData());
124}
127}
125
128
126void Scope::onActivated(unity::dash::LocalResult const& result, unity::dash::ScopeHandledType type, unity::glib::HintsMap const&)
129void Scope::onActivated(unity::dash::LocalResult const& result, unity::dash::ScopeHandledType type, unity::glib::HintsMap const&)