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?