diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-09-27 15:00:08 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-09-28 07:31:36 +0000 |
commit | 3412dc563119221bd730c1487937519df0761792 (patch) | |
tree | d738ea0a24c1013e589e69240d6fc91ae13ed999 /optional | |
parent | 3c4cafdf834c9b683501efca72dbbe1093cf6f9a (diff) |
Clean up import hierarchy
PythonExtension.QtCreator.*
-> QtCreator.*
PythonExtension.PluginInstance
-> QtCreator.PythonExtensions
Also enables imports of the form "from QtCreator import Core" it is no
longer necessary to write QtCreator.Core....
Change-Id: Ib9b433868dcc3fc7d1d534c6023bae7bf6d05fec
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Diffstat (limited to 'optional')
-rw-r--r-- | optional/projectexplorer/binding.cpp | 2 | ||||
-rw-r--r-- | optional/texteditor/binding.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/optional/projectexplorer/binding.cpp b/optional/projectexplorer/binding.cpp index 325027b..ae1bbc7 100644 --- a/optional/projectexplorer/binding.cpp +++ b/optional/projectexplorer/binding.cpp @@ -59,7 +59,7 @@ void bind() // Bind module into interpreter bool pythonError = PyErr_Occurred() != nullptr; if (pythonInitialized && !pythonError) { - PyUtil::bindSubPyObject("PythonExtension.QtCreator", "ProjectExplorer", (void *)SbkQtCreatorBindingProjectExplorerModuleObject); + PyUtil::bindSubPyObject("QtCreator", "ProjectExplorer", (void *)SbkQtCreatorBindingProjectExplorerModuleObject); } else { if (pythonError) PyErr_Print(); diff --git a/optional/texteditor/binding.cpp b/optional/texteditor/binding.cpp index d2d5b83..6b9007f 100644 --- a/optional/texteditor/binding.cpp +++ b/optional/texteditor/binding.cpp @@ -59,7 +59,7 @@ void bind() // Bind module into interpreter bool pythonError = PyErr_Occurred() != nullptr; if (pythonInitialized && !pythonError) { - PyUtil::bindSubPyObject("PythonExtension.QtCreator", "TextEditor", (void *)SbkQtCreatorBindingTextEditorModuleObject); + PyUtil::bindSubPyObject("QtCreator", "TextEditor", (void *)SbkQtCreatorBindingTextEditorModuleObject); } else { if (pythonError) PyErr_Print(); |