View Single Post
Old 01-03-2022, 07:59 PM   #36
jhowell
Grand Sorcerer
jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.jhowell ought to be getting tired of karma fortunes by now.
 
jhowell's Avatar
 
Posts: 7,118
Karma: 92500001
Join Date: Nov 2011
Location: Charlottesville, VA
Device: Kindles
Quote:
Originally Posted by kovidgoyal View Post
@jackie_w You need to use fully qualified names for enums in PyQt6, as thiago pointed out. I have added compatibility layers for the most common enums in calibre so they can continue to be used as before, but not for all of them.
One I use that no longer works in the beta is QTextEdit.NoWrap.

Should I change this to QTextEdit.LineWrapMode.NoWrap or will you add that to the compatibility layer?

If I change it to the fully qualified enum will it be backward compatible with older versions of calibre?

Last edited by jhowell; 01-03-2022 at 08:18 PM.
jhowell is offline   Reply With Quote