[Kst] kdeextragear-2/kst/kst/extensions/elog
Andrew Walker
arwalker at sumusltd.com
Fri Mar 12 20:39:22 CET 2004
CVS commit by arwalker:
Save kst configuration file
M +5 -1 elogthread.cpp 1.4
--- kdeextragear-2/kst/kst/extensions/elog/elogthread.cpp #1.3:1.4
@@ -23,4 +23,5 @@
#include <qbuffer.h>
#include <qcstring.h>
+#include <qtextstream.h>
#include <qdatastream.h>
#include <kaction.h>
@@ -130,5 +131,5 @@ void ElogThread::doTransmit(int sock) {
QBuffer bufferCapture( byteArrayCapture );
QByteArray byteArrayConfigure;
- QBuffer bufferConfigure( byteArrayConfigure );
+ QTextStream textStreamConfigure( byteArrayConfigure, IO_ReadWrite );
QCustomEvent eventCapture(KstELOGCaptureEvent);
QCustomEvent eventConfigure(KstELOGConfigureEvent);
@@ -168,4 +169,7 @@ void ElogThread::doTransmit(int sock) {
if( bIncludeConfiguration ) {
+ eventConfigure.setData( &textStreamConfigure );
+ QApplication::sendEvent( (QObject*)_elog->app()->viewObject(), (QEvent*)&eventConfigure );
+ content_length += byteArrayConfigure.size();
}
More information about the Kst
mailing list