def add_dockwidget(self, child):
        """Add QDockWidget and toggleViewAction"""
        dockwidget, location = child.create_dockwidget()
        if CONF.get('main', 'vertical_dockwidget_titlebars'):
            dockwidget.setFeatures(dockwidget.features()|
                                   QDockWidget.DockWidgetVerticalTitleBar)
        self.addDockWidget(location, dockwidget)
        self.widgetlist.append(child)
def add_dockwidget ( self , child ) : dockwidget , location = child . create_dockwidget ( ) if CONF . get ( 'main' , 'vertical_dockwidget_titlebars' ) : dockwidget . setFeatures ( dockwidget . features ( ) | QDockWidget . DockWidgetVerticalTitleBar ) self . addDockWidget ( location , dockwidget ) self . widgetlist . append ( child )
Add QDockWidget and toggleViewAction