XdxfDictDownloadProgressDialog::XdxfDictDownloadProgressDialog(QWidget*parent):
QDialog(parent) {
-qDebug()<<"etap 01";
#ifndef Q_WS_MAEMO_5
view= new QDeclarativeView();
view->setSource(QUrl::fromLocalFile("/usr/share/mdictionary/qml/XdxfDictDownloader.qml"));
void XdxfDictDownloadProgressDialog::show() {
-qDebug()<<"etap 02";
#ifndef Q_WS_MAEMO_5
emit setMaximumValue(0);
maximumValue=0;
void XdxfDictDownloadProgressDialog::setText(QString text) {
-qDebug()<<"etap 03";
-
#ifndef Q_WS_MAEMO_5
emit setTextt(text);
#else
void XdxfDictDownloadProgressDialog::updateProgress(float progress) {
-qDebug()<<"etap 04";
#ifndef Q_WS_MAEMO_5
if(maximumValue == 0) {
emit setMaximumValue(100);
void XdxfDictDownloadProgressDialog::reject() {
-qDebug()<<"etap 05";
+ qDebug("tu");
#ifndef Q_WS_MAEMO_5
- Q_EMIT cancelDownloading();
+ emit cancelDownloading();
+ emit setValue(-1);
#else
return;
#endif