Merge pull request #3058 from VladimirSinenko/master

Fixed sort order for datetime columns with empty values (closes #2988)
This commit is contained in:
sledgehammer999
2017-02-06 17:49:26 +02:00
2 changed files with 14 additions and 18 deletions

View File

@@ -52,6 +52,7 @@ public:
private:
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
bool lowerPositionThan(const QModelIndex &left, const QModelIndex &right) const;
bool dateLessThan(const int dateColumn, const QModelIndex &left, const QModelIndex &right) const;
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
bool matchFilter(int sourceRow, const QModelIndex &sourceParent) const;