Skip to content

huge fixes for Visual Studio 2015 & Qt 5.8 - #2492

Merged
cbielow merged 5 commits into
OpenMS:feature/qt5from
cbielow:feature/qt5
Mar 30, 2017
Merged

cbielow merged 5 commits into
OpenMS:feature/qt5from
cbielow:feature/qt5

Conversation

@cbielow

@cbielow cbielow commented Mar 30, 2017

Copy link
Copy Markdown
Contributor
  • introduces autoMOC & autoUIC
  • uses proper inheritance and encapsulation for ui_*.h in DIALOGS (dont expose GUI objects directly)
  • removes WebEngine dependency
  • fixes Qt5 OpenGL issues & access to widgets (active vs. currentWindow)
  • fix CXX_FLAGS forwarding

@cbielow cbielow self-assigned this Mar 30, 2017
@cbielow
cbielow merged commit 1cfe336 into OpenMS:feature/qt5 Mar 30, 2017
@hroest

hroest commented Mar 30, 2017

Copy link
Copy Markdown
Contributor

@cbielow wow this is really great work. A quick question though: are you using features from 5.8 and more generally: what should be the minimal Qt version that we still run on. I am asking because debian currently supports https://packages.debian.org/search?keywords=qt5-default

  • 5.3.2 [jessie/stretch]
  • 5.7.1 [stretch/sid]
  • 5.8.0

while ubuntu uses http://packages.ubuntu.com/search?keywords=qt5-default&searchon=names

  • 5.2.1 [14.04]
  • 5.5.1 [16.04]
  • 5.6.1 [16.10]
  • 5.7.1 [17.04 / zesty]

while Fedora seems to be pretty up to date (https://apps.fedoraproject.org/packages/qt5-qtbase ) using 5.6+ . So from an Ubuntu perspective, it would be good to support an API that does not go beyond 5.2 or 5.5 -- I think for biodocker and other container groups 16.04 is the newest image they will use so using features beyond 5.5 may cause problems down the line.

@hroest

hroest commented Mar 30, 2017

Copy link
Copy Markdown
Contributor

PS: it is of course possible to install ppa repos for individual users such as https://launchpad.net/~beineri but of course for package maintainers it will be a big pain or close to impossible to have openms depend on a not-shipped Qt version. From this point of view I think 5.6.1 may be a good compromise

@cbielow

cbielow commented Apr 3, 2017

Copy link
Copy Markdown
Contributor Author

I picked Qt 5.8 because it had pre-build binaries for Windows readily available. There should not be any issue in downgrading to anythig >= Qt 5.4. Anything prior might(!) cause trouble due to slight API changes, but we'd need to check more thoroughly.

@hroest

hroest commented Apr 4, 2017

Copy link
Copy Markdown
Contributor

great, but that means we will have to change travis to 16.04 as this will be 5.5.1

#QT5_WRAP_CPP(_mocced_test_file source/GUI/${_gui_test}.cpp OPTIONS ${BOOST_MOC_ARGS})
# define source file dependency
set_source_files_properties(source/GUI/${_gui_test}.cpp PROPERTIES OBJECT_DEPENDS ${_mocced_test_file})
#set_source_files_properties(source/GUI/${_gui_test}.cpp PROPERTIES OBJECT_DEPENDS ${_mocced_test_file})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we would have needed this for the TOPPView_test ? seems that it needs to be mocced as well?

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