Add gui option for history max items and size to database settings widget.

This commit is contained in:
Florian Geyer 2012-05-10 13:15:43 +02:00
parent 1a74feb253
commit 1c24b2c5c4
6 changed files with 162 additions and 17 deletions

View file

@ -276,6 +276,8 @@ void DatabaseWidget::updateSettings(bool accepted)
m_db->metadata()->setDefaultUserName(m_databaseSettingsWidget->defaultUsername());
m_db->metadata()->setRecycleBinEnabled(m_databaseSettingsWidget->recylceBinEnabled());
m_db->metadata()->setName(m_databaseSettingsWidget->dbName());
m_db->metadata()->setHistoryMaxItems(m_databaseSettingsWidget->historyMaxItems());
m_db->metadata()->setHistoryMaxSize(m_databaseSettingsWidget->historyMaxSize());
}
setCurrentIndex(0);
@ -303,7 +305,9 @@ void DatabaseWidget::switchToDatabaseSettings()
m_db->metadata()->description(),
m_db->metadata()->defaultUserName(),
m_db->metadata()->recycleBinEnabled(),
m_db->transformRounds());
m_db->transformRounds(),
m_db->metadata()->historyMaxItems(),
m_db->metadata()->historyMaxSize());
setCurrentIndex(4);
}