--- a/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/OperaImporter.py Tue Nov 08 16:23:26 2022 +0100 +++ b/src/eric7/WebBrowser/Bookmarks/BookmarksImporters/OperaImporter.py Tue Nov 08 16:57:46 2022 +0100 @@ -62,8 +62,10 @@ """ Constructor - @param sourceId source ID (string) - @param parent reference to the parent object (QObject) + @param sourceId source ID (defaults to "") + @type str (optional) + @param parent reference to the parent object (defaults to None) + @type QObject (optional) """ super().__init__(sourceId, parent) @@ -135,3 +137,17 @@ QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) ) return importRootNode + + +def createImporter(sourceId="", parent=None): + """ + Constructor + + @param sourceId source ID (defaults to "") + @type str (optional) + @param parent reference to the parent object (defaults to None) + @type QObject (optional) + @return reference to the instantiated importer object + @rtype OperaImporter + """ + return OperaImporter(sourceId=sourceId, parent=parent)