Enhance attribute entry and add protected attributes (#220)

* Allow protected attributes to be hidden
* Entry area is resizable
* Added test cases for protected attributes
This commit is contained in:
Jonathan White
2017-03-07 22:38:18 -05:00
committed by GitHub
parent a1e1a33308
commit 31494ec327
5 changed files with 195 additions and 48 deletions

View File

@@ -76,6 +76,8 @@ private Q_SLOTS:
void editCurrentAttribute();
void removeCurrentAttribute();
void updateCurrentAttribute();
void protectCurrentAttribute(bool state);
void revealCurrentAttribute();
void insertAttachment();
void saveCurrentAttachment();
void openAttachment(const QModelIndex& index);
@@ -110,6 +112,8 @@ private:
QMenu* createPresetsMenu();
void updateEntryData(Entry* entry) const;
void displayAttribute(QModelIndex index, bool showProtected);
Entry* m_entry;
Database* m_database;