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

@ -77,6 +77,7 @@ public:
signals:
void switchedToEntryListMode();
void switchedToGroupMode();
/**
* @author Fonic <https://github.com/fonic>
* Signals to notify about state changes of 'Hide Usernames' and 'Hide
@ -88,6 +89,13 @@ signals:
public slots:
void setGroup(Group* group);
/**
* @author Fonic <https://github.com/fonic>
* Slots to toggle state of 'Hide Usernames' and 'Hide Passwords' settings
*/
void toggleHideUsernames(const bool hide);
void toggleHidePasswords(const bool hide);
private slots:
void entryAboutToAdd(Entry* entry);
void entryAdded(Entry* entry);