]> git.lyx.org Git - features.git/commit
Re-enable QWindowsMimeMetafile with Qt6
authorEnrico Forestieri <forenr@lyx.org>
Fri, 28 Apr 2023 21:34:01 +0000 (23:34 +0200)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 28 Apr 2023 21:34:01 +0000 (23:34 +0200)
commit17b24cf480ca864a746cc2cbb808209d8c976a55
tree2f1bc702006924ae27d280a2849ac50424522d77
parent4dc410902d4e24e35b3248cbc4f9dabdd6836dbe
Re-enable QWindowsMimeMetafile with Qt6

Qt 6.5.0 has dropped support for the QWindowsMime class
in favor of a new QWindowsMimeConverter class. They say:
  "If you have implementations of QWindowsMime or QMacMime in Qt 5,
   then those will almost directly translate to the new APIs but
   require less boiler-plate code to register the converters with Qt."
This may be true, but in practice they break binary compatibility with
previous versions. If you used the QWindowsMime class until Qt 6.4 by
using boiler-plate code to register the converters with Qt, you now
need to modify the sources and recompile. Fantastic!
src/frontends/qt/GuiApplication.cpp