Closed z3ntu closed 4 years ago
@zsombi That's because the CI doesn't compile it against Qt 5.12...
You need to keep the code buildable against 5.9 as well. Please update your changes so it can build against both.
I don't think this will be possible except either duplicating the file and choosing the one for the build Qt version in the build system or using tons of #ifdef
macros
I don't think this will be possible except either duplicating the file and choosing the one for the build Qt version in the build system or using tons of
#ifdef
macros
You can move the differences in separate files and pick the proper ones from the .pro file. Lot cleaner than having a bunch of ifdefs...
Or another option could be to simply define the type in the header file with a single #if/#else block as a macro, then use the macro in the code, as this seems to be only changing a single type from a pointer to a templated reference type for the same pointer type.
@patrickathompson For Qt 5.13 having this additional commit should work: https://github.com/z3ntu/ubuntu-ui-toolkit/commit/ab542b01f461951dd732d8eb1bdb4bf5df4eea6e
@z3ntu can confirm that this commit makes it compile with Qt5.13
Made this: https://github.com/ubports/ubuntu-ui-toolkit/pull/61
@zsombi: If you have time, please review there also :)
Closing in favor of #61 , many thanks to @mariogrip for pushing this forward!
@zsombi That's because the CI doesn't compile it against Qt 5.12...