QRegExp is deprecated in qt6
Enrico Forestieri
forenr at lyx.org
Fri Mar 3 18:56:42 UTC 2023
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
More information about the lyx-devel
mailing list