connect(rootObject, SIGNAL(itemActivated(int)),
this, SLOT(settingsButtonClicked()));
+ connect(this, SIGNAL(setFocusOnQML()), rootObject, SLOT(setFocus()));
+
#endif
#ifdef Q_WS_MAEMO_5
model->clear();
model->setDictionaries(dicts);
}
+ setFocusOnElement();
#endif
void DictManagerWidget::addNewDictButtonClicked() {
#ifndef Q_WS_MAEMO_5
- qDebug()<<"1 "<<_changed;
if(!_changed || QMessageBox::question(this,
tr("Save"), tr("Do you want to save changes?"),
QMessageBox::Save, QMessageBox::Cancel) == QMessageBox::Save) {
- qDebug()<<"2";
_save = true;
saveChanges();
_save = false;
#ifndef Q_WS_MAEMO_5
- void DictManagerWidget::save() {
- _save = true;
- hide();
- }
+void DictManagerWidget::save() {
+ _save = true;
+ hide();
+}
+
+void DictManagerWidget::setFocusOnElement(){
+ Q_EMIT setFocusOnQML();
+}
#endif