par = this;
#endif
if(QMessageBox::question(par, tr("Delete all bookmarks"),
- tr("Do you want to delete all bookmarks? (This action cannot be revoked)"),
+ tr("Do you want to delete all bookmarks? (This action cannot be revoked, and will clear current word list)"),
QMessageBox::Yes, QMessageBox::Cancel) == QMessageBox::Yes) {
backbone->removeAllBookmarks();
+ ((WordListWidget*)wordListWidget)->clear();
}
+
+
}
//! Unlocks words list
void unlockList();
+ //! clears list
+ void clear();
+
protected:
//! Reimplemented standard mouseReleaseEvent to check if user clicked on
//! word or on its star to emit suitable signal
//! side next to scroll bar
void resizeEvent(QResizeEvent *event);
+
+
private Q_SLOTS:
//! Emits signal to show translation of clicked item. Signal is emitted
//! only when word was clicked.
//! Signal is emitted only when star was clicked.
void wordChecked(QModelIndex index);
- //! clears list
- void clear();
+
private:
//! Adds word to model. Row is row in the model
this, SLOT(updateCachingProgress(int, int)));
time.start();
- setModal(true);
+ #ifndef Q_WS_MAEMO_5
+ setModal(true);
+ #endif
}
#ifndef Q_WS_MAEMO_5
setMinimumSize(400,200);
+ #else
+ setMinimumHeight(350);
#endif
scrollArea->setLineWidth(0);
bool XdxfPlugin::makeCache(QString) {
- cachingDialog->show();
+ #ifdef Q_WS_MAEMO_5
+ cachingDialog->setVisible(true);
+ #else
+ cachingDialog->show();
+ #endif
QCoreApplication::processEvents();
QFileInfo dictFileN(_settings->value("path"));
QString cachePathN;