From 6a2bfa5c8464718ab628387e1470eebe61b1c57b Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Thu, 10 Jun 2021 03:33:04 +0800 Subject: [PATCH] fix PyQt6 long spelling for enums --- pyqtgraph/exporters/Exporter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyqtgraph/exporters/Exporter.py b/pyqtgraph/exporters/Exporter.py index b18c1cf8..0634c049 100644 --- a/pyqtgraph/exporters/Exporter.py +++ b/pyqtgraph/exporters/Exporter.py @@ -128,8 +128,8 @@ class Exporter(object): while len(childs) > 0: ch = childs.pop(0) tree = self.getPaintItems(ch) - if (ch.flags() & ch.ItemStacksBehindParent) or \ - (ch.zValue() < 0 and (ch.flags() & ch.ItemNegativeZStacksBehindParent)): + if (ch.flags() & ch.GraphicsItemFlag.ItemStacksBehindParent) or \ + (ch.zValue() < 0 and (ch.flags() & ch.GraphicsItemFlag.ItemNegativeZStacksBehindParent)): preItems.extend(tree) else: postItems.extend(tree)