diff --git a/i18n/qgis_it.ts b/i18n/qgis_it.ts index 1ffdbaf6b96..9f536018306 100644 --- a/i18n/qgis_it.ts +++ b/i18n/qgis_it.ts @@ -6420,7 +6420,7 @@ Cambiare questa situazione prima, perché il plugin OSM non quale layer è la de Help Python Console - Aiuto Console Python + Aiuto Console Python Import Class diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 758cbcf031b..8411ae446c7 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -149,7 +149,7 @@ ADD_CUSTOM_COMMAND(TARGET compile_python_files WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) -FOREACH(file __init__.py utils.py console.py console_sci.py help.py) +FOREACH(file __init__.py utils.py console.py console_sci.py console_help.py) ADD_CUSTOM_COMMAND(TARGET compile_python_files POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${file} ${QGIS_PYTHON_OUTPUT_DIRECTORY} @@ -162,4 +162,4 @@ PYTHON_INSTALL(__init__.py ${QGIS_PYTHON_DIR}) PYTHON_INSTALL(utils.py ${QGIS_PYTHON_DIR}) PYTHON_INSTALL(console.py ${QGIS_PYTHON_DIR}) PYTHON_INSTALL(console_sci.py ${QGIS_PYTHON_DIR}) -PYTHON_INSTALL(help.py ${QGIS_PYTHON_DIR}) +PYTHON_INSTALL(console_help.py ${QGIS_PYTHON_DIR}) diff --git a/python/help.py b/python/console_help.py similarity index 100% rename from python/help.py rename to python/console_help.py diff --git a/python/console_sci.py b/python/console_sci.py index 24ab3f8caba..e5d95fec085 100755 --- a/python/console_sci.py +++ b/python/console_sci.py @@ -424,6 +424,18 @@ class PythonEdit(QsciScintilla, code.InteractiveInterpreter): else: QsciScintilla.keyPressEvent(self, e) + def mousePressEvent(self, e): + """ + Re-implemented to handle the mouse press event. + event: the mouse press event (QMouseEvent) + """ + if e.button() == Qt.MidButton: + self.setFocus() + self.paste() + e.accept() + else: + QsciScintilla.mousePressEvent(self, e) + def paste(self): """Reimplement QScintilla method""" stringPaste = unicode(QApplication.clipboard().text()) diff --git a/python/helpConsole/i18n/de_DE.properties b/python/helpConsole/i18n/de.properties similarity index 100% rename from python/helpConsole/i18n/de_DE.properties rename to python/helpConsole/i18n/de.properties