From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/protocols/msn/webcam/mimicwrapper.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kopete/protocols/msn/webcam/mimicwrapper.cpp') diff --git a/kopete/protocols/msn/webcam/mimicwrapper.cpp b/kopete/protocols/msn/webcam/mimicwrapper.cpp index f7a43d93..a9d3b131 100644 --- a/kopete/protocols/msn/webcam/mimicwrapper.cpp +++ b/kopete/protocols/msn/webcam/mimicwrapper.cpp @@ -18,7 +18,7 @@ //#include #include -#include +#include MimicWrapper::MimicWrapper() : m_init(false) { @@ -31,35 +31,35 @@ MimicWrapper::~MimicWrapper() } -QPixmap MimicWrapper::decode(const QByteArray& data) +TQPixmap MimicWrapper::decode(const TQByteArray& data) { if(!m_init) { if(!mimic_decoder_init(m_mimctx, (guchar*)(data.data()))) { kdWarning(14140) << k_funcinfo << "Impossible to init decoder" << endl; - return QPixmap(); + return TQPixmap(); } if (!mimic_get_property( m_mimctx, "buffer_size", &m_bufferSize) ) { kdWarning(14140) << k_funcinfo << "Impossible to get buffer size" << endl; - return QPixmap(); + return TQPixmap(); } m_init=true; } - QByteArray buff(m_bufferSize); + TQByteArray buff(m_bufferSize); if(!mimic_decode_frame(m_mimctx, (guchar*)(data.data()) , (guchar*)(buff.data()) ) ) { kdWarning(14140) << k_funcinfo << "Impossible to decode frame" << endl; - return QPixmap(); + return TQPixmap(); } int width,height; mimic_get_property(m_mimctx, "width", &width); mimic_get_property(m_mimctx, "height", &height); - QByteArray buff2(m_bufferSize*4/3); + TQByteArray buff2(m_bufferSize*4/3); uint b2=0; for(uint f=0;f