Update state syncer to account for new features

Update state syncer (class DatabaseWidgetStateSync) to account for new
features:
- properly sync view state when switching tabs
- properly read/write view state from/to config

Update classes EntryModel and EntryView to consistenly name list/search
modes. Before, both classes defined list mode as 'group mode' and search
mode as 'entry list mode', which differed from naming in other classes
such as DatabaseWidget.
This commit is contained in:
Fonic 2017-12-23 08:40:00 +01:00
parent 18be1a0254
commit e3a5a22b84
9 changed files with 408 additions and 111 deletions

View file

@ -138,6 +138,13 @@ void Config::init(const QString& fileName)
m_defaults.insert("GUI/DarkTrayIcon", false);
m_defaults.insert("GUI/MinimizeToTray", false);
m_defaults.insert("GUI/MinimizeOnClose", false);
/**
* @author Fonic <https://github.com/fonic>
* Set defaults for state of 'Hide Usernames'/'Hide Passwords' settings
* of entry view
*/
m_defaults.insert("GUI/EntryHideUsernames", false);
m_defaults.insert("GUI/EntryHidePasswords", true);
}
Config* Config::instance()