Add more options to database settings widget.

This commit is contained in:
Florian Geyer 2012-04-19 18:10:53 +02:00 committed by Felix Geyer
parent 258af265c7
commit 26c4dedd01
4 changed files with 77 additions and 4 deletions

View file

@ -198,6 +198,9 @@ void DatabaseWidget::updateSettings(bool accepted)
{
if (accepted) {
m_db->updateKey(m_databaseSettingsWidget->transformRounds());
m_db->metadata()->setDescription(m_databaseSettingsWidget->dbDescription());
m_db->metadata()->setRecycleBinEnabled(m_databaseSettingsWidget->recylceBinEnabled());
m_db->metadata()->setName(m_databaseSettingsWidget->dbName());
}
setCurrentIndex(0);
@ -221,7 +224,10 @@ void DatabaseWidget::switchToMasterKeyChange()
void DatabaseWidget::switchToDatabaseSettings()
{
m_databaseSettingsWidget->setForms(m_db->transformRounds());
m_databaseSettingsWidget->setForms(m_db->metadata()->name(),
m_db->metadata()->description(),
m_db->metadata()->recycleBinEnabled(),
m_db->transformRounds());
setCurrentIndex(4);
}