src/declarative/debugger/qpacketprotocol.cpp
changeset 37 758a864f9613
parent 30 5dc02b23752f
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   123         QObject::connect(this, SIGNAL(packetWritten()),
   123         QObject::connect(this, SIGNAL(packetWritten()),
   124                          parent, SIGNAL(packetWritten()));
   124                          parent, SIGNAL(packetWritten()));
   125         QObject::connect(this, SIGNAL(invalidPacket()),
   125         QObject::connect(this, SIGNAL(invalidPacket()),
   126                          parent, SIGNAL(invalidPacket()));
   126                          parent, SIGNAL(invalidPacket()));
   127         QObject::connect(dev, SIGNAL(readyRead()),
   127         QObject::connect(dev, SIGNAL(readyRead()),
   128                          this, SLOT(readyToRead()));
   128                          this, SLOT(readyToRead()), Qt::QueuedConnection);
   129         QObject::connect(dev, SIGNAL(aboutToClose()),
   129         QObject::connect(dev, SIGNAL(aboutToClose()),
   130                          this, SLOT(aboutToClose()));
   130                          this, SLOT(aboutToClose()));
   131         QObject::connect(dev, SIGNAL(bytesWritten(qint64)),
   131         QObject::connect(dev, SIGNAL(bytesWritten(qint64)),
   132                          this, SLOT(bytesWritten(qint64)));
   132                          this, SLOT(bytesWritten(qint64)));
   133     }
   133     }
   420     }
   420     }
   421 }
   421 }
   422 
   422 
   423 /*!
   423 /*!
   424   Creates a copy of \a other.  The initial stream positions are shared, but the
   424   Creates a copy of \a other.  The initial stream positions are shared, but the
   425   two packets are otherwise independant.
   425   two packets are otherwise independent.
   426  */
   426  */
   427 QPacket::QPacket(const QPacket & other)
   427 QPacket::QPacket(const QPacket & other)
   428 : QDataStream(), b(other.b), buf(0)
   428 : QDataStream(), b(other.b), buf(0)
   429 {
   429 {
   430     buf = new QBuffer(&b);
   430     buf = new QBuffer(&b);