summaryrefslogtreecommitdiffstats
path: root/src/javascriptInterface.cpp
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-09 20:28:17 +0100
committerJonathan Bauer2011-03-09 20:28:17 +0100
commite830cfcdee7f0ecb6d2b9a0d52ab19b28402eec2 (patch)
tree4e182931a584c5d4c00c426fd8bf4502d5de5e76 /src/javascriptInterface.cpp
parentjavascriptInterface can be accessed by "fbgui" now (jsObject also for now..) (diff)
downloadfbgui-e830cfcdee7f0ecb6d2b9a0d52ab19b28402eec2.tar.gz
fbgui-e830cfcdee7f0ecb6d2b9a0d52ab19b28402eec2.tar.xz
fbgui-e830cfcdee7f0ecb6d2b9a0d52ab19b28402eec2.zip
DM also provides current file on update
Diffstat (limited to 'src/javascriptInterface.cpp')
-rw-r--r--src/javascriptInterface.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/javascriptInterface.cpp b/src/javascriptInterface.cpp
index fc7203a..955ff4e 100644
--- a/src/javascriptInterface.cpp
+++ b/src/javascriptInterface.cpp
@@ -45,11 +45,12 @@ void javascriptInterface::startDownload(QString filename)
}
//-------------------------------------------------------------------------------------------------------
-void javascriptInterface::updateProgressBar(int i)
+void javascriptInterface::updateProgressBar(QString current, int i)
{
if (i == 0)
return;
- QString code = QString("updateProgress(\%1)").arg(i);
+ QString code = QString("updateProgress(\%1 \%2)").arg(current).arg(i);
+ qDebug() << "To JS: " << code;
_parent->evaluateJavaScript(code);
}
//-------------------------------------------------------------------------------------------------------