Skip to content

Commit

Permalink
pyside6 fixes from PR 3870
Browse files Browse the repository at this point in the history
  • Loading branch information
t20100 committed Jul 21, 2023
1 parent e607e57 commit 373f21f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/silx/gui/dialog/AbstractDataFileDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def saveState(self):
stream.writeInt32(self.__serialVersion)
stream.writeQVariant(self.__detailView.header().saveState())
viewMode = self.viewMode()
if qt.BINDING == 'PyQt6': # No auto conversion to int
if qt.BINDING in ('PyQt6', 'PySide6'): # No auto conversion to int
viewMode = viewMode.value
stream.writeInt32(viewMode)

Expand Down Expand Up @@ -1723,7 +1723,7 @@ def saveState(self):
stream.writeQString(u"%s" % self.directory())
stream.writeQVariant(self.__browser.saveState())
viewMode = self.viewMode()
if qt.BINDING == 'PyQt6': # No auto conversion to int
if qt.BINDING in ('PyQt6', 'PySide6'): # No auto conversion to int
viewMode = viewMode.value
stream.writeInt32(viewMode)
colormap = self.colormap()
Expand Down
2 changes: 1 addition & 1 deletion src/silx/gui/widgets/PrintPreview.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def __init__(self, parent=None, scene=None, keepratio=True):
pen.setStyle(qt.Qt.NoPen)
self.setPen(pen)
self.setBrush(color)
self.setFlag(self.ItemIsMovable, True)
self.setFlag(qt.QGraphicsItem.ItemIsMovable, True)
self.show()

def hoverEnterEvent(self, event):
Expand Down

0 comments on commit 373f21f

Please sign in to comment.