Add column 'Paperclip' to entry view table

Add additional column 'Paperclip' to entry view table:
- add column itself
- add display role data provider
- add sort role data provider
- update total column count
This commit is contained in:
Fonic 2018-01-15 10:06:45 +01:00
parent e3a5a22b84
commit 161d0ea50f
2 changed files with 45 additions and 12 deletions

View file

@ -45,7 +45,8 @@ public:
Created = 7,
Modified = 8,
Accessed = 9,
Attachments = 10
Paperclip = 10,
Attachments = 11
};
explicit EntryModel(QObject* parent = nullptr);
@ -130,7 +131,7 @@ private:
* Constant string used to display hidden content in columns 'Username'
* and 'Password'
*/
static const QString HiddenContent;
static const QString HiddenContentDisplay;
/**
* @author Fonic <https://github.com/fonic>
@ -138,6 +139,13 @@ private:
* 'Modified' and 'Accessed'
*/
static const Qt::DateFormat DateFormat;
/**
* @author Fonic <https://github.com/fonic>
* Constant string used to display header and data of column 'Paper-
* clip'
*/
static const QString PaperClipDisplay;
};
#endif // KEEPASSX_ENTRYMODEL_H