QRegExp is deprecated in qt6

Enrico Forestieri forenr at lyx.org
Mon Mar 6 18:36:47 UTC 2023


On Sun, Mar 05, 2023 at 10:03:15PM +0100, Jean-Marc Lasgouttes wrote:
> 
>Le 03/03/2023 à 19:56, Enrico Forestieri a écrit :
>>>Any reason for not doing it?
>>
>>Go for it.
>
>I have a doubt about this one. Are you sure that we do not care about fw?
>
>#if QT_VERSION < 0x060000
>	const int fw = style()->pixelMetric(QStyle::PM_MenuPanelWidth, 0, this);
>	layout_->setMargin(fw);
>#else
>	layout_->setContentsMargins(0, 0, 0, 0);
>#endif

I am not sure either. It might have been a thinko or done on purpose. 
Unfortunately now I don't remember anymore.

-- 
Enrico


More information about the lyx-devel mailing list