Skip to content

Commit

Permalink
Fix 6459
Browse files Browse the repository at this point in the history
- update Italian translate
- renamed help console to console_help.py
- renamed Deutsch properties file (help translation)
- added MouseEvent (midbutton) to Python Console
  • Loading branch information
slarosa committed Oct 5, 2012
1 parent 21eb6cf commit 4513ada
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion i18n/qgis_it.ts
Expand Up @@ -6420,7 +6420,7 @@ Cambiare questa situazione prima, perché il plugin OSM non quale layer è la de
</message>
<message>
<source>Help Python Console</source>
<translation type="obsolete">Aiuto Console Python</translation>
<translation>Aiuto Console Python</translation>
</message>
<message>
<source>Import Class</source>
Expand Down
4 changes: 2 additions & 2 deletions python/CMakeLists.txt
Expand Up @@ -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}
Expand All @@ -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})
File renamed without changes.
12 changes: 12 additions & 0 deletions python/console_sci.py
Expand Up @@ -424,6 +424,18 @@ def keyPressEvent(self, e):
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())
Expand Down
File renamed without changes.

0 comments on commit 4513ada

Please sign in to comment.