@@ -14,13 +14,13 @@
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/>.
18#include "fake_scope.h"
17#include "fake_scope.h"
18+#include "fake_preview.h"
20#include <dee.h>
21#include <dee.h>
23−#include "fake_preview.h"
23+#include <QDebug>
25static DeeModel* create_categories_model(unsigned category_count);
25static DeeModel* create_categories_model(unsigned category_count);
26static DeeModel* create_results_model(unsigned category_count, unsigned result_count);
26static DeeModel* create_results_model(unsigned category_count, unsigned result_count);
@@ -168,6 +168,10 @@ void Scope::activate(const QVariant &uri, const QVariant &icon_hint, const QVari
168 Q_UNUSED(comment);
168 Q_UNUSED(comment);
169 Q_UNUSED(dnd_uri);
169 Q_UNUSED(dnd_uri);
170 Q_UNUSED(metadata);
170 Q_UNUSED(metadata);
171+ qDebug() << "foooooooooooooo activating" << uri;
173+ Preview *p = new Preview();
174+ Q_EMIT previewReady(p);
173void Scope::preview(const QVariant &uri, const QVariant &icon_hint, const QVariant &category,
177void Scope::preview(const QVariant &uri, const QVariant &icon_hint, const QVariant &category,
@@ -183,6 +187,9 @@ void Scope::preview(const QVariant &uri, const QVariant &icon_hint, const QVaria
183 Q_UNUSED(comment);
187 Q_UNUSED(comment);
184 Q_UNUSED(dnd_uri);
188 Q_UNUSED(dnd_uri);
185 Q_UNUSED(metadata);
189 Q_UNUSED(metadata);
191+ Preview *p = new Preview();
192+ Q_EMIT previewReady(p);
188static const gchar * categories_model_schema[] = {
195static const gchar * categories_model_schema[] = {