QScintilla/QsciScintillaCompat.py

changeset 3176
51feb6174cc2
parent 3169
7b1b754a60a6
child 3178
f25fc1364c88
child 3215
6c5877c48067
equal deleted inserted replaced
3175:1a6638ccce9d 3176:51feb6174cc2
1193 @param evt event object to handle (QEvent) 1193 @param evt event object to handle (QEvent)
1194 @return result of the event handling (boolean) 1194 @return result of the event handling (boolean)
1195 """ 1195 """
1196 return QsciScintillaBase.event(self, evt) 1196 return QsciScintillaBase.event(self, evt)
1197 1197
1198 def inputMethodEvent(self, evt): 1198 # TODO: adjust this once we have a working QScintilla version
1199 """ 1199 if "inputMethodEvent" in QsciScintillaBase.__dict__ and \
1200 Protected method to cope with a glitch in some Qscintilla versions 1200 QSCINTILLA_VERSION() < 0x020900:
1201 handling input events. 1201 def inputMethodEvent(self, evt):
1202 1202 """
1203 Note: This simply disables the Qscintilla behavior. 1203 Protected method to cope with a glitch in some Qscintilla versions
1204 1204 handling input events.
1205 @param evt reference to the input method event object 1205
1206 (QInputMethodEvent) 1206 Note: This simply disables the Qscintilla behavior.
1207 """ 1207
1208 pass 1208 @param evt reference to the input method event object
1209 1209 (QInputMethodEvent)
1210 def inputMethodQuery(self, query): 1210 """
1211 """ 1211 pass
1212 Protected method to cope with a glitch in some Qscintilla versions 1212
1213 handling input events. 1213 def inputMethodQuery(self, query):
1214 1214 """
1215 Note: This simply disables the Qscintilla behavior. 1215 Protected method to cope with a glitch in some Qscintilla versions
1216 1216 handling input events.
1217 @param query reference to the input method query object 1217
1218 (Qt.InputMethodQuery) 1218 Note: This simply disables the Qscintilla behavior.
1219 """ 1219
1220 pass 1220 @param query reference to the input method query object
1221 (Qt.InputMethodQuery)
1222 @return object containing the requested information
1223 """
1224 return None
1221 1225
1222 ########################################################################### 1226 ###########################################################################
1223 ## interface methods to the mini editor 1227 ## interface methods to the mini editor
1224 ########################################################################### 1228 ###########################################################################
1225 1229

eric ide

mercurial