aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cord-Landwehr <[email protected]>2014-08-11 23:53:18 +0200
committerAndreas Cord-Landwehr <[email protected]>2014-08-12 09:30:12 +0200
commit7bbadbf58a2afe32b7c89981c68c985f5dd35091 (patch)
tree63216270d6b1869c5320f23ef3a5fb068f310d72
parent2744242281c1247f2835162aabd7f3fab82cffce (diff)
Connect to GHNS-Signal.
-rw-r--r--src/mainwindow.cpp2
-rw-r--r--src/mainwindow.h4
-rw-r--r--src/qml/Main.qml2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index ade30e8..6de9c8d 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -107,6 +107,8 @@ MainWindow::MainWindow()
// set initial view
rootObject()->setProperty("viewMode", Trainer);
+ connect(rootObject(), SIGNAL(downloadNewStuff()),
+ this, SLOT(downloadNewStuff()));
// set font for the phrase in trainer to default from kcfg file
QObject *phraseText = rootObject()->findChild<QObject*>("phraseText");
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 5ad76ff..0f0086c 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -65,7 +65,7 @@ public:
bool queryClose();
-public slots:
+public Q_SLOTS:
void showCourseEditor();
void closeCourseEditor();
void switchMode();
@@ -75,7 +75,7 @@ public slots:
void updateKcfgUseContributorResources();
void configLearnerProfile();
-signals:
+Q_SIGNALS:
void modeChanged(bool);
private:
diff --git a/src/qml/Main.qml b/src/qml/Main.qml
index e367413..f7af8ea 100644
--- a/src/qml/Main.qml
+++ b/src/qml/Main.qml
@@ -24,6 +24,8 @@ import artikulate 1.0
Item {
id: root
+ signal downloadNewStuff();
+
Item {
id: theme
property string backgroundColor: "#ffffff"