on xenial help sign in
Log when we are called activate
commita747edd3f5d99a09aa8e951d1869a4603daf4cc9 authorAlbert Astals <albert.astals@canonical.com> dateThu 17 Jul 2014, 12:04 (12 years ago) parent7b100be
2 files changed+4−2
tests/mocks/Unity/fake_resultsmodel.cpp+2−1 tests/mocks/Unity/fake_scope.cpp+2−1
tests/mocks/Unity/fake_resultsmodel.cpp+2−1
@@ -58,8 +58,9 @@ ResultsModel::data(const QModelIndex& index, int role) const
5858 case RoleUri:
5959 case RoleCategoryId:
6060 case RoleDndUri:
61− case RoleResult:
6261 return QString();
62+ case RoleResult:
63+ return QString("Result.%1.%2").arg(m_categoryId).arg(index.row());
6364 case RoleTitle:
6465 return QString("Title.%1.%2").arg(m_categoryId).arg(index.row());
6566 case RoleArt:
tests/mocks/Unity/fake_scope.cpp+2−1
@@ -14,6 +14,7 @@
1414 * along with this program. If not, see <http://www.gnu.org/licenses/>.
1515 */
1616
17+#include <QDebug>
1718#include <QUrl>
1819
1920#include "fake_scope.h"
@@ -149,7 +150,7 @@ void Scope::setNoResultsHint(const QString& str)
149150
150151void Scope::activate(QVariant const& result)
151152{
152− Q_UNUSED(result);
153+ qDebug() << "Called activate on scope" << m_id << "with result" << result;;
153154}
154155
155156PreviewStack* Scope::preview(QVariant const& result)