on xenial help sign in
Log when we are called activate
a747eddAlbert Astals
tests/mocks/Unity/fake_resultsmodel.cpp+2−1
@@ -58,8 +58,9 @@ ResultsModel::data(const QModelIndex& index, int role) const
58 case RoleUri:
58 case RoleUri:
59 case RoleCategoryId:
59 case RoleCategoryId:
60 case RoleDndUri:
60 case RoleDndUri:
61− case RoleResult:
62 return QString();
61 return QString();
62+ case RoleResult:
63+ return QString("Result.%1.%2").arg(m_categoryId).arg(index.row());
63 case RoleTitle:
64 case RoleTitle:
64 return QString("Title.%1.%2").arg(m_categoryId).arg(index.row());
65 return QString("Title.%1.%2").arg(m_categoryId).arg(index.row());
65 case RoleArt:
66 case RoleArt:
tests/mocks/Unity/fake_scope.cpp+2−1
@@ -14,6 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
15 */
16
16
17+#include <QDebug>
17#include <QUrl>
18#include <QUrl>
18
19
19#include "fake_scope.h"
20#include "fake_scope.h"
@@ -149,7 +150,7 @@ void Scope::setNoResultsHint(const QString& str)
149
150
150void Scope::activate(QVariant const& result)
151void Scope::activate(QVariant const& result)
151{
152{
152− Q_UNUSED(result);
153+ qDebug() << "Called activate on scope" << m_id << "with result" << result;;
153}
154}
154
155
155PreviewStack* Scope::preview(QVariant const& result)
156PreviewStack* Scope::preview(QVariant const& result)