Skip to content
Snippets Groups Projects
Commit 47104986 authored by Wout De Nolf's avatar Wout De Nolf
Browse files

fix TypError

parent f5f244b3
Branches fix_qt
No related tags found
1 merge request!132fix TypError
Pipeline #158042 passed
This commit is part of merge request !132. Comments created here will be created in the context of that merge request.
......@@ -168,7 +168,7 @@ class MapViewer(qt.QWidget):
self._mainWindow = StackViewMainWindow(parent=parent)
self.layout().addWidget(self._mainWindow)
self.layout().setContentsMargins(0, 0, 0, 0)
self.layout().setSpacing(0.0)
self.layout().setSpacing(0)
self._mainWindow.setKeepDataAspectRatio(True)
self._mainWindow.setColormap(Colormap(name="temperature"))
......@@ -184,7 +184,7 @@ class MapViewer(qt.QWidget):
self.keySelectionDocker = qt.QDockWidget(parent=self)
self.keySelectionDocker.setContentsMargins(0, 0, 0, 0)
self._keyWidget.layout().setContentsMargins(0, 0, 0, 0)
self._keyWidget.layout().setSpacing(0.0)
self._keyWidget.layout().setSpacing(0)
self.keySelectionDocker.setWidget(self._keyWidget)
# self._mainWindow.addDockWidget(qt.Qt.TopDockWidgetArea, dockWidget)
self.keySelectionDocker.setAllowedAreas(qt.Qt.TopDockWidgetArea)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment