Skip to content
This repository was archived by the owner on Dec 9, 2021. It is now read-only.

Add sortable last-modified column to entry list view#192

Open
jonhnet wants to merge 1 commit intokeepassx:masterfrom
jonhnet:master
Open

Add sortable last-modified column to entry list view#192
jonhnet wants to merge 1 commit intokeepassx:masterfrom
jonhnet:master

Conversation

@jonhnet
Copy link
Copy Markdown

@jonhnet jonhnet commented Dec 18, 2016

Prior versions of keepassx had the ability to sort entries by last-modified time. I synchronize my keepass db to multiple devices with svn; this feature is invaluable for handling accidental conflicts. This patch reintroduces the last-modified column.

@Thynix
Copy link
Copy Markdown

Thynix commented Jan 1, 2017

Looks like a test needs to be updated to reflect the added column:

FAIL!  : TestEntryModel::testProxyModel() Compared values are not the same
   Actual   (modelProxy->columnCount()): 4
   Expected (3)                        : 3
   Loc: [/home/travis/build/keepassx/keepassx/tests/TestEntryModel.cpp(285)]

Username = 2,
Url = 3
Url = 3,
LastModified = 4
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on ending LastModified with a trailing comma so that additional columns need not modify the previous last column as you have had to do here?

{
// Surely there's a way to ask for sort-by-object and convert to string
// later, by giving this item a non-string model. But I'm going to do
// a simpler thing for now, to avoid having to learn Qt.
Copy link
Copy Markdown

@Thynix Thynix Jan 1, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps specify the reasoning explicitly:

a simpler the for now - format the date as one that sorts
alphabetically by datetime - to avoid having to learn Qt.

@Thynix
Copy link
Copy Markdown

Thynix commented Jan 1, 2017

Other than the test failure the only suggestions I have are minor.

daniellandau pushed a commit to daniellandau/keepassx that referenced this pull request Feb 9, 2017
daniellandau pushed a commit to daniellandau/keepassx that referenced this pull request Feb 9, 2017
…rd-generator-button-padding

Use consistent button min-heights, resolves keepassx#192
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants