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

Add Qt5 support #417

Merged
merged 3 commits into from
Apr 10, 2018
Merged

Add Qt5 support #417

merged 3 commits into from
Apr 10, 2018

Conversation

rtownson
Copy link
Collaborator

This replaces PR #263.

Adds compatibility with Qt5 to the Qt GUIs. Adds compile-time checks for the Qt version so that the correct functions or libraries are used; i.e. the GUIs are still compatible with Qt4.

Also removes some old tooltip code in egs_inprz that was not used any more, but that caused a visual bug on Windows with Qt5 (the word "toolTipTip" appeared in the centre of the GUI).

Tested on qt-4.8.6 and qt-5.10.1 on linux and qt-5.10.1 on Windows.

mainegra
mainegra previously approved these changes Mar 14, 2018
@crcrewso
Copy link
Contributor

One testing question. Have we tested if the installer breaks if it's rerun overtop of an existing installation after switching QT versions? I only ask because 2018 seems to be the year of QT4's depreciation.

@rtownson
Copy link
Collaborator Author

@crcrewso no that shouldn't be a problem, I switched back and forth a number of times using an existing installation while testing the GUIs.

crcrewso and others added 3 commits April 10, 2018 15:01
Update egs_view, egs_configure, egs_gui, and egs_inprz to compile and
run according to the official Qt4 to Qt5 migration documentation. This
update has been tested under the Ubuntu distributed Qt libraries in
14.04 and 16.04. It has not been tested against static libraries.
Check the Qt version at compile time and use the corresponding functions
or libraries. Tested with qt-4.8.6 and qt-5.10.1.
Remove combobox tooltips that are no longer used in the egs_inprz gui.
These caused a visual bug on Windows systems when compiled with Qt5.
@ftessier ftessier merged commit 5b7aa15 into develop Apr 10, 2018
@ftessier ftessier deleted the add-qt5-support branch April 10, 2018 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants