[PyKDE] A small patch for QScintilla (in ReadOnly mode)

Ulrich Berning ulrich.berning at desys.de
Fri May 16 09:30:01 BST 2003


Ulrich Berning schrieb:

> Hi all,
>
> when QScintilla is in ReadOnly mode [->setReadOnly(TRUE)] , an attempt 
> to modify the document results in the Scintilla notification 
> SCN_MODIFYATTEMPTRO.
> This notification is not handled by QScintilla and results in a 
> warning "Unknown notification: 2004".
>
> The attached patch adds this notification to the signal mapping 
> between Scintilla and Qt.
>
> Ciao,
> Ulli
>
> 
>
Sorry, I have forgotten to mention PyQt.
To attached patch makes the new signal (SCN_MODIFYATTEMPTRO) available 
for PyQt.

Ciao,
Ulli

-------------- next part --------------
diff -uNr PyQt-x11-commercial-snapshot-20030513.orig/sip/qextscintillabase.sip PyQt-x11-commercial-snapshot-20030513/sip/qextscintillabase.sip
--- PyQt-x11-commercial-snapshot-20030513.orig/sip/qextscintillabase.sip	Wed May 14 02:03:41 2003
+++ PyQt-x11-commercial-snapshot-20030513/sip/qextscintillabase.sip	Fri May 16 09:25:25 2003
@@ -731,6 +731,7 @@
 	void SCN_MACRORECORD(unsigned int,unsigned long,long);
 	void SCN_MARGINCLICK(int,int,int);
 	void SCN_MODIFIED(int,int,const char *,int,int,int,int,int);
+	void SCN_MODIFYATTEMPTRO();
 	void SCN_NEEDSHOWN(int,int);
 	void SCN_PAINTED();
 	void SCN_SAVEPOINTLEFT();


More information about the PyQt mailing list