From d7581f7cd0ba6adb43ee5c4bdeae696c0a16ae3b Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 23 Mar 2004 00:36:37 +0000 Subject: Fix communication. It seems like QPixmap and QDataStream do not mix well if the QPixmap is not valid.. invalidate image requests if we change the dir --- (limited to 'noncore/graphics/opie-eye/slave/slavereciever.cpp') diff --git a/noncore/graphics/opie-eye/slave/slavereciever.cpp b/noncore/graphics/opie-eye/slave/slavereciever.cpp index 951f3df..c8e33d4 100644 --- a/noncore/graphics/opie-eye/slave/slavereciever.cpp +++ b/noncore/graphics/opie-eye/slave/slavereciever.cpp @@ -31,8 +31,13 @@ QDataStream & operator >> (QDataStream & str, bool & b) QDataStream &operator<<( QDataStream& s, const PixmapInfo& inf) { return s << inf.file << inf.pixmap << inf.width << inf.height; } + +/* + * GUI sends no QPIxmap!!! + */ QDataStream &operator>>( QDataStream& s, PixmapInfo& inf ) { - s >> inf.file >> inf.pixmap >> inf.width >> inf.height; + s >> inf.file >> inf.width >> inf.height; + qWarning( "Recieved %s %d %d", inf.file.latin1(), inf.width, inf.height ); return s; } QDataStream &operator<<( QDataStream& s, const ImageInfo& i) { -- cgit v0.9.0.2