Skip to content
This repository was archived by the owner on Feb 5, 2026. It is now read-only.

Comments

Qvariant less than#2

Merged
RaymiiOrg merged 3 commits intomasterfrom
QVariant-lessThan
Jul 17, 2023
Merged

Qvariant less than#2
RaymiiOrg merged 3 commits intomasterfrom
QVariant-lessThan

Conversation

@RaymiiOrg
Copy link
Owner

No description provided.

olafmandel and others added 3 commits October 27, 2020 16:56
Qt 5.15 deprecated the operator<(QVariant, QVariant). Do get rid of the
warning and to prepare for the eventual removal of the operator,
implement our own needs in a lessThan() function.

The function is based on the description of
QSortFilterProxyModel::lessThan().

Fixes oKcerG#77
The method `QVariant::Type QVariant::type() const` has been deprecated
since Qt 6.0. The recommended replacement is `typeId()` or `metaType()`,
but these are not available under Qt5. So choose to use `userType()`
instead, which is available under both and should cover the use cases as
well.
@RaymiiOrg RaymiiOrg merged commit 3cecb2f into master Jul 17, 2023
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