From 4ca9797627805890d9d1d8a4a6e43465826c9df5 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 5 Apr 2016 15:23:44 +0800 Subject: [PATCH] pyqtgraph dock patch is not needed anymore --- ...graph-do-not-close-nonclosable-docks.patch | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 misc/pyqtgraph-do-not-close-nonclosable-docks.patch diff --git a/misc/pyqtgraph-do-not-close-nonclosable-docks.patch b/misc/pyqtgraph-do-not-close-nonclosable-docks.patch deleted file mode 100644 index 307b664bc..000000000 --- a/misc/pyqtgraph-do-not-close-nonclosable-docks.patch +++ /dev/null @@ -1,28 +0,0 @@ -diff --git a/pyqtgraph/dockarea/Dock.py b/pyqtgraph/dockarea/Dock.py -index 4493d07..a05e685 100644 ---- a/pyqtgraph/dockarea/Dock.py -+++ b/pyqtgraph/dockarea/Dock.py -@@ -18,6 +18,7 @@ class Dock(QtGui.QWidget, DockDrop): - self.label = DockLabel(name, self, closable) - if closable: - self.label.sigCloseClicked.connect(self.close) -+ self.closable = closable - self.labelHidden = False - self.moveLabel = True ## If false, the dock is no longer allowed to move the label. - self.autoOrient = autoOrientation -diff --git a/pyqtgraph/dockarea/DockArea.py b/pyqtgraph/dockarea/DockArea.py -index ffe75b6..b054b24 100644 ---- a/pyqtgraph/dockarea/DockArea.py -+++ b/pyqtgraph/dockarea/DockArea.py -@@ -306,7 +306,10 @@ class DockArea(Container, QtGui.QWidget, DockDrop): - def clear(self): - docks = self.findAll()[1] - for dock in docks.values(): -- dock.close() -+ if dock.closable: -+ dock.close() -+ else: -+ self.home.moveDock(dock, "top", None) - - ## PySide bug: We need to explicitly redefine these methods - ## or else drag/drop events will not be delivered.