on xenial help sign in
Updated activate TODO.
commita6b356f46e7e30b04434af9b80a32e3cd933b6ad authorPawel Stolowski <pawel.stolowski@canonical.com> dateWed 12 Jun 2013, 17:37 (13 years ago) parente0bc11f
1 file changed+4−1
plugins/Unity/scope.cpp+4−1
plugins/Unity/scope.cpp+4−1
@@ -120,7 +120,10 @@ void Scope::setNoResultsHint(const QString& hint) {
120120
121121void Scope::activate(const QString& uri)
122122{
123−// m_unityScope->Activate(QByteArray::fromPercentEncoding(uri.toUtf8()).constData()); TODO needs model row
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.
126+ // m_unityScope->Activate(QByteArray::fromPercentEncoding(uri.toUtf8()).constData());
124127}
125128
126129void Scope::onActivated(unity::dash::LocalResult const& result, unity::dash::ScopeHandledType type, unity::glib::HintsMap const&)