oKcerG / SortFilterProxyModel

A nicely exposed QSortFilterProxyModel for QML
MIT License
298 stars 101 forks source link

Port to Qt 6 #96

Open mitchcurtis opened 2 years ago

mitchcurtis commented 2 years ago

The PatternSyntax enum had to be removed as QRegularExpression only supports Perl-compatible regular expressions.

As QVariant's comparison operators were removed, a simplified comparison is now done as a starting point, but should probably be extended to support more types.

Fixes #84 Fixes #86

oKcerG commented 2 years ago

About the QVariant compare, does it work for bools ? Could you add QDate/QTime/QDateTime support ?

mitchcurtis commented 2 years ago

About the QVariant compare, does it work for bools ? Could you add QDate/QTime/QDateTime support ?

Not currently, but I can make it. Not sure what it should do though... so I just made false < true.

olafmandel commented 1 year ago

Have an additional commit in MenloSystems:qt6 that allows compiling against Qt5 and Qt6 from the same codebase.

olafmandel commented 1 year ago

About the QVariant compare, does it work for bools ? Could you add QDate/QTime/QDateTime support ?

Which implementation is preferable: qqsfpm::compareVariants() from utils/utils.* or qqsfpm::lessThan() from #81 ?