cancelButton = new QPushButton(tr("Cancel"),this);
- cachingLabel = new QLabel(this);
- cachingLabel->hide();
+ cachingTimeLabel = new QLabel(this);
+ cachingTimeLabel->hide();
+ #ifndef Q_WS_MAEMO_5
+ cachingLabel = new QLabel(this);
+ cachingLabel->setText(tr("Caching dictionary, please wait"));
+ verticalLayout->addWidget(cachingLabel, 0, Qt::AlignCenter);
+ #endif
- verticalLayout->addWidget(cachingLabel);
+
+ verticalLayout->addWidget(cachingTimeLabel);
verticalLayout->addWidget(cachingProgressBar);
verticalLayout->addWidget(cancelButton);
void XdxfCachingDialog::updateCachingProgress(int progress, int time) {
cachingProgressBar->setValue(progress);
- if(!cachingLabel->isVisible())
- cachingLabel->show();
+ if(!cachingTimeLabel->isVisible())
+ cachingTimeLabel->show();
int seconds = float((100 - progress)*time) / (5*1000);
- cachingLabel->setText(tr("Estimated time left: ") +
+ cachingTimeLabel->setText(tr("Estimated time left: ") +
tr("%n second(s)", "", seconds));
if(progress >= 100)
this->accept();