remove qt4
ClosedPublic

Authored by sitter on Jul 23 2019, 2:43 PM.

Details

Summary

Test Plan

builds and (seems) to install relevant files. phonon-vlc still builds as well

Diff Detail

Repository
R487 Phonon
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
sitter requested review of this revision.Jul 23 2019, 2:43 PM
sitter created this revision.
sitter updated this revision to Diff 62594.Jul 26 2019, 11:47 AM

fix soname

I think we should also get rid of the QT_VERSION #ifdefs around the code...

declarative/plugin.cpp:#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
declarative/plugin.h:#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
designer/phononcollection.cpp:#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
designer/phononcollection.cpp:#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
phonon/globalstatic_p.h:#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0)) // Qt 4
phonon/globalstatic_p.h:#endif // QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
phonon/experimental/packetpool.cpp:#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
phonon/experimental/packetpool.cpp:#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
phonon/platform.cpp:#if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0) // QIcon::fromTheme was introduced in 4.6.0.
phonon/pulsesupport.cpp:#if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0)
phonon/factory.cpp:#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
phonon/objectdescriptionmodel.cpp:#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) // Qt 5
phonon/objectdescriptionmodel.cpp:#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) // Qt 5
phonon/objectdescriptionmodel.cpp:#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) // Qt 5
phonon/objectdescriptionmodel.cpp:#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) // Qt 5
CMakeLists.txt
297

This used to use qt5_phonon.pri, but now you are using qt_phonon.pri as the source file - are those files identical, or should qt5_phonon.pri be renamed to qt_phonon.pri? Or should we keep qt5_phonon.pri and just drop the qt_phonon.pri?

dvratil requested changes to this revision.Jul 26 2019, 11:52 AM
This revision now requires changes to proceed.Jul 26 2019, 11:52 AM

There's a whole bunch of follow ups I have chained up, such as using ECM to generate the pri. This is purely about getting the build switched to qt5 by default. The ifdefs are a good point though.

sitter updated this revision to Diff 62722.Jul 29 2019, 10:26 AM

also throw out QT_VERSION checks

dvratil accepted this revision.Jul 29 2019, 12:07 PM
This revision is now accepted and ready to land.Jul 29 2019, 12:07 PM
This revision was automatically updated to reflect the committed changes.