Re: [Development] QVariant comparison in Qt6

2020-09-23 Thread Thiago Macieira
On Wednesday, 23 September 2020 13:24:24 PDT Milian Wolff wrote: > > QAbstractItemModelPrivate::isVariantLessThan returns false for BOTH orders: > > isVariantLessThan(1, "hello") == false > > isVariantLessThan("hello", 1) == false > > Right, sorry - I missed the part where you say "a few of the

Re: [Development] QVariant comparison in Qt6

2020-09-23 Thread Milian Wolff
On Mittwoch, 23. September 2020 21:12:52 CEST Thiago Macieira wrote: > On Wednesday, 23 September 2020 06:59:16 PDT Milian Wolff wrote: > > > 1 > > > 10 > > > 11 > > > 2 > > > 3 > > > 21 > > > > > > A few of the above are strings and the others are numbers. It should > > > always > > > lexicograph

Re: [Development] QVariant comparison in Qt6

2020-09-23 Thread Thiago Macieira
On Wednesday, 23 September 2020 06:59:16 PDT Milian Wolff wrote: > > 1 > > 10 > > 11 > > 2 > > 3 > > 21 > > > > A few of the above are strings and the others are numbers. It should > > always > > lexicographically sort or use numeric/natural sorting. > > This wouldn't be an issue if you sort by t

[Development] Qt 6 CMake public API review

2020-09-23 Thread Alexandru Croitor
Hi there, With Qt 6 coming closer, the build system team is considering cleaning up some of our new / old CMake public API. Would anyone be interested in joining a virtual meeting to discuss that? If yes, please send me a private email, so I can have an idea of the people count joining and thu

Re: [Development] QVariant comparison in Qt6

2020-09-23 Thread Milian Wolff
On Freitag, 18. September 2020 17:06:20 CEST Thiago Macieira wrote: > On Friday, 18 September 2020 01:59:50 PDT Albert Astals Cid via Development > > wrote: > > We have a few generic item models and proxy models that implement sorting, > > they did so by using operator< of QVariant. > > > > I wan