Ubuntu Pastebin

Paste from cimi at Wed, 11 Feb 2015 13:13:55 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
=== modified file 'tests/mocks/Unity/fake_previewmodel.cpp'
--- tests/mocks/Unity/fake_previewmodel.cpp	2014-08-11 09:57:29 +0000
+++ tests/mocks/Unity/fake_previewmodel.cpp	2015-02-11 13:11:05 +0000
@@ -34,6 +34,7 @@
     // we have one column by default
     PreviewWidgetModel* columnModel = new PreviewWidgetModel(this);
     m_previewWidgetModels.append(columnModel);
+    connect(this, SIGNAL(triggered()), this, SLOT(triggeredSlot()));
 }
 
 void PreviewModel::setWidgetColumnCount(int count)
@@ -80,3 +81,7 @@
         Q_EMIT loadedChanged();
     }
 }
+
+void PreviewModel::triggeredSlot(QString const&, QString const&, QVariantMap const&) {
+    //open scope here
+}

=== modified file 'tests/mocks/Unity/fake_previewmodel.h'
--- tests/mocks/Unity/fake_previewmodel.h	2014-08-11 09:57:29 +0000
+++ tests/mocks/Unity/fake_previewmodel.h	2015-02-11 13:13:30 +0000
@@ -42,6 +42,9 @@
 
     Q_INVOKABLE void setLoaded(bool); // Only available for testing
 
+private Q_SLOTS:
+    void triggeredSlot(QString const&, QString const&, QVariantMap const&);
+
 private:
     QList<PreviewWidgetModel*> m_previewWidgetModels;
     bool m_loaded;
Download as text