mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-02 04:14:52 -05:00
Move Hide Usernames/Passwords into view menu
* Fixes #4982 * Removed a lot of redundant and passthrough code
This commit is contained in:
parent
c2f36d877f
commit
12782161bc
13 changed files with 64 additions and 196 deletions
|
|
@ -21,6 +21,8 @@
|
|||
#include <QAbstractTableModel>
|
||||
#include <QPixmap>
|
||||
|
||||
#include "core/Config.h"
|
||||
|
||||
class Entry;
|
||||
class Group;
|
||||
|
||||
|
|
@ -64,15 +66,6 @@ public:
|
|||
void setGroup(Group* group);
|
||||
void setEntries(const QList<Entry*>& entries);
|
||||
|
||||
bool isUsernamesHidden() const;
|
||||
void setUsernamesHidden(bool hide);
|
||||
bool isPasswordsHidden() const;
|
||||
void setPasswordsHidden(bool hide);
|
||||
|
||||
signals:
|
||||
void usernamesHiddenChanged();
|
||||
void passwordsHiddenChanged();
|
||||
|
||||
private slots:
|
||||
void entryAboutToAdd(Entry* entry);
|
||||
void entryAdded(Entry* entry);
|
||||
|
|
@ -84,6 +77,8 @@ private slots:
|
|||
void entryMovedDown();
|
||||
void entryDataChanged(Entry* entry);
|
||||
|
||||
void onConfigChanged(Config::ConfigKey key);
|
||||
|
||||
private:
|
||||
void severConnections();
|
||||
void makeConnections(const Group* group);
|
||||
|
|
@ -93,9 +88,6 @@ private:
|
|||
QList<Entry*> m_orgEntries;
|
||||
QList<const Group*> m_allGroups;
|
||||
|
||||
bool m_hideUsernames;
|
||||
bool m_hidePasswords;
|
||||
|
||||
const QString HiddenContentDisplay;
|
||||
const Qt::DateFormat DateFormat;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue