summaryrefslogtreecommitdiffstats
path: root/qml
diff options
context:
space:
mode:
authorCaroline Chao <caroline.chao@digia.com>2014-09-19 16:35:48 +0200
committerNiels Weber <niels.weber@digia.com>2014-09-22 13:33:50 +0200
commit02973560c193d36c195f2bc022a8465e5a8e93d4 (patch)
treecf1d69a0a3978e51dbe6b8b9c9a957da39f64f29 /qml
parent29d8471de09d9bb625dacaf9b10e8a480533f7d0 (diff)
Remove console.log and qDebug()
Change-Id: Ifff86e1bdf24c2990b0838a68619332938a81fea Reviewed-by: Niels Weber <niels.weber@digia.com>
Diffstat (limited to 'qml')
-rw-r--r--qml/components/ModelsSingleton.qml28
1 files changed, 14 insertions, 14 deletions
diff --git a/qml/components/ModelsSingleton.qml b/qml/components/ModelsSingleton.qml
index e5f6e18..4dbf25b 100644
--- a/qml/components/ModelsSingleton.qml
+++ b/qml/components/ModelsSingleton.qml
@@ -179,7 +179,7 @@ QtObject {
function saveFeedback(fbtext, eventId, rating)
{
- console.log("saveFeedback")
+ //console.log("saveFeedback")
var reply = applicationClient.client.create({
"objectType": "objects.Feedback",
"event": {
@@ -189,23 +189,23 @@ QtObject {
"rating": rating,
"feedbackText": fbtext
})
- reply.finished.connect(function() {
- if (reply.errorType !== EnginioReply.NoError) {
- console.log("Failed to save feedback.\n")
- } else {
- console.log("Successfully saved feedback.\n")
- }
- })
+// reply.finished.connect(function() {
+// if (reply.errorType !== EnginioReply.NoError) {
+// console.log("Failed to save feedback.\n")
+// } else {
+// console.log("Successfully saved feedback.\n")
+// }
+// })
}
function saveFavorite(saveEventId)
{
if (busy) {
- console.log("busy removing or saving favorite. Should we show some indicator here?")
+ //console.log("busy removing or saving favorite. Should we show some indicator here?")
return
}
busy = true
- console.log("start saving favorite")
+ //console.log("start saving favorite")
var reply = applicationClient.client.create({
"objectType": "objects.Favorite",
"favoriteEvent": {
@@ -220,18 +220,18 @@ QtObject {
else
eventModel.addFavorite(saveEventId)
busy = false
- console.log("favorite save done")
+ //console.log("favorite save done")
})
}
function removeFavorite(removeEventId)
{
if (busy) {
- console.log("busy removing or saving favorite. Should we show some indicator here?")
+ //console.log("busy removing or saving favorite. Should we show some indicator here?")
return
}
busy = true
- console.log("start removing favorite. First get the favorite id which should be removed")
+ //console.log("start removing favorite. First get the favorite id which should be removed")
var favoriteQuery = applicationClient.client.query({
"objectType": "objects.Favorite",
"query":{
@@ -258,7 +258,7 @@ QtObject {
eventModel.removeFavorite(removeEventId)
})
}
- console.log("favorite remove done")
+ //console.log("favorite remove done")
}
busy = false
})