Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEP: Remove References to Deprecated QVariant #1141

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

zdomke
Copy link
Contributor

@zdomke zdomke commented Dec 17, 2024

In AbstractItemModel.data and AbstractItemModel.setData, returns None instead of an empty QVariant object. This is done because QVariant is not really needed in PyQt like it is in Qt.

While this documentation suggests returning an invalid QVariant, it doesn't specify what an invalid QVariant should be
This documentation suggests that None can be used as an invalid QVariant.

@zdomke zdomke force-pushed the dev_remove_qvariant branch from d6a5ad7 to 84aab75 Compare December 19, 2024 18:31
@zdomke
Copy link
Contributor Author

zdomke commented Dec 19, 2024

Looks like most, if not all, references to QVariant were removed in #1139

But I still needed to keep a change to archiver_time_plot_editor.py where an empty string was returned when it should be None.

@jbellister-slac jbellister-slac merged commit 3fde371 into slaclab:master Dec 19, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants