Skip to content

Commit 4513ada

Browse files
committedOct 5, 2012
Fix 6459
- update Italian translate - renamed help console to console_help.py - renamed Deutsch properties file (help translation) - added MouseEvent (midbutton) to Python Console
1 parent 21eb6cf commit 4513ada

File tree

5 files changed

+15
-3
lines changed

5 files changed

+15
-3
lines changed
 

‎i18n/qgis_it.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6420,7 +6420,7 @@ Cambiare questa situazione prima, perché il plugin OSM non quale layer è la de
64206420
</message>
64216421
<message>
64226422
<source>Help Python Console</source>
6423-
<translation type="obsolete">Aiuto Console Python</translation>
6423+
<translation>Aiuto Console Python</translation>
64246424
</message>
64256425
<message>
64266426
<source>Import Class</source>

‎python/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ ADD_CUSTOM_COMMAND(TARGET compile_python_files
149149
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
150150
)
151151

152-
FOREACH(file __init__.py utils.py console.py console_sci.py help.py)
152+
FOREACH(file __init__.py utils.py console.py console_sci.py console_help.py)
153153
ADD_CUSTOM_COMMAND(TARGET compile_python_files
154154
POST_BUILD
155155
COMMAND ${CMAKE_COMMAND} -E copy ${file} ${QGIS_PYTHON_OUTPUT_DIRECTORY}
@@ -162,4 +162,4 @@ PYTHON_INSTALL(__init__.py ${QGIS_PYTHON_DIR})
162162
PYTHON_INSTALL(utils.py ${QGIS_PYTHON_DIR})
163163
PYTHON_INSTALL(console.py ${QGIS_PYTHON_DIR})
164164
PYTHON_INSTALL(console_sci.py ${QGIS_PYTHON_DIR})
165-
PYTHON_INSTALL(help.py ${QGIS_PYTHON_DIR})
165+
PYTHON_INSTALL(console_help.py ${QGIS_PYTHON_DIR})
File renamed without changes.

‎python/console_sci.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,18 @@ def keyPressEvent(self, e):
424424
else:
425425
QsciScintilla.keyPressEvent(self, e)
426426

427+
def mousePressEvent(self, e):
428+
"""
429+
Re-implemented to handle the mouse press event.
430+
event: the mouse press event (QMouseEvent)
431+
"""
432+
if e.button() == Qt.MidButton:
433+
self.setFocus()
434+
self.paste()
435+
e.accept()
436+
else:
437+
QsciScintilla.mousePressEvent(self, e)
438+
427439
def paste(self):
428440
"""Reimplement QScintilla method"""
429441
stringPaste = unicode(QApplication.clipboard().text())

0 commit comments

Comments
 (0)
Please sign in to comment.