From kde-commits Thu Jan 25 17:14:04 2007 From: =?utf-8?q?Andr=C3=A9_W=C3=B6bbeking?= Date: Thu, 25 Jan 2007 17:14:04 +0000 To: kde-commits Subject: Re: branches/KDE/3.5/kdelibs/kio Message-Id: <200701251814.05086.Woebbeking () kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=116974526316610 On Thursday 25 January 2007, André Wöbbeking wrote: > On Thursday 25 January 2007, David Faure wrote: > > SVN commit 627004 by dfaure: > > > > Forward mimetype signal from the get job to the FileCopyJob, to > > help kpdf with #140482. (and any other kpart that wants to know > > what it's opening exactly) CCMAIL: Albert Astals Cid > > > > > > > > M +9 -2 kio/job.cpp > > M +14 -1 kio/jobclasses.h > > M +18 -3 tests/jobtest.cpp > > M +2 -0 tests/jobtest.h > > > > > > --- branches/KDE/3.5/kdelibs/kio/kio/job.cpp #627003:627004 > > @@ -1808,8 +1808,10 @@ > > connectSubjob( m_getJob ); // Progress info depends on > > get m_getJob->resume(); // Order a beer > > > > - connect( m_getJob, SIGNAL(data(KIO::Job *, const > > QByteArray&)), - SLOT( slotData(KIO::Job *, > > const QByteArray&))); + connect( m_getJob, > > SIGNAL(data(KIO::Job*,const QByteArray&)), + > > SLOT( slotData(KIO::Job*,const QByteArray&)) ); + > > connect( m_getJob, SIGNAL(mimetype(KIO::Job*,const QString&) ), + > > SLOT(slotMimetype(KIO::Job*,const QString&)) ); } > > else // copyjob > > { > > @@ -1870,6 +1872,11 @@ > > m_buffer = QByteArray(); > > } > > > > +void FileCopyJob::slotMimetype( KIO::Job*, const QString& type ) > > +{ > > + emit mimetype( this, type ); > > +} > > You know that you can connect a signal directly to a signal? or is this != not used job pointer?