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

ENH: Update minimum Qt4 to 4.7 #822

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

phcerdan
Copy link
Contributor

This allow to remove the definition QFILEDIALOG_OPTIONS
in ctkDirectoryButton and ctkPathLineEdit, used to conserve
backwards compatibility.

@jcfr
Copy link
Member

jcfr commented Aug 28, 2018

@jcfr
Copy link
Member

jcfr commented Aug 28, 2018

Nitpick: Two separate PR would be best. One updating minimum required version, and one updating the filedialog

@phcerdan phcerdan force-pushed the update_qt4_required_version branch 2 times, most recently from d4462d4 to 2c94808 Compare August 28, 2018 15:45
@jcfr jcfr merged commit ca995cb into commontk:master Aug 28, 2018
@finetjul
Copy link
Member

What is the benefit to get rid of the Qt 4.6 support ?

@jcfr
Copy link
Member

jcfr commented Aug 29, 2018

This allows to easily move forward with #823 without having to add yet an other option.

@finetjul
Copy link
Member

That does not seem like a strong motivation :-/ I wonder if some preprocessing macro (e.g. #if QT_VERSION < QT_VERSION_CHECK(...) ) wouldn't have worked around your issue.

There are other places in code that support code < 4.7 (search 0x040700 or 0x040600 in code) you may also want to get rid of it.

@jcfr
Copy link
Member

jcfr commented Aug 29, 2018

Thanks for the feedback 👍

What is the benefit to get rid of the Qt 4.6 support ?

Simplify and reduce cost associated with maintenance. Qt 4.6 was first release almost 10 years ago ...

I wonder if some preprocessing macro (e.g. #if QT_VERSION < QT_VERSION_CHECK(...) ) wouldn't have worked around your issue.

That is also an option. It is is not too late to revert the change and continue support Qt 4.6.

Are you suggesting we continue support it ?

If we do so, I suggest we create a docker image with Qt 4.6 (similar to the one we have for Qt 4.8).

There are other places in code that support code < 4.7 (search 0x040700 or 0x040600 in code) you may also want to get rid of it.

Thanks for pointing this out.

@finetjul
Copy link
Member

finetjul commented Aug 29, 2018

I'm suggesting to continue support Qt 4.6 if there is no strong reason to do so (-> the cost to support would be too "high"). In this issue, it did not seem that high too me (that was a first impression, without really looking at the issue).

Alternatively, the class (and the ones depending on it) could also be removed from the CTK compilation. That way Qt 4.6 is still supported (minus some widgets like this one).

@jcfr
Copy link
Member

jcfr commented Aug 29, 2018

The issue is that we don't have a build of Qt 4.6 to test any of our changes.

Would it work if we revert the commit updating the minimum required version and do our best effort to not break the code but do not test it ?

@finetjul
Copy link
Member

I guess it is fine :-)
I think we can't require contributors to test CTK with every Qt version before pushing their code

Thanks for the revert !

@jcfr jcfr mentioned this pull request Feb 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants