Replaced the obsoleted method setMargin() with setContentsMargins(). 5_3_x

Fri, 26 Jul 2013 18:52:45 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 26 Jul 2013 18:52:45 +0200
branch
5_3_x
changeset 2825
323d417d256b
parent 2823
5a9325e00b48
child 2828
cda4d060878d

Replaced the obsoleted method setMargin() with setContentsMargins().

Debugger/DebugViewer.py file | annotate | diff | comparison | revisions
E5Gui/E5SideBar.py file | annotate | diff | comparison | revisions
Helpviewer/HelpTabBar.py file | annotate | diff | comparison | revisions
Helpviewer/HelpTabWidget.py file | annotate | diff | comparison | revisions
Helpviewer/HelpWindow.py file | annotate | diff | comparison | revisions
PluginManager/PluginInstallDialog.py file | annotate | diff | comparison | revisions
PluginManager/PluginRepositoryDialog.py file | annotate | diff | comparison | revisions
PluginManager/PluginUninstallDialog.py file | annotate | diff | comparison | revisions
Plugins/ViewManagerPlugins/Tabview/Tabview.py file | annotate | diff | comparison | revisions
Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardCharactersDialog.py file | annotate | diff | comparison | revisions
Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py file | annotate | diff | comparison | revisions
Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardCharactersDialog.py file | annotate | diff | comparison | revisions
Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py file | annotate | diff | comparison | revisions
Preferences/ConfigurationDialog.py file | annotate | diff | comparison | revisions
SqlBrowser/SqlConnectionWidget.py file | annotate | diff | comparison | revisions
Templates/TemplateMultipleVariablesDialog.py file | annotate | diff | comparison | revisions
Tools/TRPreviewer.py file | annotate | diff | comparison | revisions
Tools/UIPreviewer.py file | annotate | diff | comparison | revisions
--- a/Debugger/DebugViewer.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Debugger/DebugViewer.py	Fri Jul 26 18:52:45 2013 +0200
@@ -77,7 +77,7 @@
         self.setWindowIcon(UI.PixmapCache.getIcon("eric.png"))
         
         self.__mainLayout = QVBoxLayout()
-        self.__mainLayout.setMargin(0)
+        self.__mainLayout.setContentsMargins(0, 0, 0, 0)
         self.setLayout(self.__mainLayout)
         
         self.__tabWidget = E5TabWidget()
@@ -104,7 +104,7 @@
         # add the global variables viewer
         self.glvWidget = QWidget()
         self.glvWidgetVLayout = QVBoxLayout(self.glvWidget)
-        self.glvWidgetVLayout.setMargin(0)
+        self.glvWidgetVLayout.setContentsMargins(0, 0, 0, 0)
         self.glvWidgetVLayout.setSpacing(3)
         self.glvWidget.setLayout(self.glvWidgetVLayout)
         
@@ -112,7 +112,7 @@
         self.glvWidgetVLayout.addWidget(self.globalsViewer)
         
         self.glvWidgetHLayout = QHBoxLayout()
-        self.glvWidgetHLayout.setMargin(3)
+        self.glvWidgetHLayout.setContentsMargins(3, 3, 3, 3)
         
         self.globalsFilterEdit = QLineEdit(self.glvWidget)
         self.globalsFilterEdit.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
@@ -139,12 +139,12 @@
         # add the local variables viewer
         self.lvWidget = QWidget()
         self.lvWidgetVLayout = QVBoxLayout(self.lvWidget)
-        self.lvWidgetVLayout.setMargin(0)
+        self.lvWidgetVLayout.setContentsMargins(0, 0, 0, 0)
         self.lvWidgetVLayout.setSpacing(3)
         self.lvWidget.setLayout(self.lvWidgetVLayout)
         
         self.lvWidgetHLayout1 = QHBoxLayout()
-        self.lvWidgetHLayout1.setMargin(3)
+        self.lvWidgetHLayout1.setContentsMargins(3, 3, 3, 3)
         
         self.stackComboBox = QComboBox(self.lvWidget)
         self.stackComboBox.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
@@ -159,7 +159,7 @@
         self.lvWidgetVLayout.addWidget(self.localsViewer)
         
         self.lvWidgetHLayout2 = QHBoxLayout()
-        self.lvWidgetHLayout2.setMargin(3)
+        self.lvWidgetHLayout2.setContentsMargins(3, 3, 3, 3)
         
         self.localsFilterEdit = QLineEdit(self.lvWidget)
         self.localsFilterEdit.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
--- a/E5Gui/E5SideBar.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/E5Gui/E5SideBar.py	Fri Jul 26 18:52:45 2013 +0200
@@ -51,9 +51,9 @@
         self.__autoHideButton.setToolTip(
             self.trUtf8("Deselect to activate automatic collapsing"))
         self.barLayout = QBoxLayout(QBoxLayout.LeftToRight)
-        self.barLayout.setMargin(0)
+        self.barLayout.setContentsMargins(0, 0, 0, 0)
         self.layout = QBoxLayout(QBoxLayout.TopToBottom)
-        self.layout.setMargin(0)
+        self.layout.setContentsMargins(0, 0, 0, 0)
         self.layout.setSpacing(0)
         self.barLayout.addWidget(self.__autoHideButton)
         self.barLayout.addWidget(self.__tabBar)
--- a/Helpviewer/HelpTabBar.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Helpviewer/HelpTabBar.py	Fri Jul 26 18:52:45 2013 +0200
@@ -64,7 +64,7 @@
         
         self.__previewPopup.setView(l)
         self.__previewPopup.layout().setAlignment(Qt.AlignTop)
-        self.__previewPopup.layout().setMargin(0)
+        self.__previewPopup.layout().setContentsMargins(0, 0, 0, 0)
         
         tr = self.tabRect(self.__currentTabPreviewIndex)
         pos = QPoint(tr.x(), tr.y() + tr.height())
--- a/Helpviewer/HelpTabWidget.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Helpviewer/HelpTabWidget.py	Fri Jul 26 18:52:45 2013 +0200
@@ -81,7 +81,7 @@
         
         self.__rightCornerWidget = QWidget(self)
         self.__rightCornerWidgetLayout = QHBoxLayout(self.__rightCornerWidget)
-        self.__rightCornerWidgetLayout.setMargin(0)
+        self.__rightCornerWidgetLayout.setContentsMargins(0, 0, 0, 0)
         self.__rightCornerWidgetLayout.setSpacing(0)
         
         self.__navigationMenu = QMenu(self)
--- a/Helpviewer/HelpWindow.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Helpviewer/HelpWindow.py	Fri Jul 26 18:52:45 2013 +0200
@@ -2465,7 +2465,7 @@
         if self.__indexingProgress is None:
             self.__indexingProgress = QWidget()
             layout = QHBoxLayout(self.__indexingProgress)
-            layout.setMargin(0)
+            layout.setContentsMargins(0, 0, 0, 0)
             sizePolicy = QSizePolicy(QSizePolicy.Preferred, QSizePolicy.Maximum)
             
             label = QLabel(self.trUtf8("Updating search index"))
--- a/PluginManager/PluginInstallDialog.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/PluginManager/PluginInstallDialog.py	Fri Jul 26 18:52:45 2013 +0200
@@ -525,7 +525,7 @@
         self.setSizeGripEnabled(True)
         
         self.__layout = QVBoxLayout(self)
-        self.__layout.setMargin(0)
+        self.__layout.setContentsMargins(0, 0, 0, 0)
         self.setLayout(self.__layout)
         
         self.cw = PluginInstallWidget(pluginManager, pluginFileNames, self)
--- a/PluginManager/PluginRepositoryDialog.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/PluginManager/PluginRepositoryDialog.py	Fri Jul 26 18:52:45 2013 +0200
@@ -556,7 +556,7 @@
         self.setSizeGripEnabled(True)
         
         self.__layout = QVBoxLayout(self)
-        self.__layout.setMargin(0)
+        self.__layout.setContentsMargins(0, 0, 0, 0)
         self.setLayout(self.__layout)
         
         self.cw = PluginRepositoryWidget(self)
--- a/PluginManager/PluginUninstallDialog.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/PluginManager/PluginUninstallDialog.py	Fri Jul 26 18:52:45 2013 +0200
@@ -185,7 +185,7 @@
         self.setSizeGripEnabled(True)
         
         self.__layout = QVBoxLayout(self)
-        self.__layout.setMargin(0)
+        self.__layout.setContentsMargins(0, 0, 0, 0)
         self.setLayout(self.__layout)
         
         self.cw = PluginUninstallWidget(pluginManager, self)
--- a/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Plugins/ViewManagerPlugins/Tabview/Tabview.py	Fri Jul 26 18:52:45 2013 +0200
@@ -176,7 +176,7 @@
         
         self.rightCornerWidget = QWidget(self)
         self.rightCornerWidgetLayout = QHBoxLayout(self.rightCornerWidget)
-        self.rightCornerWidgetLayout.setMargin(0)
+        self.rightCornerWidgetLayout.setContentsMargins(0, 0, 0, 0)
         self.rightCornerWidgetLayout.setSpacing(0)
         
         self.__navigationMenu = QMenu(self)
--- a/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardCharactersDialog.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardCharactersDialog.py	Fri Jul 26 18:52:45 2013 +0200
@@ -59,7 +59,7 @@
         self.singlesBoxLayout = QVBoxLayout(self.singlesBox)
         self.singlesBoxLayout.setObjectName("singlesBoxLayout")
         self.singlesBoxLayout.setSpacing(6)
-        self.singlesBoxLayout.setMargin(6)
+        self.singlesBoxLayout.setContentsMargins(6, 6, 6, 6)
         self.singlesBox.setLayout(self.singlesBoxLayout)
         self.singlesView = QScrollArea(self.singlesBox)
         self.singlesView.setObjectName("singlesView")
@@ -69,14 +69,14 @@
         self.singlesView.setWidget(self.singlesItemsBox)
         self.singlesItemsBox.setObjectName("singlesItemsBox")
         self.singlesItemsBoxLayout = QVBoxLayout(self.singlesItemsBox)
-        self.singlesItemsBoxLayout.setMargin(6)
+        self.singlesItemsBoxLayout.setContentsMargins(6, 6, 6, 6)
         self.singlesItemsBoxLayout.setSpacing(6)
         self.singlesItemsBox.setLayout(self.singlesItemsBoxLayout)
         self.singlesEntries = []
         self.__addSinglesLine()
         
         hlayout0 = QHBoxLayout()
-        hlayout0.setMargin(0)
+        hlayout0.setContentsMargins(0, 0, 0, 0)
         hlayout0.setSpacing(6)
         hlayout0.setObjectName("hlayout0")
         self.moreSinglesButton = QPushButton(self.trUtf8("Additional Entries"),
@@ -92,7 +92,7 @@
         self.rangesBoxLayout = QVBoxLayout(self.rangesBox)
         self.rangesBoxLayout.setObjectName("rangesBoxLayout")
         self.rangesBoxLayout.setSpacing(6)
-        self.rangesBoxLayout.setMargin(6)
+        self.rangesBoxLayout.setContentsMargins(6, 6, 6, 6)
         self.rangesBox.setLayout(self.rangesBoxLayout)
         self.rangesView = QScrollArea(self.rangesBox)
         self.rangesView.setObjectName("rangesView")
@@ -102,14 +102,14 @@
         self.rangesView.setWidget(self.rangesItemsBox)
         self.rangesItemsBox.setObjectName("rangesItemsBox")
         self.rangesItemsBoxLayout = QVBoxLayout(self.rangesItemsBox)
-        self.rangesItemsBoxLayout.setMargin(6)
+        self.rangesItemsBoxLayout.setContentsMargins(6, 6, 6, 6)
         self.rangesItemsBoxLayout.setSpacing(6)
         self.rangesItemsBox.setLayout(self.rangesItemsBoxLayout)
         self.rangesEntries = []
         self.__addRangesLine()
         
         hlayout1 = QHBoxLayout()
-        hlayout1.setMargin(0)
+        hlayout1.setContentsMargins(0, 0, 0, 0)
         hlayout1.setSpacing(6)
         hlayout1.setObjectName("hlayout1")
         self.moreRangesButton = QPushButton(self.trUtf8("Additional Entries"),
@@ -127,7 +127,7 @@
         """
         hbox = QWidget(self.singlesItemsBox)
         hboxLayout = QHBoxLayout(hbox)
-        hboxLayout.setMargin(0)
+        hboxLayout.setContentsMargins(0, 0, 0, 0)
         hboxLayout.setSpacing(6)
         hbox.setLayout(hboxLayout)
         cb1 = QComboBox(hbox)
@@ -163,7 +163,7 @@
         """
         hbox = QWidget(self.rangesItemsBox)
         hboxLayout = QHBoxLayout(hbox)
-        hboxLayout.setMargin(0)
+        hboxLayout.setContentsMargins(0, 0, 0, 0)
         hboxLayout.setSpacing(6)
         hbox.setLayout(hboxLayout)
         cb1 = QComboBox(hbox)
--- a/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Plugins/WizardPlugins/PyRegExpWizard/PyRegExpWizardDialog.py	Fri Jul 26 18:52:45 2013 +0200
@@ -650,7 +650,7 @@
         self.setSizeGripEnabled(True)
         
         self.__layout = QVBoxLayout(self)
-        self.__layout.setMargin(0)
+        self.__layout.setContentsMargins(0, 0, 0, 0)
         self.setLayout(self.__layout)
         
         self.cw = PyRegExpWizardWidget(self, fromEric)
--- a/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardCharactersDialog.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardCharactersDialog.py	Fri Jul 26 18:52:45 2013 +0200
@@ -85,7 +85,7 @@
         self.singlesBoxLayout = QVBoxLayout(self.singlesBox)
         self.singlesBoxLayout.setObjectName("singlesBoxLayout")
         self.singlesBoxLayout.setSpacing(6)
-        self.singlesBoxLayout.setMargin(6)
+        self.singlesBoxLayout.setContentsMargins(6, 6, 6, 6)
         self.singlesBox.setLayout(self.singlesBoxLayout)
         self.singlesView = QScrollArea(self.singlesBox)
         self.singlesView.setObjectName("singlesView")
@@ -96,14 +96,14 @@
         self.singlesItemsBox.setObjectName("singlesItemsBox")
         self.singlesItemsBox.setMinimumWidth(1000)
         self.singlesItemsBoxLayout = QVBoxLayout(self.singlesItemsBox)
-        self.singlesItemsBoxLayout.setMargin(6)
+        self.singlesItemsBoxLayout.setContentsMargins(6, 6, 6, 6)
         self.singlesItemsBoxLayout.setSpacing(6)
         self.singlesItemsBox.setLayout(self.singlesItemsBoxLayout)
         self.singlesEntries = []
         self.__addSinglesLine()
         
         hlayout0 = QHBoxLayout()
-        hlayout0.setMargin(0)
+        hlayout0.setContentsMargins(0, 0, 0, 0)
         hlayout0.setSpacing(6)
         hlayout0.setObjectName("hlayout0")
         self.moreSinglesButton = QPushButton(self.trUtf8("Additional Entries"),
@@ -119,7 +119,7 @@
         self.rangesBoxLayout = QVBoxLayout(self.rangesBox)
         self.rangesBoxLayout.setObjectName("rangesBoxLayout")
         self.rangesBoxLayout.setSpacing(6)
-        self.rangesBoxLayout.setMargin(6)
+        self.rangesBoxLayout.setContentsMargins(6, 6, 6, 6)
         self.rangesBox.setLayout(self.rangesBoxLayout)
         self.rangesView = QScrollArea(self.rangesBox)
         self.rangesView.setObjectName("rangesView")
@@ -130,14 +130,14 @@
         self.rangesItemsBox.setObjectName("rangesItemsBox")
         self.rangesItemsBox.setMinimumWidth(1000)
         self.rangesItemsBoxLayout = QVBoxLayout(self.rangesItemsBox)
-        self.rangesItemsBoxLayout.setMargin(6)
+        self.rangesItemsBoxLayout.setContentsMargins(6, 6, 6, 6)
         self.rangesItemsBoxLayout.setSpacing(6)
         self.rangesItemsBox.setLayout(self.rangesItemsBoxLayout)
         self.rangesEntries = []
         self.__addRangesLine()
         
         hlayout1 = QHBoxLayout()
-        hlayout1.setMargin(0)
+        hlayout1.setContentsMargins(0, 0, 0, 0)
         hlayout1.setSpacing(6)
         hlayout1.setObjectName("hlayout1")
         self.moreRangesButton = QPushButton(self.trUtf8("Additional Entries"),
@@ -401,7 +401,7 @@
         """
         hbox = QWidget(self.singlesItemsBox)
         hboxLayout = QHBoxLayout(hbox)
-        hboxLayout.setMargin(0)
+        hboxLayout.setContentsMargins(0, 0, 0, 0)
         hboxLayout.setSpacing(6)
         hbox.setLayout(hboxLayout)
         cb1 = QComboBox(hbox)
@@ -445,7 +445,7 @@
         """
         hbox = QWidget(self.rangesItemsBox)
         hboxLayout = QHBoxLayout(hbox)
-        hboxLayout.setMargin(0)
+        hboxLayout.setContentsMargins(0, 0, 0, 0)
         hboxLayout.setSpacing(6)
         hbox.setLayout(hboxLayout)
         cb1 = QComboBox(hbox)
--- a/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Plugins/WizardPlugins/QRegExpWizard/QRegExpWizardDialog.py	Fri Jul 26 18:52:45 2013 +0200
@@ -628,7 +628,7 @@
         self.setSizeGripEnabled(True)
         
         self.__layout = QVBoxLayout(self)
-        self.__layout.setMargin(0)
+        self.__layout.setContentsMargins(0, 0, 0, 0)
         self.setLayout(self.__layout)
         
         self.cw = QRegExpWizardWidget(self, fromEric)
--- a/Preferences/ConfigurationDialog.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Preferences/ConfigurationDialog.py	Fri Jul 26 18:52:45 2013 +0200
@@ -397,7 +397,7 @@
         self.resize(900, 650)
         self.verticalLayout_2 = QVBoxLayout(self)
         self.verticalLayout_2.setSpacing(6)
-        self.verticalLayout_2.setMargin(6)
+        self.verticalLayout_2.setContentsMargins(6, 6, 6, 6)
         self.verticalLayout_2.setObjectName("verticalLayout_2")
         
         self.configSplitter = QSplitter(self)
@@ -406,7 +406,7 @@
         
         self.configListWidget = QWidget(self.configSplitter)
         self.leftVBoxLayout = QVBoxLayout(self.configListWidget)
-        self.leftVBoxLayout.setMargin(0)
+        self.leftVBoxLayout.setContentsMargins(0, 0, 0, 0)
         self.leftVBoxLayout.setSpacing(0)
         self.leftVBoxLayout.setObjectName("leftVBoxLayout")
         self.configListFilter = E5ClearableLineEdit(self,
@@ -436,7 +436,7 @@
         self.emptyPage.setObjectName("emptyPage")
         self.vboxlayout = QVBoxLayout(self.emptyPage)
         self.vboxlayout.setSpacing(6)
-        self.vboxlayout.setMargin(6)
+        self.vboxlayout.setContentsMargins(6, 6, 6, 6)
         self.vboxlayout.setObjectName("vboxlayout")
         spacerItem = QSpacerItem(20, 20, QSizePolicy.Minimum, QSizePolicy.Expanding)
         self.vboxlayout.addItem(spacerItem)
@@ -750,7 +750,7 @@
             self.setObjectName(name)
         self.setModal(modal)
         self.layout = QVBoxLayout(self)
-        self.layout.setMargin(0)
+        self.layout.setContentsMargins(0, 0, 0, 0)
         self.layout.setSpacing(0)
         
         self.cw = ConfigurationWidget(self, fromEric=fromEric,
--- a/SqlBrowser/SqlConnectionWidget.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/SqlBrowser/SqlConnectionWidget.py	Fri Jul 26 18:52:45 2013 +0200
@@ -34,7 +34,7 @@
         super().__init__(parent)
         
         layout = QVBoxLayout(self)
-        layout.setMargin(0)
+        layout.setContentsMargins(0, 0, 0, 0)
         
         self.__connectionTree = QTreeWidget(self)
         self.__connectionTree.setObjectName("connectionTree")
--- a/Templates/TemplateMultipleVariablesDialog.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Templates/TemplateMultipleVariablesDialog.py	Fri Jul 26 18:52:45 2013 +0200
@@ -26,7 +26,7 @@
         super().__init__(parent)
 
         self.TemplateMultipleVariablesDialogLayout = QVBoxLayout(self)
-        self.TemplateMultipleVariablesDialogLayout.setMargin(6)
+        self.TemplateMultipleVariablesDialogLayout.setContentsMargins(6, 6, 6, 6)
         self.TemplateMultipleVariablesDialogLayout.setSpacing(6)
         self.TemplateMultipleVariablesDialogLayout.setObjectName(
             "TemplateMultipleVariablesDialogLayout")
@@ -43,7 +43,7 @@
         self.top = QWidget(self)
         self.variablesView.setWidget(self.top)
         self.grid = QGridLayout(self.top)
-        self.grid.setMargin(0)
+        self.grid.setContentsMargins(0, 0, 0, 0)
         self.grid.setSpacing(6)
         self.top.setLayout(self.grid)
 
@@ -73,7 +73,7 @@
 
         # generate the buttons
         layout1 = QHBoxLayout()
-        layout1.setMargin(0)
+        layout1.setContentsMargins(0, 0, 0, 0)
         layout1.setSpacing(6)
         layout1.setObjectName("layout1")
         
--- a/Tools/TRPreviewer.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Tools/TRPreviewer.py	Fri Jul 26 18:52:45 2013 +0200
@@ -63,12 +63,12 @@
         self.cw.setObjectName("qt_central_widget")
         
         self.TRPreviewerLayout = QVBoxLayout(self.cw)
-        self.TRPreviewerLayout.setMargin(6)
+        self.TRPreviewerLayout.setContentsMargins(6, 6, 6, 6)
         self.TRPreviewerLayout.setSpacing(6)
         self.TRPreviewerLayout.setObjectName("TRPreviewerLayout")
 
         self.languageLayout = QHBoxLayout()
-        self.languageLayout.setMargin(0)
+        self.languageLayout.setContentsMargins(0, 0, 0, 0)
         self.languageLayout.setSpacing(6)
         self.languageLayout.setObjectName("languageLayout")
 
--- a/Tools/UIPreviewer.py	Thu Jul 25 19:08:05 2013 +0200
+++ b/Tools/UIPreviewer.py	Fri Jul 26 18:52:45 2013 +0200
@@ -56,12 +56,12 @@
         self.cw.setObjectName("centralWidget")
         
         self.UIPreviewerLayout = QVBoxLayout(self.cw)
-        self.UIPreviewerLayout.setMargin(6)
+        self.UIPreviewerLayout.setContentsMargins(6, 6, 6, 6)
         self.UIPreviewerLayout.setSpacing(6)
         self.UIPreviewerLayout.setObjectName("UIPreviewerLayout")
 
         self.styleLayout = QHBoxLayout()
-        self.styleLayout.setMargin(0)
+        self.styleLayout.setContentsMargins(0, 0, 0, 0)
         self.styleLayout.setSpacing(6)
         self.styleLayout.setObjectName("styleLayout")
 

eric ide

mercurial