Reset focus when opening database settings, edit entry and edit group widget.

This commit is contained in:
Florian Geyer authored and Felix Geyer committed 2012-04-25 00:30:23 +02:00
1 parent f7bdeefbe3
commit 5ce9b5da78
3 files changed
+6

No files matched your search

+2
View File
@@ -45,6 +45,8 @@ void DatabaseSettingsWidget::setForms(QString dbName, QString dbDescription,
m_ui->recycleBinEnabledCheckBox->setCheckState(Qt::Unchecked);
}
m_ui->transformRoundsSpinBox->setValue(transformRounds);
m_ui->dbNameEdit->setFocus();
}
quint64 DatabaseSettingsWidget::transformRounds()
+2
View File
@@ -119,6 +119,8 @@ void EditEntryWidget::loadEntry(Entry* entry, bool create, const QString& groupN
m_attachmentsModel->setEntryAttachments(m_entryAttachments);
m_ui->categoryList->setCurrentRow(0);
m_mainUi->titleEdit->setFocus();
}
void EditEntryWidget::saveEntry()
+2
View File
@@ -51,6 +51,8 @@ void EditGroupWidget::loadGroup(Group* group, bool create)
m_ui->editName->setText(m_group->name());
m_ui->editNotes->setPlainText(m_group->notes());
m_ui->editName->setFocus();
}
void EditGroupWidget::save()