On Fri, Mar 03, 2023 at 01:49:26PM +0100, Jean-Marc Lasgouttes wrote:

Other special Qt6 code I would like to remove is:

1/ this one seems to exist in Qt5

#if QT_VERSION < 0x060000
QRect rec = QApplication::desktop()->screenGeometry();
#else
QRect rec = QGuiApplication::primaryScreen()->geometry();
#endif

2/ that one has been introduced in Qt 4.3

#if QT_VERSION < 0x060000
       layout->setMargin(0);
#else
       layout->setContentsMargins(0, 0, 0, 0);
#endif


Any reason for not doing it?

Go for it.

--
Enrico
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to