Add header context menu to entry view table

Add header context menu to entry view table (accessible using right
click on header), providing:
- Actions to toggle 'Hide Usernames' / 'Hide Passwords'
- Actions to toggle column visibility
- Actions to resize columns
- Action to reset view to defaults
This commit is contained in:
Fonic 2017-12-21 10:01:47 +01:00
parent 268035ff9e
commit 31d73626e5
4 changed files with 313 additions and 5 deletions

View file

@ -578,3 +578,21 @@ void EntryModel::setHidePasswords(const bool hide)
m_hidePasswords = hide;
emit hidePasswordsChanged();
}
/**
* @author Fonic <https://github.com/fonic>
* Toggle state of 'Hide Usernames' setting
*/
void EntryModel::toggleHideUsernames(const bool hide)
{
setHideUsernames(hide);
}
/**
* @author Fonic <https://github.com/fonic>
* Toggle state of 'Hide Passwords' setting
*/
void EntryModel::toggleHidePasswords(const bool hide)
{
setHidePasswords(hide);
}