[LyX/master] Allow compiling with Qt6

Kornel Benko kornel at lyx.org
Tue Mar 16 14:53:53 UTC 2021


Am Tue, 16 Mar 2021 15:43:59 +0100
schrieb Enrico Forestieri <forenr at lyx.org>:

> On Tue, Mar 16, 2021 at 11:08:03AM +0100, Kornel Benko wrote:
> > 
> > Why not use QRegularExpression as in src/lyxfind.cpp?  
> 
> What do you mean? Unconditionally replacing QRegExp? I don't think it
> can be done without dropping support for Qt4.
> 

I meant instead of Compatibility directly use QRegExp or QRegularExpression

	if (QT_VERSION >= 0x050000) {
		// define some macros for QRegularExpression
	}
	else {
		// define some macros for QRegExp
	}

But that is maybe too much work.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20210316/a63789b6/attachment.asc>


More information about the lyx-devel mailing list